diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-27 22:15:58 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-06-03 12:03:20 +0200 |
| commit | 1e86cc5194eca009519b9631d081867366fe5c44 (patch) | |
| tree | 873fd05045c8a26c774a3349aec8b5e0741631da /clippy_lints/src | |
| parent | 2a18d124aaea78d2fad8be0135fa8182d40e32fb (diff) | |
| download | rust-1e86cc5194eca009519b9631d081867366fe5c44.tar.gz rust-1e86cc5194eca009519b9631d081867366fe5c44.zip | |
Manipulate lifetimes by LocalDefId for region resolution.
Diffstat (limited to 'clippy_lints/src')
| -rw-r--r-- | clippy_lints/src/lifetimes.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/ptr.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/lifetimes.rs b/clippy_lints/src/lifetimes.rs index 51d5b510ab9..070c7e59142 100644 --- a/clippy_lints/src/lifetimes.rs +++ b/clippy_lints/src/lifetimes.rs @@ -371,7 +371,7 @@ impl<'a, 'tcx> RefVisitor<'a, 'tcx> { 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 { + } 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); diff --git a/clippy_lints/src/ptr.rs b/clippy_lints/src/ptr.rs index 548f7b2528b..0b96f6ff683 100644 --- a/clippy_lints/src/ptr.rs +++ b/clippy_lints/src/ptr.rs @@ -343,7 +343,7 @@ impl fmt::Display for RefPrefix { use fmt::Write; f.write_char('&')?; match self.lt { - LifetimeName::Param(ParamName::Plain(name)) => { + LifetimeName::Param(_, ParamName::Plain(name)) => { name.fmt(f)?; f.write_char(' ')?; }, |
