@@ -12,6 +12,8 @@ use syntax::ast;
1212use syntax:: edition:: Edition ;
1313use syntax:: source_map:: Span ;
1414use syntax:: symbol:: Symbol ;
15+ use syntax:: early_buffered_lints:: { ILL_FORMED_ATTRIBUTE_INPUT , META_VARIABLE_MISUSE } ;
16+ use rustc_session:: declare_lint;
1517
1618declare_lint ! {
1719 pub EXCEEDING_BITSHIFTS ,
@@ -404,31 +406,6 @@ declare_lint! {
404406 } ;
405407}
406408
407- /// Some lints that are buffered from `libsyntax`. See `syntax::early_buffered_lints`.
408- pub mod parser {
409- declare_lint ! {
410- pub ILL_FORMED_ATTRIBUTE_INPUT ,
411- Deny ,
412- "ill-formed attribute inputs that were previously accepted and used in practice" ,
413- @future_incompatible = super :: FutureIncompatibleInfo {
414- reference: "issue #57571 <https://github.com/rust-lang/rust/issues/57571>" ,
415- edition: None ,
416- } ;
417- }
418-
419- declare_lint ! {
420- pub META_VARIABLE_MISUSE ,
421- Allow ,
422- "possible meta-variable misuse at macro definition"
423- }
424-
425- declare_lint ! {
426- pub INCOMPLETE_INCLUDE ,
427- Deny ,
428- "trailing content in included file"
429- }
430- }
431-
432409declare_lint ! {
433410 pub DEPRECATED_IN_FUTURE ,
434411 Allow ,
@@ -520,8 +497,8 @@ declare_lint_pass! {
520497 PROC_MACRO_DERIVE_RESOLUTION_FALLBACK ,
521498 MACRO_USE_EXTERN_CRATE ,
522499 MACRO_EXPANDED_MACRO_EXPORTS_ACCESSED_BY_ABSOLUTE_PATHS ,
523- parser :: ILL_FORMED_ATTRIBUTE_INPUT ,
524- parser :: META_VARIABLE_MISUSE ,
500+ ILL_FORMED_ATTRIBUTE_INPUT ,
501+ META_VARIABLE_MISUSE ,
525502 DEPRECATED_IN_FUTURE ,
526503 AMBIGUOUS_ASSOCIATED_ITEMS ,
527504 MUTABLE_BORROW_RESERVATION_CONFLICT ,
0 commit comments