diff options
| author | oli <oli@uhura.edef.eu> | 2020-10-27 14:16:23 +0000 |
|---|---|---|
| committer | oli <oli@uhura.edef.eu> | 2020-10-27 14:16:23 +0000 |
| commit | 888ef24c2295fc3a1e96f864376fb22b00cc5583 (patch) | |
| tree | 2e7d6457a9284b8f56513d9f09e6e3fcc9065ace | |
| parent | c8a866ea176f1d7250a714647a6ce7a4636f5705 (diff) | |
| download | rust-888ef24c2295fc3a1e96f864376fb22b00cc5583.tar.gz rust-888ef24c2295fc3a1e96f864376fb22b00cc5583.zip | |
Address review comment
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 3 | ||||
| -rw-r--r-- | src/test/ui/const_prop/inline_spans.stderr | 2 |
2 files changed, 3 insertions, 2 deletions
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 |
