@@ -886,14 +886,14 @@ fn ast_ty_to_trait_ref<'tcx>(this: &AstConv<'tcx>,
886
886
pprust:: ty_to_string( ty) ) ;
887
887
match ty. node {
888
888
ast:: TyRptr ( None , ref mut_ty) => {
889
- span_note ! ( this. tcx( ) . sess, ty. span,
889
+ span_help ! ( this. tcx( ) . sess, ty. span,
890
890
"perhaps you meant `&{}({} +{})`? (per RFC 438)" ,
891
891
ppaux:: mutability_to_string( mut_ty. mutbl) ,
892
892
pprust:: ty_to_string( & * mut_ty. ty) ,
893
893
pprust:: bounds_to_string( bounds) ) ;
894
894
}
895
895
ast:: TyRptr ( Some ( ref lt) , ref mut_ty) => {
896
- span_note ! ( this. tcx( ) . sess, ty. span,
896
+ span_help ! ( this. tcx( ) . sess, ty. span,
897
897
"perhaps you meant `&{} {}({} +{})`? (per RFC 438)" ,
898
898
pprust:: lifetime_to_string( lt) ,
899
899
ppaux:: mutability_to_string( mut_ty. mutbl) ,
@@ -902,7 +902,7 @@ fn ast_ty_to_trait_ref<'tcx>(this: &AstConv<'tcx>,
902
902
}
903
903
904
904
_ => {
905
- span_note ! ( this. tcx( ) . sess, ty. span,
905
+ span_help ! ( this. tcx( ) . sess, ty. span,
906
906
"perhaps you forgot parentheses? (per RFC 438)" ) ;
907
907
}
908
908
}
0 commit comments