1
Fork 0

Make fields on AbstractConst private

This commit is contained in:
Ethan Brierley 2021-09-04 16:28:55 +01:00
parent 6e4061819f
commit fc5633fed6
3 changed files with 13 additions and 13 deletions

View file

@ -153,7 +153,7 @@ where
tcx: TyCtxt<'tcx>,
ct: AbstractConst<'tcx>,
) -> ControlFlow<V::BreakTy> {
const_evaluatable::walk_abstract_const(tcx, ct, |node| match node.root(tcx, ct.substs) {
const_evaluatable::walk_abstract_const(tcx, ct, |node| match node.root(tcx) {
ACNode::Leaf(leaf) => self.visit_const(leaf),
ACNode::Cast(_, _, ty) => self.visit_ty(ty),
ACNode::Binop(..) | ACNode::UnaryOp(..) | ACNode::FunctionCall(_, _) => {