@@ -841,9 +841,9 @@ enum InitializationRequiringAction {
841
841
PartialAssignment ,
842
842
}
843
843
844
- struct RootPlace < ' d , ' tcx > {
844
+ struct RootPlace < ' tcx > {
845
845
place_local : Local ,
846
- place_projection : & ' d [ PlaceElem < ' tcx > ] ,
846
+ place_projection : & ' tcx [ PlaceElem < ' tcx > ] ,
847
847
is_local_mutation_allowed : LocalMutationIsAllowed ,
848
848
}
849
849
@@ -2029,7 +2029,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2029
2029
}
2030
2030
2031
2031
/// Adds the place into the used mutable variables set
2032
- fn add_used_mut < ' d > ( & mut self , root_place : RootPlace < ' d , ' tcx > , flow_state : & Flows < ' cx , ' tcx > ) {
2032
+ fn add_used_mut ( & mut self , root_place : RootPlace < ' tcx > , flow_state : & Flows < ' cx , ' tcx > ) {
2033
2033
match root_place {
2034
2034
RootPlace { place_local : local, place_projection : [ ] , is_local_mutation_allowed } => {
2035
2035
// If the local may have been initialized, and it is now currently being
@@ -2063,11 +2063,11 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2063
2063
2064
2064
/// Whether this value can be written or borrowed mutably.
2065
2065
/// Returns the root place if the place passed in is a projection.
2066
- fn is_mutable < ' d > (
2066
+ fn is_mutable (
2067
2067
& self ,
2068
- place : PlaceRef < ' d , ' tcx > ,
2068
+ place : PlaceRef < ' tcx , ' tcx > ,
2069
2069
is_local_mutation_allowed : LocalMutationIsAllowed ,
2070
- ) -> Result < RootPlace < ' d , ' tcx > , PlaceRef < ' d , ' tcx > > {
2070
+ ) -> Result < RootPlace < ' tcx > , PlaceRef < ' tcx , ' tcx > > {
2071
2071
match place {
2072
2072
PlaceRef { local, projection : [ ] } => {
2073
2073
let local = & self . body . local_decls [ local] ;
0 commit comments