@@ -602,12 +602,12 @@ struct MirBorrowckCtxt<'a, 'mir, 'infcx, 'tcx> {
602
602
impl < ' a , ' mir , ' tcx , R > rustc_mir_dataflow:: ResultsVisitor < ' mir , ' tcx , R >
603
603
for MirBorrowckCtxt < ' a , ' mir , ' _ , ' tcx >
604
604
{
605
- type FlowState = Flows < ' a , ' mir , ' tcx > ;
605
+ type FlowState = Flows < ' mir , ' tcx > ;
606
606
607
607
fn visit_statement_before_primary_effect (
608
608
& mut self ,
609
609
_results : & mut R ,
610
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
610
+ flow_state : & Flows < ' mir , ' tcx > ,
611
611
stmt : & ' mir Statement < ' tcx > ,
612
612
location : Location ,
613
613
) {
@@ -677,7 +677,7 @@ impl<'a, 'mir, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'mir, 'tcx, R>
677
677
fn visit_terminator_before_primary_effect (
678
678
& mut self ,
679
679
_results : & mut R ,
680
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
680
+ flow_state : & Flows < ' mir , ' tcx > ,
681
681
term : & ' mir Terminator < ' tcx > ,
682
682
loc : Location ,
683
683
) {
@@ -794,7 +794,7 @@ impl<'a, 'mir, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'mir, 'tcx, R>
794
794
fn visit_terminator_after_primary_effect (
795
795
& mut self ,
796
796
_results : & mut R ,
797
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
797
+ flow_state : & Flows < ' mir , ' tcx > ,
798
798
term : & ' mir Terminator < ' tcx > ,
799
799
loc : Location ,
800
800
) {
@@ -989,7 +989,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
989
989
place_span : ( Place < ' tcx > , Span ) ,
990
990
kind : ( AccessDepth , ReadOrWrite ) ,
991
991
is_local_mutation_allowed : LocalMutationIsAllowed ,
992
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
992
+ flow_state : & Flows < ' mir , ' tcx > ,
993
993
) {
994
994
let ( sd, rw) = kind;
995
995
@@ -1039,7 +1039,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
1039
1039
place_span : ( Place < ' tcx > , Span ) ,
1040
1040
sd : AccessDepth ,
1041
1041
rw : ReadOrWrite ,
1042
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
1042
+ flow_state : & Flows < ' mir , ' tcx > ,
1043
1043
) -> bool {
1044
1044
let mut error_reported = false ;
1045
1045
let borrow_set = Rc :: clone ( & self . borrow_set ) ;
@@ -1180,7 +1180,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
1180
1180
location : Location ,
1181
1181
place_span : ( Place < ' tcx > , Span ) ,
1182
1182
kind : AccessDepth ,
1183
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
1183
+ flow_state : & Flows < ' mir , ' tcx > ,
1184
1184
) {
1185
1185
// Write of P[i] or *P requires P init'd.
1186
1186
self . check_if_assigned_path_is_moved ( location, place_span, flow_state) ;
@@ -1198,7 +1198,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
1198
1198
& mut self ,
1199
1199
location : Location ,
1200
1200
( rvalue, span) : ( & ' mir Rvalue < ' tcx > , Span ) ,
1201
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
1201
+ flow_state : & Flows < ' mir , ' tcx > ,
1202
1202
) {
1203
1203
match rvalue {
1204
1204
& Rvalue :: Ref ( _ /*rgn*/ , bk, place) => {
@@ -1456,7 +1456,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
1456
1456
& mut self ,
1457
1457
location : Location ,
1458
1458
( operand, span) : ( & ' mir Operand < ' tcx > , Span ) ,
1459
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
1459
+ flow_state : & Flows < ' mir , ' tcx > ,
1460
1460
) {
1461
1461
match * operand {
1462
1462
Operand :: Copy ( place) => {
@@ -1580,7 +1580,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
1580
1580
& mut self ,
1581
1581
location : Location ,
1582
1582
span : Span ,
1583
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
1583
+ flow_state : & Flows < ' mir , ' tcx > ,
1584
1584
) {
1585
1585
// Two-phase borrow support: For each activation that is newly
1586
1586
// generated at this statement, check if it interferes with
@@ -1744,7 +1744,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
1744
1744
location : Location ,
1745
1745
desired_action : InitializationRequiringAction ,
1746
1746
place_span : ( PlaceRef < ' tcx > , Span ) ,
1747
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
1747
+ flow_state : & Flows < ' mir , ' tcx > ,
1748
1748
) {
1749
1749
let maybe_uninits = & flow_state. uninits ;
1750
1750
@@ -1849,7 +1849,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
1849
1849
location : Location ,
1850
1850
desired_action : InitializationRequiringAction ,
1851
1851
place_span : ( PlaceRef < ' tcx > , Span ) ,
1852
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
1852
+ flow_state : & Flows < ' mir , ' tcx > ,
1853
1853
) {
1854
1854
let maybe_uninits = & flow_state. uninits ;
1855
1855
@@ -1948,7 +1948,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
1948
1948
& mut self ,
1949
1949
location : Location ,
1950
1950
( place, span) : ( Place < ' tcx > , Span ) ,
1951
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
1951
+ flow_state : & Flows < ' mir , ' tcx > ,
1952
1952
) {
1953
1953
debug ! ( "check_if_assigned_path_is_moved place: {:?}" , place) ;
1954
1954
@@ -2014,7 +2014,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
2014
2014
location : Location ,
2015
2015
base : PlaceRef < ' tcx > ,
2016
2016
span : Span ,
2017
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
2017
+ flow_state : & Flows < ' mir , ' tcx > ,
2018
2018
) {
2019
2019
// rust-lang/rust#21232: Until Rust allows reads from the
2020
2020
// initialized parts of partially initialized structs, we
@@ -2105,7 +2105,7 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
2105
2105
( place, span) : ( Place < ' tcx > , Span ) ,
2106
2106
kind : ReadOrWrite ,
2107
2107
is_local_mutation_allowed : LocalMutationIsAllowed ,
2108
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
2108
+ flow_state : & Flows < ' mir , ' tcx > ,
2109
2109
location : Location ,
2110
2110
) -> bool {
2111
2111
debug ! (
@@ -2221,15 +2221,15 @@ impl<'mir, 'tcx> MirBorrowckCtxt<'_, 'mir, '_, 'tcx> {
2221
2221
fn is_local_ever_initialized (
2222
2222
& self ,
2223
2223
local : Local ,
2224
- flow_state : & Flows < ' _ , ' mir , ' tcx > ,
2224
+ flow_state : & Flows < ' mir , ' tcx > ,
2225
2225
) -> Option < InitIndex > {
2226
2226
let mpi = self . move_data . rev_lookup . find_local ( local) ?;
2227
2227
let ii = & self . move_data . init_path_map [ mpi] ;
2228
2228
ii. into_iter ( ) . find ( |& & index| flow_state. ever_inits . contains ( index) ) . copied ( )
2229
2229
}
2230
2230
2231
2231
/// Adds the place into the used mutable variables set
2232
- fn add_used_mut ( & mut self , root_place : RootPlace < ' tcx > , flow_state : & Flows < ' _ , ' mir , ' tcx > ) {
2232
+ fn add_used_mut ( & mut self , root_place : RootPlace < ' tcx > , flow_state : & Flows < ' mir , ' tcx > ) {
2233
2233
match root_place {
2234
2234
RootPlace { place_local : local, place_projection : [ ] , is_local_mutation_allowed } => {
2235
2235
// If the local may have been initialized, and it is now currently being
0 commit comments