Generalize and abstract ThinAttributes

This commit is contained in:
Jeffrey Seyfried
2016-06-18 04:01:57 +00:00
parent 114be1e9f0
commit 5033eca65f
27 changed files with 278 additions and 317 deletions

View File

@@ -149,7 +149,7 @@ fn stmt_let_undescore(cx: &mut ExtCtxt,
init: Some(expr),
id: ast::DUMMY_NODE_ID,
span: sp,
attrs: None,
attrs: ast::ThinVec::new(),
});
let decl = respan(sp, ast::DeclKind::Local(local));
respan(sp, ast::StmtKind::Decl(P(decl), ast::DUMMY_NODE_ID))