Address review comment
This commit is contained in:
parent
c8a866ea17
commit
888ef24c22
2 changed files with 3 additions and 2 deletions
|
@ -357,7 +357,8 @@ pub trait Emitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
if matches!(trace.kind, ExpnKind::Inlined) {
|
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 {
|
} else if always_backtrace {
|
||||||
new_labels.push((
|
new_labels.push((
|
||||||
trace.def_site,
|
trace.def_site,
|
||||||
|
|
|
@ -5,7 +5,7 @@ LL | let _ = add(u8::MAX, 1);
|
||||||
| ^^^^^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
|
| ^^^^^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
|
||||||
...
|
...
|
||||||
LL | x + y
|
LL | x + y
|
||||||
| ----- in the inlined copy of this
|
| ----- in the inlined copy of this code
|
||||||
|
|
|
|
||||||
= note: `#[deny(arithmetic_overflow)]` on by default
|
= note: `#[deny(arithmetic_overflow)]` on by default
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue