diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-29 22:17:30 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-01 13:55:46 -0400 |
| commit | 40465d2449f3d9a36c86b94885f58ed3ee2a99f0 (patch) | |
| tree | a98bcd2bbf0fe57748eba20e2c90eaf96c4471d8 /compiler/rustc_ast/src/util/classify.rs | |
| parent | e3a0da18633a8cfb5263bb975747352690b01fcf (diff) | |
| download | rust-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.rs | 6 |
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, } } } |
