Add more tests + visit_ty in some places
This commit is contained in:
parent
8e7299dfcd
commit
c318364d48
6 changed files with 62 additions and 21 deletions
|
@ -156,10 +156,10 @@ where
|
|||
let leaf = leaf.subst(tcx, ct.substs);
|
||||
self.visit_const(leaf)
|
||||
}
|
||||
ACNode::Binop(..)
|
||||
| ACNode::UnaryOp(..)
|
||||
| ACNode::FunctionCall(_, _)
|
||||
| ACNode::Cast(_, _, _) => ControlFlow::CONTINUE,
|
||||
ACNode::Cast(_, _, ty) => self.visit_ty(ty),
|
||||
ACNode::Binop(..) | ACNode::UnaryOp(..) | ACNode::FunctionCall(_, _) => {
|
||||
ControlFlow::CONTINUE
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue