diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-28 12:06:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-28 12:06:07 +0100 |
| commit | 22c5bb0bdc6ab4729d829f7f9832c454267c1781 (patch) | |
| tree | 720312a4a0254619ba1eb7b8c462675524bec8e3 /compiler/rustc_parse/src/errors.rs | |
| parent | 7201f70c3749c1cfabfa1280d3ce877e1dc7b0ee (diff) | |
| parent | c3c68c5cb1a6a00ed90f2443d3a387dbe437d6b0 (diff) | |
| download | rust-22c5bb0bdc6ab4729d829f7f9832c454267c1781.tar.gz rust-22c5bb0bdc6ab4729d829f7f9832c454267c1781.zip | |
Rollup merge of #133560 - clubby789:mut-mut-space, r=jieyouxu
Trim extra space in 'repeated `mut`' diagnostic Trim an extra space when removing repeated `mut`. Also an extra test for even more repeated `mut`s
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index a48725de54b..91e8ba2e1f9 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -2620,8 +2620,9 @@ pub(crate) enum InvalidMutInPattern { #[diag(parse_repeated_mut_in_pattern)] pub(crate) struct RepeatedMutInPattern { #[primary_span] - #[suggestion(code = "", applicability = "machine-applicable", style = "verbose")] pub span: Span, + #[suggestion(code = "", applicability = "machine-applicable", style = "verbose")] + pub suggestion: Span, } #[derive(Diagnostic)] |
