Fix needless_lifetimes in stable_mir
This commit is contained in:
parent
1f67a7aa8d
commit
a10a44956e
@ -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?))
|
||||
|
Loading…
Reference in New Issue
Block a user