@@ -65,7 +65,6 @@ use super::ValuePairs;
65
65
use super :: region_inference:: RegionResolutionError ;
66
66
use super :: region_inference:: ConcreteFailure ;
67
67
use super :: region_inference:: SubSupConflict ;
68
- use super :: region_inference:: SupSupConflict ;
69
68
use super :: region_inference:: GenericBoundFailure ;
70
69
use super :: region_inference:: GenericKind ;
71
70
use super :: region_inference:: ProcessedErrors ;
@@ -258,13 +257,6 @@ pub trait ErrorReporting<'tcx> {
258
257
sup_origin : SubregionOrigin < ' tcx > ,
259
258
sup_region : Region ) ;
260
259
261
- fn report_sup_sup_conflict ( & self ,
262
- var_origin : RegionVariableOrigin ,
263
- origin1 : SubregionOrigin < ' tcx > ,
264
- region1 : Region ,
265
- origin2 : SubregionOrigin < ' tcx > ,
266
- region2 : Region ) ;
267
-
268
260
fn report_processed_errors ( & self ,
269
261
var_origin : & [ RegionVariableOrigin ] ,
270
262
trace_origin : & [ ( TypeTrace < ' tcx > , TypeError < ' tcx > ) ] ,
@@ -313,14 +305,6 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
313
305
sup_origin, sup_r) ;
314
306
}
315
307
316
- SupSupConflict ( var_origin,
317
- origin1, r1,
318
- origin2, r2) => {
319
- self . report_sup_sup_conflict ( var_origin,
320
- origin1, r1,
321
- origin2, r2) ;
322
- }
323
-
324
308
ProcessedErrors ( ref var_origins,
325
309
ref trace_origins,
326
310
ref same_regions) => {
@@ -376,7 +360,6 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
376
360
None => processed_errors. push ( ( * error) . clone ( ) ) ,
377
361
}
378
362
}
379
- SupSupConflict ( ..) => processed_errors. push ( ( * error) . clone ( ) ) ,
380
363
_ => ( ) // This shouldn't happen
381
364
}
382
365
}
@@ -930,29 +913,6 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
930
913
self . note_region_origin ( & sub_origin) ;
931
914
}
932
915
933
- fn report_sup_sup_conflict ( & self ,
934
- var_origin : RegionVariableOrigin ,
935
- origin1 : SubregionOrigin < ' tcx > ,
936
- region1 : Region ,
937
- origin2 : SubregionOrigin < ' tcx > ,
938
- region2 : Region ) {
939
- self . report_inference_failure ( var_origin) ;
940
-
941
- self . tcx . note_and_explain_region (
942
- "first, the lifetime must be contained by " ,
943
- region1,
944
- "..." ) ;
945
-
946
- self . note_region_origin ( & origin1) ;
947
-
948
- self . tcx . note_and_explain_region (
949
- "but, the lifetime must also be contained by " ,
950
- region2,
951
- "..." ) ;
952
-
953
- self . note_region_origin ( & origin2) ;
954
- }
955
-
956
916
fn report_processed_errors ( & self ,
957
917
var_origins : & [ RegionVariableOrigin ] ,
958
918
trace_origins : & [ ( TypeTrace < ' tcx > , TypeError < ' tcx > ) ] ,
0 commit comments