diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index 1922dbef64d..dda1e4c24ed 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -357,7 +357,8 @@ pub trait Emitter { } if matches!(trace.kind, ExpnKind::Inlined) { - new_labels.push((trace.call_site, "in the inlined copy of this".to_string())); + new_labels + .push((trace.call_site, "in the inlined copy of this code".to_string())); } else if always_backtrace { new_labels.push(( trace.def_site, diff --git a/src/test/ui/const_prop/inline_spans.stderr b/src/test/ui/const_prop/inline_spans.stderr index 05596b8dd3f..5a54967e0d0 100644 --- a/src/test/ui/const_prop/inline_spans.stderr +++ b/src/test/ui/const_prop/inline_spans.stderr @@ -5,7 +5,7 @@ LL | let _ = add(u8::MAX, 1); | ^^^^^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow ... LL | x + y - | ----- in the inlined copy of this + | ----- in the inlined copy of this code | = note: `#[deny(arithmetic_overflow)]` on by default