mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 02:38:28 +00:00
rustup to rustc 1.5.0-nightly (65d5c0833 2015-09-29)
This commit is contained in:
parent
e8f875813d
commit
4fc17e7faf
1 changed files with 1 additions and 9 deletions
|
@ -177,18 +177,10 @@ impl RefVisitor {
|
|||
}
|
||||
|
||||
impl<'v> Visitor<'v> for RefVisitor {
|
||||
// for lifetimes of references
|
||||
fn visit_opt_lifetime_ref(&mut self, _: Span, lifetime: &'v Option<Lifetime>) {
|
||||
self.record(lifetime);
|
||||
}
|
||||
|
||||
// for lifetimes as parameters of generics
|
||||
fn visit_lifetime_ref(&mut self, lifetime: &'v Lifetime) {
|
||||
fn visit_lifetime(&mut self, lifetime: &'v Lifetime) {
|
||||
self.record(&Some(*lifetime));
|
||||
}
|
||||
|
||||
// for lifetime bounds; the default impl calls visit_lifetime_ref
|
||||
fn visit_lifetime_bound(&mut self, _: &'v Lifetime) { }
|
||||
}
|
||||
|
||||
/// Are any lifetimes mentioned in the `where` clause? If yes, we don't try to
|
||||
|
|
Loading…
Reference in a new issue