mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
Address review comment
This commit is contained in:
parent
c8a866ea17
commit
888ef24c22
@ -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,
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user