[breaking-change] don't pub export ast::Stmt_ variants
This commit is contained in:
@@ -152,5 +152,5 @@ fn stmt_let_undescore(cx: &mut ExtCtxt,
|
||||
attrs: None,
|
||||
});
|
||||
let decl = respan(sp, ast::DeclKind::Local(local));
|
||||
P(respan(sp, ast::StmtDecl(P(decl), ast::DUMMY_NODE_ID)))
|
||||
P(respan(sp, ast::StmtKind::Decl(P(decl), ast::DUMMY_NODE_ID)))
|
||||
}
|
||||
|
||||
@@ -461,7 +461,7 @@ impl<'a, 'b> Context<'a, 'b> {
|
||||
|
||||
// Wrap the declaration in a block so that it forms a single expression.
|
||||
ecx.expr_block(ecx.block(sp,
|
||||
vec![P(respan(sp, ast::StmtDecl(P(decl), ast::DUMMY_NODE_ID)))],
|
||||
vec![P(respan(sp, ast::StmtKind::Decl(P(decl), ast::DUMMY_NODE_ID)))],
|
||||
Some(ecx.expr_ident(sp, name))))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user