Skip to content

Commit a10a449

Browse files
committed
Fix needless_lifetimes in stable_mir
1 parent 1f67a7a commit a10a449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/stable_mir/src/mir/visit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ pub struct PlaceRef<'a> {
487487
pub projection: &'a [ProjectionElem],
488488
}
489489

490-
impl<'a> PlaceRef<'a> {
490+
impl PlaceRef<'_> {
491491
/// Get the type of this place.
492492
pub fn ty(&self, locals: &[LocalDecl]) -> Result<Ty, Error> {
493493
self.projection.iter().fold(Ok(locals[self.local].ty), |place_ty, elem| elem.ty(place_ty?))

0 commit comments

Comments
 (0)