mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
Ignore generated fresh lifetimes in elision check.
This commit is contained in:
parent
5c921a9f61
commit
a9bec0c8a6
@ -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…
Reference in New Issue
Block a user