Fix needless_lifetimes in stable_mir
This commit is contained in:
parent
1f67a7aa8d
commit
a10a44956e
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ pub struct PlaceRef<'a> {
|
||||||
pub projection: &'a [ProjectionElem],
|
pub projection: &'a [ProjectionElem],
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> PlaceRef<'a> {
|
impl PlaceRef<'_> {
|
||||||
/// Get the type of this place.
|
/// Get the type of this place.
|
||||||
pub fn ty(&self, locals: &[LocalDecl]) -> Result<Ty, Error> {
|
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?))
|
self.projection.iter().fold(Ok(locals[self.local].ty), |place_ty, elem| elem.ty(place_ty?))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue