We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f67a7a commit a10a449Copy full SHA for a10a449
compiler/stable_mir/src/mir/visit.rs
@@ -487,7 +487,7 @@ pub struct PlaceRef<'a> {
487
pub projection: &'a [ProjectionElem],
488
}
489
490
-impl<'a> PlaceRef<'a> {
+impl PlaceRef<'_> {
491
/// Get the type of this place.
492
pub fn ty(&self, locals: &[LocalDecl]) -> Result<Ty, Error> {
493
self.projection.iter().fold(Ok(locals[self.local].ty), |place_ty, elem| elem.ty(place_ty?))
0 commit comments