diff options
| author | Michal Piotrowski <practicalrs.com@gmail.com> | 2024-10-16 13:31:23 +0200 |
|---|---|---|
| committer | Michal Piotrowski <practicalrs.com@gmail.com> | 2024-10-16 13:31:23 +0200 |
| commit | a10a44956e4efddf4fdf0f7a8b10796b9ae965ea (patch) | |
| tree | c42aaaabfb080b9d7686aadfd8bad2a7cca74fa8 | |
| parent | 1f67a7aa8d5b30c43c28ed9b2621cf4b7b8bb963 (diff) | |
| download | rust-a10a44956e4efddf4fdf0f7a8b10796b9ae965ea.tar.gz rust-a10a44956e4efddf4fdf0f7a8b10796b9ae965ea.zip | |
Fix needless_lifetimes in stable_mir
| -rw-r--r-- | compiler/stable_mir/src/mir/visit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/stable_mir/src/mir/visit.rs b/compiler/stable_mir/src/mir/visit.rs index e2d1ff7fdd3..85205528979 100644 --- a/compiler/stable_mir/src/mir/visit.rs +++ b/compiler/stable_mir/src/mir/visit.rs @@ -487,7 +487,7 @@ pub struct PlaceRef<'a> { pub projection: &'a [ProjectionElem], } -impl<'a> PlaceRef<'a> { +impl PlaceRef<'_> { /// Get the type of this place. pub fn ty(&self, locals: &[LocalDecl]) -> Result<Ty, Error> { self.projection.iter().fold(Ok(locals[self.local].ty), |place_ty, elem| elem.ty(place_ty?)) |
