Skip to content

Commit 888ef24

Browse files
author
oli
committed
Address review comment
1 parent c8a866e commit 888ef24

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/rustc_errors/src/emitter.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ pub trait Emitter {
357357
}
358358

359359
if matches!(trace.kind, ExpnKind::Inlined) {
360-
new_labels.push((trace.call_site, "in the inlined copy of this".to_string()));
360+
new_labels
361+
.push((trace.call_site, "in the inlined copy of this code".to_string()));
361362
} else if always_backtrace {
362363
new_labels.push((
363364
trace.def_site,

src/test/ui/const_prop/inline_spans.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | let _ = add(u8::MAX, 1);
55
| ^^^^^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
66
...
77
LL | x + y
8-
| ----- in the inlined copy of this
8+
| ----- in the inlined copy of this code
99
|
1010
= note: `#[deny(arithmetic_overflow)]` on by default
1111

0 commit comments

Comments
 (0)