Rollup merge of #89415 - wesleywiser:inliner_caller_callsite_message, r=michaelwoerister
Correct caller/callsite confusion in inliner message `callee_body` is the MIR `Body` for the `callsite.callee` so this message basically says `"Inline {bar span} into bar"` when it should say `"Inline bar into foo"`. Extracted out of #82280
This commit is contained in:
commit
534946cba1
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ impl Inliner<'tcx> {
|
||||||
self.check_mir_body(callsite, callee_body, callee_attrs)?;
|
self.check_mir_body(callsite, callee_body, callee_attrs)?;
|
||||||
|
|
||||||
if !self.tcx.consider_optimizing(|| {
|
if !self.tcx.consider_optimizing(|| {
|
||||||
format!("Inline {:?} into {}", callee_body.span, callsite.callee)
|
format!("Inline {:?} into {:?}", callsite.callee, caller_body.source)
|
||||||
}) {
|
}) {
|
||||||
return Err("optimization fuel exhausted");
|
return Err("optimization fuel exhausted");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue