We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27fc55b commit 1176883Copy full SHA for 1176883
compiler/rustc_ast/src/util/classify.rs
@@ -50,10 +50,10 @@ pub fn expr_trailing_brace(mut expr: &ast::Expr) -> Option<&ast::Expr> {
50
}
51
Gen(..) | Block(..) | ForLoop(..) | If(..) | Loop(..) | Match(..) | Struct(..)
52
| TryBlock(..) | While(..) | ConstBlock(_) => break Some(expr),
53
- Break(_, _)
54
- | Range(_, _, _)
55
- | Ret(_)
56
- | Yield(_)
+ Break(_, None)
+ | Range(_, None, _)
+ | Ret(None)
+ | Yield(None)
57
| Array(_)
58
| Call(_, _)
59
| MethodCall(_)
@@ -70,7 +70,7 @@ pub fn expr_trailing_brace(mut expr: &ast::Expr) -> Option<&ast::Expr> {
70
| Repeat(_, _)
71
| Paren(_)
72
| Try(_)
73
- | Yeet(_)
+ | Yeet(None)
74
| InlineAsm(_)
75
| OffsetOf(_, _)
76
| MacCall(_)
0 commit comments