@@ -212,18 +212,18 @@ pub fn opt_ast_region_to_region<'tcx>(
212212 }
213213 }
214214 if len == 1 {
215- span_help ! ( this. tcx( ) . sess, default_span,
215+ fileline_help ! ( this. tcx( ) . sess, default_span,
216216 "this function's return type contains a borrowed value, but \
217217 the signature does not say which {} it is borrowed from",
218218 m) ;
219219 } else if len == 0 {
220- span_help ! ( this. tcx( ) . sess, default_span,
220+ fileline_help ! ( this. tcx( ) . sess, default_span,
221221 "this function's return type contains a borrowed value, but \
222222 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,
224224 "consider giving it a 'static lifetime" ) ;
225225 } else {
226- span_help ! ( this. tcx( ) . sess, default_span,
226+ fileline_help ! ( this. tcx( ) . sess, default_span,
227227 "this function's return type contains a borrowed value, but \
228228 the signature does not say whether it is borrowed from {}",
229229 m) ;
@@ -705,7 +705,7 @@ fn ast_path_to_trait_ref<'a,'tcx>(
705705 span_err ! ( this. tcx( ) . sess, span, E0215 ,
706706 "angle-bracket notation is not stable when \
707707 used with the `Fn` family of traits, use parentheses") ;
708- span_help ! ( this. tcx( ) . sess, span,
708+ fileline_help ! ( this. tcx( ) . sess, span,
709709 "add `#![feature(unboxed_closures)]` to \
710710 the crate attributes to enable") ;
711711 }
@@ -719,7 +719,7 @@ fn ast_path_to_trait_ref<'a,'tcx>(
719719 span_err ! ( this. tcx( ) . sess, span, E0216 ,
720720 "parenthetical notation is only stable when \
721721 used with the `Fn` family of traits") ;
722- span_help ! ( this. tcx( ) . sess, span,
722+ fileline_help ! ( this. tcx( ) . sess, span,
723723 "add `#![feature(unboxed_closures)]` to \
724724 the crate attributes to enable") ;
725725 }
@@ -944,14 +944,14 @@ fn ast_ty_to_trait_ref<'tcx>(this: &AstConv<'tcx>,
944944 pprust:: ty_to_string( ty) ) ;
945945 match ty. node {
946946 ast:: TyRptr ( None , ref mut_ty) => {
947- span_help ! ( this. tcx( ) . sess, ty. span,
947+ fileline_help ! ( this. tcx( ) . sess, ty. span,
948948 "perhaps you meant `&{}({} +{})`? (per RFC 438)" ,
949949 ppaux:: mutability_to_string( mut_ty. mutbl) ,
950950 pprust:: ty_to_string( & * mut_ty. ty) ,
951951 pprust:: bounds_to_string( bounds) ) ;
952952 }
953953 ast:: TyRptr ( Some ( ref lt) , ref mut_ty) => {
954- span_help ! ( this. tcx( ) . sess, ty. span,
954+ fileline_help ! ( this. tcx( ) . sess, ty. span,
955955 "perhaps you meant `&{} {}({} +{})`? (per RFC 438)" ,
956956 pprust:: lifetime_to_string( lt) ,
957957 ppaux:: mutability_to_string( mut_ty. mutbl) ,
@@ -960,7 +960,7 @@ fn ast_ty_to_trait_ref<'tcx>(this: &AstConv<'tcx>,
960960 }
961961
962962 _ => {
963- span_help ! ( this. tcx( ) . sess, ty. span,
963+ fileline_help ! ( this. tcx( ) . sess, ty. span,
964964 "perhaps you forgot parentheses? (per RFC 438)" ) ;
965965 }
966966 }
0 commit comments