@@ -212,18 +212,18 @@ pub fn opt_ast_region_to_region<'tcx>(
212
212
}
213
213
}
214
214
if len == 1 {
215
- span_help ! ( this. tcx( ) . sess, default_span,
215
+ fileline_help ! ( this. tcx( ) . sess, default_span,
216
216
"this function's return type contains a borrowed value, but \
217
217
the signature does not say which {} it is borrowed from",
218
218
m) ;
219
219
} else if len == 0 {
220
- span_help ! ( this. tcx( ) . sess, default_span,
220
+ fileline_help ! ( this. tcx( ) . sess, default_span,
221
221
"this function's return type contains a borrowed value, but \
222
222
there is no value for it to be borrowed from") ;
223
- span_help ! ( this. tcx( ) . sess, default_span,
223
+ fileline_help ! ( this. tcx( ) . sess, default_span,
224
224
"consider giving it a 'static lifetime" ) ;
225
225
} else {
226
- span_help ! ( this. tcx( ) . sess, default_span,
226
+ fileline_help ! ( this. tcx( ) . sess, default_span,
227
227
"this function's return type contains a borrowed value, but \
228
228
the signature does not say whether it is borrowed from {}",
229
229
m) ;
@@ -705,7 +705,7 @@ fn ast_path_to_trait_ref<'a,'tcx>(
705
705
span_err ! ( this. tcx( ) . sess, span, E0215 ,
706
706
"angle-bracket notation is not stable when \
707
707
used with the `Fn` family of traits, use parentheses") ;
708
- span_help ! ( this. tcx( ) . sess, span,
708
+ fileline_help ! ( this. tcx( ) . sess, span,
709
709
"add `#![feature(unboxed_closures)]` to \
710
710
the crate attributes to enable") ;
711
711
}
@@ -719,7 +719,7 @@ fn ast_path_to_trait_ref<'a,'tcx>(
719
719
span_err ! ( this. tcx( ) . sess, span, E0216 ,
720
720
"parenthetical notation is only stable when \
721
721
used with the `Fn` family of traits") ;
722
- span_help ! ( this. tcx( ) . sess, span,
722
+ fileline_help ! ( this. tcx( ) . sess, span,
723
723
"add `#![feature(unboxed_closures)]` to \
724
724
the crate attributes to enable") ;
725
725
}
@@ -944,14 +944,14 @@ fn ast_ty_to_trait_ref<'tcx>(this: &AstConv<'tcx>,
944
944
pprust:: ty_to_string( ty) ) ;
945
945
match ty. node {
946
946
ast:: TyRptr ( None , ref mut_ty) => {
947
- span_help ! ( this. tcx( ) . sess, ty. span,
947
+ fileline_help ! ( this. tcx( ) . sess, ty. span,
948
948
"perhaps you meant `&{}({} +{})`? (per RFC 438)" ,
949
949
ppaux:: mutability_to_string( mut_ty. mutbl) ,
950
950
pprust:: ty_to_string( & * mut_ty. ty) ,
951
951
pprust:: bounds_to_string( bounds) ) ;
952
952
}
953
953
ast:: TyRptr ( Some ( ref lt) , ref mut_ty) => {
954
- span_help ! ( this. tcx( ) . sess, ty. span,
954
+ fileline_help ! ( this. tcx( ) . sess, ty. span,
955
955
"perhaps you meant `&{} {}({} +{})`? (per RFC 438)" ,
956
956
pprust:: lifetime_to_string( lt) ,
957
957
ppaux:: mutability_to_string( mut_ty. mutbl) ,
@@ -960,7 +960,7 @@ fn ast_ty_to_trait_ref<'tcx>(this: &AstConv<'tcx>,
960
960
}
961
961
962
962
_ => {
963
- span_help ! ( this. tcx( ) . sess, ty. span,
963
+ fileline_help ! ( this. tcx( ) . sess, ty. span,
964
964
"perhaps you forgot parentheses? (per RFC 438)" ) ;
965
965
}
966
966
}
0 commit comments