mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 22:18:40 +00:00
Ignore generated fresh lifetimes in elision check.
This commit is contained in:
parent
5c921a9f61
commit
a9bec0c8a6
1 changed files with 2 additions and 0 deletions
|
@ -283,6 +283,8 @@ impl<'v, 't> RefVisitor<'v, 't> {
|
|||
if let Some(ref lt) = *lifetime {
|
||||
if lt.name == LifetimeName::Static {
|
||||
self.lts.push(RefLt::Static);
|
||||
} else if let LifetimeName::Param(ParamName::Fresh(_)) = lt.name {
|
||||
// Fresh lifetimes generated should be ignored.
|
||||
} else if lt.is_elided() {
|
||||
self.lts.push(RefLt::Unnamed);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue