rename ast::ViewItemExternMod to ast::ViewItemExternCrate, and clean::ExternMod to clean::ExternCrate
This commit is contained in:
parent
28e7631d8b
commit
2271860af1
16 changed files with 29 additions and 29 deletions
|
@ -424,7 +424,7 @@ pub fn expand_view_item(vi: &ast::ViewItem,
|
|||
fld: &mut MacroExpander)
|
||||
-> ast::ViewItem {
|
||||
match vi.node {
|
||||
ast::ViewItemExternMod(..) => {
|
||||
ast::ViewItemExternCrate(..) => {
|
||||
let should_load = vi.attrs.iter().any(|attr| {
|
||||
attr.name().get() == "phase" &&
|
||||
attr.meta_item_list().map_or(false, |phases| {
|
||||
|
@ -446,7 +446,7 @@ fn load_extern_macros(krate: &ast::ViewItem, fld: &mut MacroExpander) {
|
|||
let MacroCrate { lib, cnum } = fld.cx.ecfg.loader.load_crate(krate);
|
||||
|
||||
let crate_name = match krate.node {
|
||||
ast::ViewItemExternMod(name, _, _) => name,
|
||||
ast::ViewItemExternCrate(name, _, _) => name,
|
||||
_ => unreachable!()
|
||||
};
|
||||
let name = format!("<{} macros>", token::get_ident(crate_name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue