parent
a880971128
commit
c4e99dd85d
2 changed files with 2 additions and 5 deletions
|
|
@ -106,7 +106,6 @@ use self::LoopKind::*;
|
|||
use self::LiveNodeKind::*;
|
||||
use self::VarKind::*;
|
||||
|
||||
use errors::Applicability;
|
||||
use hir::def::*;
|
||||
use ty::{self, TyCtxt};
|
||||
use lint;
|
||||
|
|
@ -1559,9 +1558,8 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
|
|||
err.span_suggestion(sp, "try ignoring the field",
|
||||
format!("{}: _", name));
|
||||
} else {
|
||||
err.span_suggestion_with_applicability(
|
||||
sp, &suggest_underscore_msg,
|
||||
format!("_{}", name), Applicability::MachineApplicable);
|
||||
err.span_suggestion_short(sp, &suggest_underscore_msg,
|
||||
format!("_{}", name));
|
||||
}
|
||||
err.emit()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
// compile-pass
|
||||
// run-rustfix
|
||||
|
||||
#![feature(box_syntax)]
|
||||
#![feature(box_patterns)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue