Generalize and abstract ThinAttributes
This commit is contained in:
parent
114be1e9f0
commit
5033eca65f
27 changed files with 278 additions and 317 deletions
|
@ -525,7 +525,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
init: Some(ex),
|
||||
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))
|
||||
|
@ -550,7 +550,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
init: Some(ex),
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
span: sp,
|
||||
attrs: None,
|
||||
attrs: ast::ThinVec::new(),
|
||||
});
|
||||
let decl = respan(sp, ast::DeclKind::Local(local));
|
||||
P(respan(sp, ast::StmtKind::Decl(P(decl), ast::DUMMY_NODE_ID)))
|
||||
|
@ -587,7 +587,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
id: ast::DUMMY_NODE_ID,
|
||||
node: node,
|
||||
span: span,
|
||||
attrs: None,
|
||||
attrs: ast::ThinVec::new(),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue