Remove left over comment
This commit is contained in:
@@ -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()) {
|
if let Ok(Some(ct)) = AbstractConst::new(self.tcx, uv.shrink()) {
|
||||||
const_evaluatable::walk_abstract_const(self.tcx, ct, |node| {
|
const_evaluatable::walk_abstract_const(self.tcx, ct, |node| {
|
||||||
match node.root(self.tcx, ct.substs) {
|
match node.root(self.tcx, ct.substs) {
|
||||||
Node::Leaf(leaf) => {
|
Node::Leaf(leaf) => self.visit_const(leaf),
|
||||||
// let leaf = leaf.subst(self.tcx, ct.substs);
|
|
||||||
self.visit_const(leaf)
|
|
||||||
}
|
|
||||||
Node::Cast(_, _, ty) => self.visit_ty(ty),
|
Node::Cast(_, _, ty) => self.visit_ty(ty),
|
||||||
Node::Binop(..) | Node::UnaryOp(..) | Node::FunctionCall(_, _) => {
|
Node::Binop(..) | Node::UnaryOp(..) | Node::FunctionCall(_, _) => {
|
||||||
ControlFlow::CONTINUE
|
ControlFlow::CONTINUE
|
||||||
|
|||||||
Reference in New Issue
Block a user