Skip to content

Commit 3565e8a

Browse files
committed
Correct caller/callsite confusion in inliner message
1 parent aa7aca3 commit 3565e8a

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)