thir
: Add Become
expression kind
This commit is contained in:
parent
b5e51db16d
commit
c60fb12a35
11 changed files with 32 additions and 9 deletions
|
@ -410,6 +410,10 @@ pub enum ExprKind<'tcx> {
|
|||
Return {
|
||||
value: Option<ExprId>,
|
||||
},
|
||||
/// A `become` expression.
|
||||
Become {
|
||||
value: ExprId,
|
||||
},
|
||||
/// An inline `const` block, e.g. `const {}`.
|
||||
ConstBlock {
|
||||
did: DefId,
|
||||
|
|
|
@ -100,6 +100,7 @@ pub fn walk_expr<'a, 'tcx: 'a, V: Visitor<'a, 'tcx>>(visitor: &mut V, expr: &Exp
|
|||
visitor.visit_expr(&visitor.thir()[value])
|
||||
}
|
||||
}
|
||||
Become { value } => visitor.visit_expr(&visitor.thir()[value]),
|
||||
ConstBlock { did: _, substs: _ } => {}
|
||||
Repeat { value, count: _ } => {
|
||||
visitor.visit_expr(&visitor.thir()[value]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue