Support as casts in abstract consts
This commit is contained in:
parent
dda4a881e0
commit
8e7299dfcd
7 changed files with 66 additions and 14 deletions
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue