We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1b36f5 commit 2d3d9b2Copy full SHA for 2d3d9b2
compiler/rustc_mir_transform/src/inline.rs
@@ -216,8 +216,8 @@ impl<'tcx> Inliner<'tcx> {
216
// a lower `DefPathHash` than the callee. This ensures that the callee will
217
// not inline us. This trick even works with incremental compilation,
218
// 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())
+ if self.tcx.def_path_hash(caller_def_id).local_hash()
+ < self.tcx.def_path_hash(callee_def_id.to_def_id()).local_hash()
221
{
222
return Ok(());
223
}
0 commit comments