1
Fork 0

add a CastKind to Node::Cast

This commit is contained in:
Ellen 2021-09-07 13:24:04 +01:00
parent 955e2b2da0
commit 8c7954dc42
6 changed files with 42 additions and 10 deletions

View file

@ -158,7 +158,7 @@ where
let leaf = leaf.subst(tcx, ct.substs);
self.visit_const(leaf)
}
ACNode::Cast(_, ty) => self.visit_ty(ty),
ACNode::Cast(_, _, ty) => self.visit_ty(ty),
ACNode::Binop(..) | ACNode::UnaryOp(..) | ACNode::FunctionCall(_, _) => {
ControlFlow::CONTINUE
}