Return a LocalDefId in get_parent_item.
This commit is contained in:
parent
5a123c265b
commit
60064726ae
51 changed files with 151 additions and 140 deletions
|
@ -58,7 +58,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
pub fn provide(providers: &mut Providers) {
|
||||
providers.parent_module_from_def_id = |tcx, id| {
|
||||
let hir = tcx.hir();
|
||||
hir.local_def_id(hir.get_module_parent_node(hir.local_def_id_to_hir_id(id)))
|
||||
hir.get_module_parent_node(hir.local_def_id_to_hir_id(id))
|
||||
};
|
||||
providers.hir_crate = |tcx, ()| tcx.untracked_crate;
|
||||
providers.crate_hash = map::crate_hash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue