mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Remove unnecessary secondary recursion
This commit is contained in:
parent
315ab95a9c
commit
86d65d8ec8
|
@ -939,7 +939,7 @@ fn visit_region(&mut self, r: ty::Region<'tcx>) -> bool {
|
|||
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue