diff options
| author | flip1995 <hello@philkrones.com> | 2018-10-02 10:59:41 +0200 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-10-09 16:38:38 -0700 |
| commit | ac231d40a33f9b4ef0fb50b22a0a4686dc42ecfc (patch) | |
| tree | 24b078da7e4a1e64e93a5e1e951347c5285f0640 | |
| parent | a249981a4390130e45fc2d6b30e4f2f8b1c49803 (diff) | |
| download | rust-ac231d40a33f9b4ef0fb50b22a0a4686dc42ecfc.tar.gz rust-ac231d40a33f9b4ef0fb50b22a0a4686dc42ecfc.zip | |
Remove feature-gate code
| -rw-r--r-- | src/librustc/lint/levels.rs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/librustc/lint/levels.rs b/src/librustc/lint/levels.rs index 87d33e473e7..bcba5c97e33 100644 --- a/src/librustc/lint/levels.rs +++ b/src/librustc/lint/levels.rs @@ -22,7 +22,6 @@ use session::{config::nightly_options, Session}; use syntax::ast; use syntax::attr; use syntax::source_map::MultiSpan; -use syntax::feature_gate; use syntax::symbol::Symbol; use util::nodemap::FxHashMap; @@ -228,18 +227,7 @@ impl<'a> LintLevelsBuilder<'a> { } }; let tool_name = if let Some(lint_tool) = word.is_scoped() { - let gate_feature = !self.sess.features_untracked().tool_lints; - let known_tool = attr::is_known_lint_tool(lint_tool); - if gate_feature { - feature_gate::emit_feature_err( - &sess.parse_sess, - "tool_lints", - word.span, - feature_gate::GateIssue::Language, - &format!("scoped lint `{}` is experimental", word.ident), - ); - } - if !known_tool { + if !attr::is_known_lint_tool(lint_tool) { span_err!( sess, lint_tool.span, @@ -247,9 +235,6 @@ impl<'a> LintLevelsBuilder<'a> { "an unknown tool name found in scoped lint: `{}`", word.ident ); - } - - if gate_feature || !known_tool { continue; } |
