Skip to content

Commit 534946c

Browse files
authored
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
2 parents d388428 + 3565e8a commit 534946c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/inline.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl Inliner<'tcx> {
147147
self.check_mir_body(callsite, callee_body, callee_attrs)?;
148148

149149
if !self.tcx.consider_optimizing(|| {
150-
format!("Inline {:?} into {}", callee_body.span, callsite.callee)
150+
format!("Inline {:?} into {:?}", callsite.callee, caller_body.source)
151151
}) {
152152
return Err("optimization fuel exhausted");
153153
}

0 commit comments

Comments
 (0)