Skip to content

Commit 2d3d9b2

Browse files
committedApr 2, 2022
Use only local hash.
1 parent e1b36f5 commit 2d3d9b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎compiler/rustc_mir_transform/src/inline.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ impl<'tcx> Inliner<'tcx> {
216216
// a lower `DefPathHash` than the callee. This ensures that the callee will
217217
// not inline us. This trick even works with incremental compilation,
218218
// since `DefPathHash` is stable.
219-
if self.tcx.def_path_hash(caller_def_id)
220-
< self.tcx.def_path_hash(callee_def_id.to_def_id())
219+
if self.tcx.def_path_hash(caller_def_id).local_hash()
220+
< self.tcx.def_path_hash(callee_def_id.to_def_id()).local_hash()
221221
{
222222
return Ok(());
223223
}

0 commit comments

Comments
 (0)
Please sign in to comment.