diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-20 15:46:19 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-20 16:01:13 +0000 |
| commit | f90f43d62b1ce6d4c3dc49b450a7e30b9172ef42 (patch) | |
| tree | 7ae66cff7981f2ca574894e93151d355b84be68e /compiler/rustc_parse/src/errors.rs | |
| parent | 2947be7af8732d1c298a15030325cc50c8910061 (diff) | |
| download | rust-f90f43d62b1ce6d4c3dc49b450a7e30b9172ef42.tar.gz rust-f90f43d62b1ce6d4c3dc49b450a7e30b9172ef42.zip | |
Fix diagnostic struct typo, make sure is_array_like_block checks that it's a block
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index e090d9cf760..eb3bbef350a 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -810,16 +810,16 @@ pub(crate) enum WrapInParentheses { #[derive(Diagnostic)] #[diag(parse_array_brackets_instead_of_braces)] -pub(crate) struct ArrayBracketsInsteadOfSpaces { +pub(crate) struct ArrayBracketsInsteadOfBraces { #[primary_span] pub span: Span, #[subdiagnostic] - pub sub: ArrayBracketsInsteadOfSpacesSugg, + pub sub: ArrayBracketsInsteadOfBracesSugg, } #[derive(Subdiagnostic)] #[multipart_suggestion(parse_suggestion, applicability = "maybe-incorrect")] -pub(crate) struct ArrayBracketsInsteadOfSpacesSugg { +pub(crate) struct ArrayBracketsInsteadOfBracesSugg { #[suggestion_part(code = "[")] pub left: Span, #[suggestion_part(code = "]")] |
