Use () for proc_macro_decls_static.
This commit is contained in:
parent
e9e1900af7
commit
b7bf467fa3
7 changed files with 11 additions and 23 deletions
|
@ -185,14 +185,6 @@ provide! { <'tcx> tcx, def_id, other, cdata,
|
|||
}
|
||||
native_libraries => { Lrc::new(cdata.get_native_libraries(tcx.sess)) }
|
||||
foreign_modules => { cdata.get_foreign_modules(tcx) }
|
||||
proc_macro_decls_static => {
|
||||
cdata.root.proc_macro_data.as_ref().map(|data| {
|
||||
DefId {
|
||||
krate: def_id.krate,
|
||||
index: data.proc_macro_decls_static,
|
||||
}
|
||||
})
|
||||
}
|
||||
crate_disambiguator => { cdata.root.disambiguator }
|
||||
crate_hash => { cdata.root.hash }
|
||||
crate_host_hash => { cdata.host_hash }
|
||||
|
|
|
@ -1575,7 +1575,7 @@ impl EncodeContext<'a, 'tcx> {
|
|||
let tcx = self.tcx;
|
||||
let hir = tcx.hir();
|
||||
|
||||
let proc_macro_decls_static = tcx.proc_macro_decls_static(LOCAL_CRATE).unwrap().index;
|
||||
let proc_macro_decls_static = tcx.proc_macro_decls_static(()).unwrap().local_def_index;
|
||||
let stability = tcx.lookup_stability(DefId::local(CRATE_DEF_INDEX)).copied();
|
||||
let macros = self.lazy(hir.krate().proc_macros.iter().map(|p| p.owner.local_def_index));
|
||||
let spans = self.tcx.sess.parse_sess.proc_macro_quoted_spans();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue