@@ -220,17 +220,17 @@ pub trait ErrorReporting<'tcx> {
220
220
fn process_errors ( & self , errors : & Vec < RegionResolutionError < ' tcx > > )
221
221
-> Vec < RegionResolutionError < ' tcx > > ;
222
222
223
- fn report_type_error ( & self , trace : TypeTrace < ' tcx > , terr : & ty:: type_err < ' tcx > ) ;
223
+ fn report_type_error ( & self , trace : TypeTrace < ' tcx > , terr : & ty:: TypeError < ' tcx > ) ;
224
224
225
225
fn report_and_explain_type_error ( & self ,
226
226
trace : TypeTrace < ' tcx > ,
227
- terr : & ty:: type_err < ' tcx > ) ;
227
+ terr : & ty:: TypeError < ' tcx > ) ;
228
228
229
229
fn values_str ( & self , values : & ValuePairs < ' tcx > ) -> Option < String > ;
230
230
231
231
fn expected_found_str < T : fmt:: Display + Resolvable < ' tcx > + HasTypeFlags > (
232
232
& self ,
233
- exp_found : & ty:: expected_found < T > )
233
+ exp_found : & ty:: ExpectedFound < T > )
234
234
-> Option < String > ;
235
235
236
236
fn report_concrete_failure ( & self ,
@@ -260,7 +260,7 @@ pub trait ErrorReporting<'tcx> {
260
260
261
261
fn report_processed_errors ( & self ,
262
262
var_origin : & [ RegionVariableOrigin ] ,
263
- trace_origin : & [ ( TypeTrace < ' tcx > , ty:: type_err < ' tcx > ) ] ,
263
+ trace_origin : & [ ( TypeTrace < ' tcx > , ty:: TypeError < ' tcx > ) ] ,
264
264
same_regions : & [ SameRegions ] ) ;
265
265
266
266
fn give_suggestion ( & self , same_regions : & [ SameRegions ] ) ;
@@ -351,7 +351,7 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
351
351
match free_regions_from_same_fn ( self . tcx , sub, sup) {
352
352
Some ( ref same_frs) if trace. is_some ( ) => {
353
353
let trace = trace. unwrap ( ) ;
354
- let terr = ty:: terr_regions_does_not_outlive ( sup,
354
+ let terr = ty:: RegionsDoesNotOutlive ( sup,
355
355
sub) ;
356
356
trace_origins. push ( ( trace, terr) ) ;
357
357
append_to_same_regions ( & mut same_regions, same_frs) ;
@@ -467,7 +467,7 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
467
467
}
468
468
}
469
469
470
- fn report_type_error ( & self , trace : TypeTrace < ' tcx > , terr : & ty:: type_err < ' tcx > ) {
470
+ fn report_type_error ( & self , trace : TypeTrace < ' tcx > , terr : & ty:: TypeError < ' tcx > ) {
471
471
let expected_found_str = match self . values_str ( & trace. values ) {
472
472
Some ( v) => v,
473
473
None => {
@@ -490,7 +490,7 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
490
490
491
491
fn report_and_explain_type_error ( & self ,
492
492
trace : TypeTrace < ' tcx > ,
493
- terr : & ty:: type_err < ' tcx > ) {
493
+ terr : & ty:: TypeError < ' tcx > ) {
494
494
let span = trace. origin . span ( ) ;
495
495
self . report_type_error ( trace, terr) ;
496
496
self . tcx . note_and_explain_type_err ( terr, span) ;
@@ -508,7 +508,7 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
508
508
509
509
fn expected_found_str < T : fmt:: Display + Resolvable < ' tcx > + HasTypeFlags > (
510
510
& self ,
511
- exp_found : & ty:: expected_found < T > )
511
+ exp_found : & ty:: ExpectedFound < T > )
512
512
-> Option < String >
513
513
{
514
514
let expected = exp_found. expected . resolve ( self ) ;
@@ -595,7 +595,7 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
595
595
match origin {
596
596
infer:: Subtype ( trace) |
597
597
infer:: DefaultExistentialBound ( trace) => {
598
- let terr = ty:: terr_regions_does_not_outlive ( sup, sub) ;
598
+ let terr = ty:: RegionsDoesNotOutlive ( sup, sub) ;
599
599
self . report_and_explain_type_error ( trace, & terr) ;
600
600
}
601
601
infer:: Reborrow ( span) => {
@@ -888,7 +888,7 @@ impl<'a, 'tcx> ErrorReporting<'tcx> for InferCtxt<'a, 'tcx> {
888
888
889
889
fn report_processed_errors ( & self ,
890
890
var_origins : & [ RegionVariableOrigin ] ,
891
- trace_origins : & [ ( TypeTrace < ' tcx > , ty:: type_err < ' tcx > ) ] ,
891
+ trace_origins : & [ ( TypeTrace < ' tcx > , ty:: TypeError < ' tcx > ) ] ,
892
892
same_regions : & [ SameRegions ] ) {
893
893
for vo in var_origins {
894
894
self . report_inference_failure ( vo. clone ( ) ) ;
0 commit comments