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};
22
22
use syntax:: ast;
23
23
use syntax:: attr;
24
24
use syntax:: source_map:: MultiSpan ;
25
- use syntax:: feature_gate;
26
25
use syntax:: symbol:: Symbol ;
27
26
use util:: nodemap:: FxHashMap ;
28
27
@@ -228,28 +227,14 @@ impl<'a> LintLevelsBuilder<'a> {
228
227
}
229
228
} ;
230
229
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) {
243
231
span_err ! (
244
232
sess,
245
233
lint_tool. span,
246
234
E0710 ,
247
235
"an unknown tool name found in scoped lint: `{}`" ,
248
236
word. ident
249
237
) ;
250
- }
251
-
252
- if gate_feature || !known_tool {
253
238
continue ;
254
239
}
255
240
You can’t perform that action at this time.
0 commit comments