Skip to content

Commit c4e99dd

Browse files
committed
Revert "mark applicability"
This reverts commit a880971.
1 parent a880971 commit c4e99dd

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/librustc/middle/liveness.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ use self::LoopKind::*;
106106
use self::LiveNodeKind::*;
107107
use self::VarKind::*;
108108

109-
use errors::Applicability;
110109
use hir::def::*;
111110
use ty::{self, TyCtxt};
112111
use lint;
@@ -1559,9 +1558,8 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
15591558
err.span_suggestion(sp, "try ignoring the field",
15601559
format!("{}: _", name));
15611560
} else {
1562-
err.span_suggestion_with_applicability(
1563-
sp, &suggest_underscore_msg,
1564-
format!("_{}", name), Applicability::MachineApplicable);
1561+
err.span_suggestion_short(sp, &suggest_underscore_msg,
1562+
format!("_{}", name));
15651563
}
15661564
err.emit()
15671565
}

src/test/ui/lint/issue-47390-unused-variable-in-struct-pattern.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
// compile-pass
12-
// run-rustfix
1312

1413
#![feature(box_syntax)]
1514
#![feature(box_patterns)]

0 commit comments

Comments
 (0)