[breaking-change] don't glob export ast::Decl_ variants
This commit is contained in:
@@ -151,6 +151,6 @@ fn stmt_let_undescore(cx: &mut ExtCtxt,
|
||||
span: sp,
|
||||
attrs: None,
|
||||
});
|
||||
let decl = respan(sp, ast::DeclLocal(local));
|
||||
let decl = respan(sp, ast::DeclKind::Local(local));
|
||||
P(respan(sp, ast::StmtDecl(P(decl), ast::DUMMY_NODE_ID)))
|
||||
}
|
||||
|
||||
@@ -457,7 +457,7 @@ impl<'a, 'b> Context<'a, 'b> {
|
||||
|
||||
let name = ecx.ident_of(name);
|
||||
let item = ecx.item(sp, name, vec![], st);
|
||||
let decl = respan(sp, ast::DeclItem(item));
|
||||
let decl = respan(sp, ast::DeclKind::Item(item));
|
||||
|
||||
// Wrap the declaration in a block so that it forms a single expression.
|
||||
ecx.expr_block(ecx.block(sp,
|
||||
|
||||
Reference in New Issue
Block a user