about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-04 08:14:06 +0000
committerbors <bors@rust-lang.org>2024-10-04 08:14:06 +0000
commit6602a2382dc2027d71f8de9b2e0b08c777dcb6b3 (patch)
tree995ce1b435419b8397598958aba5a4281daef5ac /compiler/rustc_parse/src/errors.rs
parentbf71d65980c7005aa30f6f057aaa2e681b703400 (diff)
parentdc88a6a788ebbcc2c342b2cfb584f48b2b78b43f (diff)
downloadrust-6602a2382dc2027d71f8de9b2e0b08c777dcb6b3.tar.gz
rust-6602a2382dc2027d71f8de9b2e0b08c777dcb6b3.zip
Auto merge of #3938 - rust-lang:rustup-2024-10-04, r=RalfJung
Automatic Rustup
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]