@@ -1013,7 +1013,7 @@ fn check_impl_items_against_trait<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
1013
1013
// We can only get the spans from local trait definition
1014
1014
// Same for E0324 and E0325
1015
1015
if let Some ( trait_span) = tcx. map . span_if_local ( ty_trait_item. def_id ( ) ) {
1016
- err. span_label ( trait_span, & format ! ( "original trait requirement " ) ) ;
1016
+ err. span_label ( trait_span, & format ! ( "item in trait " ) ) ;
1017
1017
}
1018
1018
err. emit ( )
1019
1019
}
@@ -1041,7 +1041,7 @@ fn check_impl_items_against_trait<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
1041
1041
impl_trait_ref) ;
1042
1042
err. span_label ( impl_item. span , & format ! ( "does not match trait" ) ) ;
1043
1043
if let Some ( trait_span) = tcx. map . span_if_local ( ty_trait_item. def_id ( ) ) {
1044
- err. span_label ( trait_span, & format ! ( "original trait requirement " ) ) ;
1044
+ err. span_label ( trait_span, & format ! ( "item in trait " ) ) ;
1045
1045
}
1046
1046
err. emit ( )
1047
1047
}
@@ -1064,7 +1064,7 @@ fn check_impl_items_against_trait<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
1064
1064
impl_trait_ref) ;
1065
1065
err. span_label ( impl_item. span , & format ! ( "does not match trait" ) ) ;
1066
1066
if let Some ( trait_span) = tcx. map . span_if_local ( ty_trait_item. def_id ( ) ) {
1067
- err. span_label ( trait_span, & format ! ( "original trait requirement " ) ) ;
1067
+ err. span_label ( trait_span, & format ! ( "item in trait " ) ) ;
1068
1068
}
1069
1069
err. emit ( )
1070
1070
}
@@ -4408,8 +4408,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
4408
4408
expected at most {}, found {}",
4409
4409
count( type_defs. len( ) ) ,
4410
4410
count( types. len( ) ) )
4411
- . span_label ( span, & format ! ( "expected {}" ,
4412
- count( type_defs. len( ) ) ) ) . emit ( ) ;
4411
+ . span_label ( span, & format ! ( "too many type parameters" ) ) . emit ( ) ;
4413
4412
4414
4413
// To prevent derived errors to accumulate due to extra
4415
4414
// type parameters, we force instantiate_value_path to
0 commit comments