]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_middle/dep_graph/mod.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / librustc_middle / dep_graph / mod.rs
index 682b335c5d071775f7e583930ebea1475e546483..6697524279874d1eabfc7ca1bed55248e50c0852 100644 (file)
@@ -185,6 +185,6 @@ fn profiler(&self) -> &SelfProfilerRef {
 }
 
 fn def_id_corresponds_to_hir_dep_node(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
-    let hir_id = tcx.hir().as_local_hir_id(def_id);
+    let hir_id = tcx.hir().local_def_id_to_hir_id(def_id);
     def_id == hir_id.owner
 }