Remove left over comment

This commit is contained in:
Ethan Brierley 2021-09-04 15:49:02 +01:00
parent 22c2738573
commit 6e4061819f

View file

@ -840,10 +840,7 @@ fn contains_illegal_self_type_reference<'tcx, T: TypeFoldable<'tcx>>(
if let Ok(Some(ct)) = AbstractConst::new(self.tcx, uv.shrink()) {
const_evaluatable::walk_abstract_const(self.tcx, ct, |node| {
match node.root(self.tcx, ct.substs) {
Node::Leaf(leaf) => {
// let leaf = leaf.subst(self.tcx, ct.substs);
self.visit_const(leaf)
}
Node::Leaf(leaf) => self.visit_const(leaf),
Node::Cast(_, _, ty) => self.visit_ty(ty),
Node::Binop(..) | Node::UnaryOp(..) | Node::FunctionCall(_, _) => {
ControlFlow::CONTINUE