Skip to content

Commit ac231d4

Browse files
flip1995Manishearth
authored andcommitted
Remove feature-gate code
1 parent a249981 commit ac231d4

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/librustc/lint/levels.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use session::{config::nightly_options, Session};
2222
use syntax::ast;
2323
use syntax::attr;
2424
use syntax::source_map::MultiSpan;
25-
use syntax::feature_gate;
2625
use syntax::symbol::Symbol;
2726
use util::nodemap::FxHashMap;
2827

@@ -228,28 +227,14 @@ impl<'a> LintLevelsBuilder<'a> {
228227
}
229228
};
230229
let tool_name = if let Some(lint_tool) = word.is_scoped() {
231-
let gate_feature = !self.sess.features_untracked().tool_lints;
232-
let known_tool = attr::is_known_lint_tool(lint_tool);
233-
if gate_feature {
234-
feature_gate::emit_feature_err(
235-
&sess.parse_sess,
236-
"tool_lints",
237-
word.span,
238-
feature_gate::GateIssue::Language,
239-
&format!("scoped lint `{}` is experimental", word.ident),
240-
);
241-
}
242-
if !known_tool {
230+
if !attr::is_known_lint_tool(lint_tool) {
243231
span_err!(
244232
sess,
245233
lint_tool.span,
246234
E0710,
247235
"an unknown tool name found in scoped lint: `{}`",
248236
word.ident
249237
);
250-
}
251-
252-
if gate_feature || !known_tool {
253238
continue;
254239
}
255240

0 commit comments

Comments
 (0)