Skip to content

Commit

Permalink
Correct caller/callsite confusion in inliner message
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed Oct 1, 2021
1 parent aa7aca3 commit 3565e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir_transform/src/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl Inliner<'tcx> {
self.check_mir_body(callsite, callee_body, callee_attrs)?;

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");
}
Expand Down

0 comments on commit 3565e8a

Please sign in to comment.