File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ use session::{config::nightly_options, Session};
2222use syntax:: ast;
2323use syntax:: attr;
2424use syntax:: source_map:: MultiSpan ;
25- use syntax:: feature_gate;
2625use syntax:: symbol:: Symbol ;
2726use 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
You can’t perform that action at this time.
0 commit comments