Address review comment

This commit is contained in:
oli 2020-10-27 14:16:23 +00:00
parent c8a866ea17
commit 888ef24c22
2 changed files with 3 additions and 2 deletions

View file

@ -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,

View file

@ -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