Skip to content

Commit 6e40618

Browse files
committed
Remove left over comment
1 parent 22c2738 commit 6e40618

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_trait_selection/src/traits/object_safety.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,10 +840,7 @@ fn contains_illegal_self_type_reference<'tcx, T: TypeFoldable<'tcx>>(
840840
if let Ok(Some(ct)) = AbstractConst::new(self.tcx, uv.shrink()) {
841841
const_evaluatable::walk_abstract_const(self.tcx, ct, |node| {
842842
match node.root(self.tcx, ct.substs) {
843-
Node::Leaf(leaf) => {
844-
// let leaf = leaf.subst(self.tcx, ct.substs);
845-
self.visit_const(leaf)
846-
}
843+
Node::Leaf(leaf) => self.visit_const(leaf),
847844
Node::Cast(_, _, ty) => self.visit_ty(ty),
848845
Node::Binop(..) | Node::UnaryOp(..) | Node::FunctionCall(_, _) => {
849846
ControlFlow::CONTINUE

0 commit comments

Comments
 (0)