[breaking-change] don't glob export ast::Visibility variants
This commit is contained in:
parent
dfe35da6b8
commit
d844bfb196
12 changed files with 45 additions and 46 deletions
|
|
@ -962,7 +962,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
attrs: attrs,
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
node: node,
|
||||
vis: ast::Inherited,
|
||||
vis: ast::Visibility::Inherited,
|
||||
span: span
|
||||
})
|
||||
}
|
||||
|
|
@ -1005,7 +1005,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
let fields: Vec<_> = tys.into_iter().map(|ty| {
|
||||
Spanned { span: ty.span, node: ast::StructField_ {
|
||||
ty: ty,
|
||||
kind: ast::UnnamedField(ast::Inherited),
|
||||
kind: ast::UnnamedField(ast::Visibility::Inherited),
|
||||
attrs: Vec::new(),
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -906,7 +906,7 @@ fn expand_wrapper(cx: &ExtCtxt,
|
|||
let stmts = imports.iter().map(|path| {
|
||||
// make item: `use ...;`
|
||||
let path = path.iter().map(|s| s.to_string()).collect();
|
||||
cx.stmt_item(sp, cx.item_use_glob(sp, ast::Inherited, ids_ext(path)))
|
||||
cx.stmt_item(sp, cx.item_use_glob(sp, ast::Visibility::Inherited, ids_ext(path)))
|
||||
}).chain(Some(stmt_let_ext_cx)).collect();
|
||||
|
||||
cx.expr_block(cx.block_all(sp, stmts, Some(expr)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue