1
Fork 0

Use ensure_with_value in a few more places.

This commit is contained in:
Camille GILLOT 2023-03-07 13:06:53 +00:00
parent 382cc909d5
commit e955ec0908
3 changed files with 7 additions and 6 deletions

View file

@ -444,7 +444,7 @@ fn mir_drops_elaborated_and_const_checked(
// Do not compute the mir call graph without said call graph actually being used.
if inline::Inline.is_enabled(&tcx.sess) {
let _ = tcx.mir_inliner_callees(ty::InstanceDef::Item(def));
tcx.ensure_with_value().mir_inliner_callees(ty::InstanceDef::Item(def));
}
}