about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2024-10-04 05:07:56 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2024-10-04 05:07:56 +0000
commit7014ae87dfcf17f57c42a23af11dac6778842b2a (patch)
tree8b90ccd54ba3df4b892a2187cdb84711da28fe53 /compiler/rustc_parse/src/errors.rs
parentd19bd66a4e88116af18a1f5a6ab4ffe2f5bd1956 (diff)
parent7067e4aee45c18cfa1c6af3bf79bd097684fb294 (diff)
downloadrust-7014ae87dfcf17f57c42a23af11dac6778842b2a.tar.gz
rust-7014ae87dfcf17f57c42a23af11dac6778842b2a.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
-rw-r--r--compiler/rustc_parse/src/errors.rs19
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]