diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-03-01 22:27:16 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-08-04 18:06:18 +0000 |
| commit | 2db126d651b6803c9b37fd021376ce6e5dd5a09e (patch) | |
| tree | 9f0c09d8434dea09bcd6d9d8e0d2188f55ae9e3e /compiler/rustc_errors/src | |
| parent | e5e79f8bd428d0b8d26e8240d718b134ef297459 (diff) | |
| download | rust-2db126d651b6803c9b37fd021376ce6e5dd5a09e.tar.gz rust-2db126d651b6803c9b37fd021376ce6e5dd5a09e.zip | |
Include whitespace in "remove `|`" suggestion and make it hidden
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index 96c7ba6ed27..0034a30be08 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -1112,7 +1112,7 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> { .map(|snippet| { debug_assert!( !(sp.is_empty() && snippet.is_empty()), - "Span must not be empty and have no suggestion" + "Span `{sp:?}` must not be empty and have no suggestion" ); Substitution { parts: vec![SubstitutionPart { snippet, span: sp }] } }) |
