1
Fork 0

Support as casts in abstract consts

This commit is contained in:
Ellen 2021-06-08 08:02:12 +01:00
parent dda4a881e0
commit 8e7299dfcd
7 changed files with 66 additions and 14 deletions

View file

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