@@ -258,7 +258,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
258
258
format ! ( "{}_{}" ,
259
259
snippet,
260
260
concrete_type) ,
261
- Applicability :: Unspecified ,
261
+ Applicability :: MaybeIncorrect ,
262
262
) ;
263
263
}
264
264
hir:: ExprKind :: Path ( ref qpath) => { // local binding
@@ -290,7 +290,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
290
290
. unwrap_or ( span) ) ,
291
291
& msg,
292
292
format ! ( "{}: {}" , snippet, concrete_type) ,
293
- Applicability :: Unspecified ,
293
+ Applicability :: MaybeIncorrect ,
294
294
) ;
295
295
}
296
296
_ => {
@@ -519,8 +519,12 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
519
519
format ! ( "use {};\n {}" , self . tcx. item_path_str( * did) , additional_newline)
520
520
} ) . collect ( ) ;
521
521
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
+ ) ;
524
528
} else {
525
529
let limit = if candidates. len ( ) == 5 { 5 } else { 4 } ;
526
530
for ( i, trait_did) in candidates. iter ( ) . take ( limit) . enumerate ( ) {
0 commit comments