Rollup merge of #112790 - WaffleLapkin:syntactically, r=Nilstrieb
Syntactically accept `become` expressions (explicit tail calls experiment) This adds `ast::ExprKind::Become`, implements parsing and properly gates the feature. cc `@scottmcm`
This commit is contained in:
commit
c6710d15f1
17 changed files with 74 additions and 2 deletions
|
@ -320,6 +320,7 @@ impl<'cx, 'a> Context<'cx, 'a> {
|
|||
| ExprKind::Underscore
|
||||
| ExprKind::While(_, _, _)
|
||||
| ExprKind::Yeet(_)
|
||||
| ExprKind::Become(_)
|
||||
| ExprKind::Yield(_) => {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue