Remove unnecessary secondary recursion

This commit is contained in:
Oliver Scherer 2019-03-18 14:21:41 +01:00
parent 315ab95a9c
commit 86d65d8ec8
1 changed files with 1 additions and 1 deletions

View File

@ -939,7 +939,7 @@ impl<'tcx> TypeVisitor<'tcx> for HasTypeFlagsVisitor {
fn visit_const(&mut self, c: &'tcx ty::Const<'tcx>) -> bool {
let flags = FlagComputation::for_const(c);
debug!("HasTypeFlagsVisitor: c={:?} c.flags={:?} self.flags={:?}", c, flags, self.flags);
flags.intersects(self.flags) || c.super_visit_with(self)
flags.intersects(self.flags)
}
}