@@ -11,7 +11,6 @@ use crate::borrow_check::nll::{
11
11
region_infer:: values:: {
12
12
PlaceholderIndices , RegionElement , ToElementIndex
13
13
} ,
14
- region_infer:: error_reporting:: outlives_suggestion:: OutlivesSuggestionBuilder ,
15
14
type_check:: { free_region_relations:: UniversalRegionRelations , Locations } ,
16
15
} ;
17
16
use crate :: borrow_check:: Upvar ;
@@ -1340,6 +1339,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1340
1339
mir_def_id,
1341
1340
fr,
1342
1341
& mut propagated_outlives_requirements,
1342
+ errors_buffer,
1343
1343
region_naming,
1344
1344
) ;
1345
1345
}
@@ -1371,6 +1371,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1371
1371
mir_def_id : DefId ,
1372
1372
longer_fr : RegionVid ,
1373
1373
propagated_outlives_requirements : & mut Option < & mut Vec < ClosureOutlivesRequirement < ' tcx > > > ,
1374
+ errors_buffer : & mut Vec < Diagnostic > ,
1374
1375
region_naming : & mut RegionErrorNamingCtx ,
1375
1376
) {
1376
1377
debug ! ( "check_universal_region(fr={:?})" , longer_fr) ;
@@ -1398,6 +1399,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1398
1399
upvars,
1399
1400
mir_def_id,
1400
1401
propagated_outlives_requirements,
1402
+ errors_buffer,
1401
1403
region_naming,
1402
1404
) ;
1403
1405
return ;
@@ -1414,6 +1416,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1414
1416
upvars,
1415
1417
mir_def_id,
1416
1418
propagated_outlives_requirements,
1419
+ errors_buffer,
1417
1420
region_naming,
1418
1421
) {
1419
1422
// continuing to iterate just reports more errors than necessary
@@ -1435,6 +1438,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
1435
1438
upvars : & [ Upvar ] ,
1436
1439
mir_def_id : DefId ,
1437
1440
propagated_outlives_requirements : & mut Option < & mut Vec < ClosureOutlivesRequirement < ' tcx > > > ,
1441
+ errors_buffer : & mut Vec < Diagnostic > ,
1438
1442
region_naming : & mut RegionErrorNamingCtx ,
1439
1443
) -> Option < ErrorReported > {
1440
1444
// If it is known that `fr: o`, carry on.
0 commit comments