@@ -12,6 +12,8 @@ use syntax::ast;
12
12
use syntax:: edition:: Edition ;
13
13
use syntax:: source_map:: Span ;
14
14
use syntax:: symbol:: Symbol ;
15
+ use syntax:: early_buffered_lints:: { ILL_FORMED_ATTRIBUTE_INPUT , META_VARIABLE_MISUSE } ;
16
+ use rustc_session:: declare_lint;
15
17
16
18
declare_lint ! {
17
19
pub EXCEEDING_BITSHIFTS ,
@@ -404,31 +406,6 @@ declare_lint! {
404
406
} ;
405
407
}
406
408
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
-
432
409
declare_lint ! {
433
410
pub DEPRECATED_IN_FUTURE ,
434
411
Allow ,
@@ -520,8 +497,8 @@ declare_lint_pass! {
520
497
PROC_MACRO_DERIVE_RESOLUTION_FALLBACK ,
521
498
MACRO_USE_EXTERN_CRATE ,
522
499
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 ,
525
502
DEPRECATED_IN_FUTURE ,
526
503
AMBIGUOUS_ASSOCIATED_ITEMS ,
527
504
MUTABLE_BORROW_RESERVATION_CONFLICT ,
0 commit comments