mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
Use only local hash.
This commit is contained in:
parent
e1b36f5ae2
commit
2d3d9b26a4
@ -216,8 +216,8 @@ impl<'tcx> Inliner<'tcx> {
|
||||
// a lower `DefPathHash` than the callee. This ensures that the callee will
|
||||
// not inline us. This trick even works with incremental compilation,
|
||||
// since `DefPathHash` is stable.
|
||||
if self.tcx.def_path_hash(caller_def_id)
|
||||
< 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()
|
||||
{
|
||||
return Ok(());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user