Revert "mark applicability"

This reverts commit a880971128.
This commit is contained in:
csmoe 2018-05-13 22:56:37 +08:00
parent a880971128
commit c4e99dd85d
2 changed files with 2 additions and 5 deletions

View file

@ -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()
}

View file

@ -9,7 +9,6 @@
// except according to those terms.
// compile-pass
// run-rustfix
#![feature(box_syntax)]
#![feature(box_patterns)]