@@ -1013,7 +1013,7 @@ fn check_impl_items_against_trait<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
10131013 // We can only get the spans from local trait definition
10141014 // Same for E0324 and E0325
10151015 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 " ) ) ;
10171017 }
10181018 err. emit ( )
10191019 }
@@ -1041,7 +1041,7 @@ fn check_impl_items_against_trait<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
10411041 impl_trait_ref) ;
10421042 err. span_label ( impl_item. span , & format ! ( "does not match trait" ) ) ;
10431043 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 " ) ) ;
10451045 }
10461046 err. emit ( )
10471047 }
@@ -1064,7 +1064,7 @@ fn check_impl_items_against_trait<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
10641064 impl_trait_ref) ;
10651065 err. span_label ( impl_item. span , & format ! ( "does not match trait" ) ) ;
10661066 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 " ) ) ;
10681068 }
10691069 err. emit ( )
10701070 }
@@ -4408,8 +4408,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
44084408 expected at most {}, found {}",
44094409 count( type_defs. len( ) ) ,
44104410 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 ( ) ;
44134412
44144413 // To prevent derived errors to accumulate due to extra
44154414 // type parameters, we force instantiate_value_path to
0 commit comments