DefId { krate: def_id.krate, index }
})
}
- derive_registrar_fn => {
- cdata.root.macro_derive_registrar.map(|index| {
+ proc_macro_decls_static => {
+ cdata.root.proc_macro_decls_static.map(|index| {
DefId { krate: def_id.krate, index }
})
}
Lrc::new(link_args::collect(tcx))
},
- // Returns a map from a sufficiently visible external item (i.e. an
+ // Returns a map from a sufficiently visible external item (i.e., an
// external item that is visible from at least one local module) to a
// sufficiently visible parent (considering modules that re-export the
// external item to be parents).
use std::collections::hash_map::Entry;
assert_eq!(cnum, LOCAL_CRATE);
- let mut visible_parent_map: DefIdMap<DefId> = DefIdMap();
+ let mut visible_parent_map: DefIdMap<DefId> = Default::default();
// Issue 46112: We want the map to prefer the shortest
// paths when reporting the path to an item. Therefore we
use syntax::ext::base::SyntaxExtension;
use syntax_ext::proc_macro_impl::BangProcMacro;
+ let client = ::proc_macro::bridge::client::Client::expand1(::proc_macro::quote);
let ext = SyntaxExtension::ProcMacro {
- expander: Box::new(BangProcMacro { inner: ::proc_macro::quote }),
+ expander: Box::new(BangProcMacro { client }),
allow_internal_unstable: true,
edition: data.root.edition,
};