]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_transform/src/inline.rs
Auto merge of #93284 - eholk:disable-drop-range-analysis, r=pnkfelix
[rust.git] / compiler / rustc_mir_transform / src / inline.rs
index 8be95b2d95a20c79897ffcde16bb4167ec5ca8cc..e1f30fef44f99ebecfda746406e1f2b10af6d570 100644 (file)
@@ -212,7 +212,8 @@ fn check_mir_is_available(
             // a lower `HirId` than the callee. This ensures that the callee will
             // not inline us. This trick only works without incremental compilation.
             // So don't do it if that is enabled.
-            if !self.tcx.dep_graph.is_fully_enabled() && self.hir_id < callee_hir_id {
+            if !self.tcx.dep_graph.is_fully_enabled() && self.hir_id.index() < callee_hir_id.index()
+            {
                 return Ok(());
             }