about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/util/classify.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-29 22:17:30 -0400
committerMichael Goulet <michael@errs.io>2024-10-01 13:55:46 -0400
commit40465d2449f3d9a36c86b94885f58ed3ee2a99f0 (patch)
treea98bcd2bbf0fe57748eba20e2c90eaf96c4471d8 /compiler/rustc_ast/src/util/classify.rs
parente3a0da18633a8cfb5263bb975747352690b01fcf (diff)
downloadrust-40465d2449f3d9a36c86b94885f58ed3ee2a99f0.tar.gz
rust-40465d2449f3d9a36c86b94885f58ed3ee2a99f0.zip
Remove anon struct and union types
Diffstat (limited to 'compiler/rustc_ast/src/util/classify.rs')
-rw-r--r--compiler/rustc_ast/src/util/classify.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_ast/src/util/classify.rs b/compiler/rustc_ast/src/util/classify.rs
index 1a80a9ccdbf..a517f17c82c 100644
--- a/compiler/rustc_ast/src/util/classify.rs
+++ b/compiler/rustc_ast/src/util/classify.rs
@@ -287,12 +287,6 @@ fn type_trailing_braced_mac_call(mut ty: &ast::Ty) -> Option<&ast::MacCall> {
             | ast::TyKind::Pat(..)
             | ast::TyKind::Dummy
             | ast::TyKind::Err(..) => break None,
-
-            // These end in brace, but cannot occur in a let-else statement.
-            // They are only parsed as fields of a data structure. For the
-            // purpose of denying trailing braces in the expression of a
-            // let-else, we can disregard these.
-            ast::TyKind::AnonStruct(..) | ast::TyKind::AnonUnion(..) => break None,
         }
     }
 }