File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
compiler/rustc_ast/src/util Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,35 @@ pub fn expr_trailing_brace(mut expr: &ast::Expr) -> Option<&ast::Expr> {
48
48
}
49
49
Gen ( ..) | Block ( ..) | ForLoop ( ..) | If ( ..) | Loop ( ..) | Match ( ..) | Struct ( ..)
50
50
| TryBlock ( ..) | While ( ..) => break Some ( expr) ,
51
- _ => break None ,
51
+ Break ( _, _)
52
+ | Range ( _, _, _)
53
+ | Ret ( _)
54
+ | Yield ( _)
55
+ | Array ( _)
56
+ | ConstBlock ( _)
57
+ | Call ( _, _)
58
+ | MethodCall ( _)
59
+ | Tup ( _)
60
+ | Lit ( _)
61
+ | Cast ( _, _)
62
+ | Type ( _, _)
63
+ | Await ( _, _)
64
+ | Field ( _, _)
65
+ | Index ( _, _, _)
66
+ | Underscore
67
+ | Path ( _, _)
68
+ | Continue ( _)
69
+ | InlineAsm ( _)
70
+ | OffsetOf ( _, _)
71
+ | MacCall ( _)
72
+ | Repeat ( _, _)
73
+ | Paren ( _)
74
+ | Try ( _)
75
+ | Yeet ( _)
76
+ | Become ( _)
77
+ | IncludedBytes ( _)
78
+ | FormatArgs ( _)
79
+ | Err => break None , // _ => break None,
52
80
}
53
81
}
54
82
}
You can’t perform that action at this time.
0 commit comments