Skip to content

Commit 86d65d8

Browse files
committed
Remove unnecessary secondary recursion
1 parent 315ab95 commit 86d65d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/fold.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ impl<'tcx> TypeVisitor<'tcx> for HasTypeFlagsVisitor {
939939
fn visit_const(&mut self, c: &'tcx ty::Const<'tcx>) -> bool {
940940
let flags = FlagComputation::for_const(c);
941941
debug!("HasTypeFlagsVisitor: c={:?} c.flags={:?} self.flags={:?}", c, flags, self.flags);
942-
flags.intersects(self.flags) || c.super_visit_with(self)
942+
flags.intersects(self.flags)
943943
}
944944
}
945945

0 commit comments

Comments
 (0)