diff options
| author | bors <bors@rust-lang.org> | 2024-10-03 06:02:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-03 06:02:19 +0000 |
| commit | 8885239786c9efe5c6077de65536a5e092e34a55 (patch) | |
| tree | 158a02e752dc8e71777f702c9f3d1b29614652e5 /compiler/rustc_parse/src/errors.rs | |
| parent | fd1f8aa05d690138815fefb0066543a9087889bb (diff) | |
| parent | cc61b81c6a2852bfac1db1c491d2c13b13b11ce2 (diff) | |
| download | rust-8885239786c9efe5c6077de65536a5e092e34a55.tar.gz rust-8885239786c9efe5c6077de65536a5e092e34a55.zip | |
Auto merge of #131185 - workingjubilee:rollup-wkcqe2j, r=workingjubilee
Rollup of 3 pull requests Successful merges: - #126930 (Add unstable support for outputting file checksums for use in cargo) - #130725 (Parser: better error messages for ``@`` in struct patterns) - #131166 (Fix `target_vendor` for `aarch64-nintendo-switch-freestanding`) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 20bcefd4fe1..40502158469 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -2572,6 +2572,25 @@ pub(crate) struct EnumPatternInsteadOfIdentifier { } #[derive(Diagnostic)] +#[diag(parse_at_dot_dot_in_struct_pattern)] +pub(crate) struct AtDotDotInStructPattern { + #[primary_span] + pub span: Span, + #[suggestion(code = "", style = "verbose", applicability = "machine-applicable")] + pub remove: Span, + pub ident: Ident, +} + +#[derive(Diagnostic)] +#[diag(parse_at_in_struct_pattern)] +#[note] +#[help] +pub(crate) struct AtInStructPattern { + #[primary_span] + pub span: Span, +} + +#[derive(Diagnostic)] #[diag(parse_dot_dot_dot_for_remaining_fields)] pub(crate) struct DotDotDotForRemainingFields { #[primary_span] |
