@@ -258,7 +258,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
258258 format ! ( "{}_{}" ,
259259 snippet,
260260 concrete_type) ,
261- Applicability :: Unspecified ,
261+ Applicability :: MaybeIncorrect ,
262262 ) ;
263263 }
264264 hir:: ExprKind :: Path ( ref qpath) => { // local binding
@@ -290,7 +290,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
290290 . unwrap_or ( span) ) ,
291291 & msg,
292292 format ! ( "{}: {}" , snippet, concrete_type) ,
293- Applicability :: Unspecified ,
293+ Applicability :: MaybeIncorrect ,
294294 ) ;
295295 }
296296 _ => {
@@ -519,8 +519,12 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
519519 format ! ( "use {};\n {}" , self . tcx. item_path_str( * did) , additional_newline)
520520 } ) . collect ( ) ;
521521
522- err. span_suggestions_with_applicability ( span, & msg, path_strings,
523- Applicability :: Unspecified ) ;
522+ err. span_suggestions_with_applicability (
523+ span,
524+ & msg,
525+ path_strings,
526+ Applicability :: MaybeIncorrect ,
527+ ) ;
524528 } else {
525529 let limit = if candidates. len ( ) == 5 { 5 } else { 4 } ;
526530 for ( i, trait_did) in candidates. iter ( ) . take ( limit) . enumerate ( ) {
0 commit comments