Auto merge of #44435 - alexcrichton:in-scope, r=michaelwoerister
rustc: Remove HirId from queries This'll allow us to reconstruct query parameters purely from the `DepNode` they're associated with. Closes #44414
This commit is contained in:
commit
efa3ec67e2
16 changed files with 142 additions and 121 deletions
|
|
@ -276,7 +276,7 @@ pub fn provide_local<'tcx>(providers: &mut Providers<'tcx>) {
|
|||
Rc::new(link_args::collect(tcx))
|
||||
},
|
||||
extern_mod_stmt_cnum: |tcx, id| {
|
||||
let id = tcx.hir.definitions().find_node_for_hir_id(id);
|
||||
let id = tcx.hir.as_local_node_id(id).unwrap();
|
||||
tcx.sess.cstore.extern_mod_stmt_cnum_untracked(id)
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -548,12 +548,11 @@ impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx> {
|
|||
&hir::Visibility)>)
|
||||
-> Entry<'tcx> {
|
||||
let tcx = self.tcx;
|
||||
let hir_id = tcx.hir.node_to_hir_id(id);
|
||||
let def_id = tcx.hir.local_def_id(id);
|
||||
debug!("IsolatedEncoder::encode_info_for_mod({:?})", def_id);
|
||||
|
||||
let data = ModData {
|
||||
reexports: match tcx.module_exports(hir_id) {
|
||||
reexports: match tcx.module_exports(def_id) {
|
||||
Some(ref exports) if *vis == hir::Public => {
|
||||
self.lazy_seq_from_slice(exports.as_slice())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue