diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-14 21:48:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-14 21:48:41 +0200 |
| commit | 18afb69767199020be7f803f04f459f9534793f2 (patch) | |
| tree | d0e204b031eb14706450d41caec72828c448572d /compiler/rustc_errors | |
| parent | be00ea1968d8d5afb5d93d2dedeb97a8bba300cb (diff) | |
| parent | 2db126d651b6803c9b37fd021376ce6e5dd5a09e (diff) | |
| download | rust-18afb69767199020be7f803f04f459f9534793f2.tar.gz rust-18afb69767199020be7f803f04f459f9534793f2.zip | |
Rollup merge of #137872 - estebank:extra-vert, r=compiler-errors
Include whitespace in "remove |" suggestion and make it hidden Tweak error rendering of patterns with an extra `|` on either end. Built on #137409. Only last commit is relevant. ? ``@compiler-errors``
Diffstat (limited to 'compiler/rustc_errors')
| -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 98be37fd84b..e579370ce4e 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -1113,7 +1113,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 }] } }) |
