diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-16 17:51:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-16 17:51:24 +0100 |
| commit | f65c6e416c6f401c332149da8f8ad1d7b8a218a7 (patch) | |
| tree | 2df99e5c84a8c16679f63e9c428e1d8de916e5e1 /compiler/rustc_errors/src | |
| parent | af3c8b27266e290cf65704284f6862d0f90ee4fc (diff) | |
| parent | dff10d0668a1e89782fb660e033d6a57ab122266 (diff) | |
| download | rust-f65c6e416c6f401c332149da8f8ad1d7b8a218a7.tar.gz rust-f65c6e416c6f401c332149da8f8ad1d7b8a218a7.zip | |
Rollup merge of #106347 - estebank:removal-suggestion, r=TaKO8Ki
More accurate spans for arg removal suggestion Partially address #106304.
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index 4f2cc8b0351..211bbf4f50e 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -1768,7 +1768,7 @@ impl EmitterWriter { // Render the replacements for each suggestion let suggestions = suggestion.splice_lines(sm); - debug!("emit_suggestion_default: suggestions={:?}", suggestions); + debug!(?suggestions); if suggestions.is_empty() { // Suggestions coming from macros can have malformed spans. This is a heavy handed @@ -1797,6 +1797,7 @@ impl EmitterWriter { for (complete, parts, highlights, only_capitalization) in suggestions.iter().take(MAX_SUGGESTIONS) { + debug!(?complete, ?parts, ?highlights); notice_capitalization |= only_capitalization; let has_deletion = parts.iter().any(|p| p.is_deletion(sm)); |
