Skip to content

Commit ffe1527

Browse files
flip1995Manishearth
authored andcommittedOct 9, 2018
Remove nightly check for tool_lints warning
1 parent 6328850 commit ffe1527

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed
 

‎src/librustc/lint/levels.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use lint::context::CheckLintNameResult;
1818
use lint::{self, Lint, LintId, Level, LintSource};
1919
use rustc_data_structures::stable_hasher::{HashStable, ToStableHashKey,
2020
StableHasher, StableHasherResult};
21-
use session::{config::nightly_options, Session};
21+
use session::Session;
2222
use syntax::ast;
2323
use syntax::attr;
2424
use syntax::source_map::MultiSpan;
@@ -284,13 +284,7 @@ impl<'a> LintLevelsBuilder<'a> {
284284
"change it to",
285285
new_lint_name.to_string(),
286286
Applicability::MachineApplicable,
287-
);
288-
289-
if nightly_options::is_nightly_build() {
290-
err.emit();
291-
} else {
292-
err.cancel();
293-
}
287+
).emit();
294288

295289
let src = LintSource::Node(Symbol::intern(&new_lint_name), li.span);
296290
for id in ids {

0 commit comments

Comments
 (0)
Please sign in to comment.