4
4
//! compiler code, rather than using their own custom pass. Those
5
5
//! lints are all available in `rustc_lint::builtin`.
6
6
7
- use crate :: lint:: { FutureIncompatibleInfo , LateLintPass , LintArray , LintPass } ;
7
+ use crate :: lint:: FutureIncompatibleInfo ;
8
8
use crate :: middle:: stability;
9
9
use crate :: session:: Session ;
10
10
use errors:: { pluralize, Applicability , DiagnosticBuilder } ;
@@ -13,7 +13,6 @@ use rustc_span::edition::Edition;
13
13
use rustc_span:: source_map:: Span ;
14
14
use rustc_span:: symbol:: Symbol ;
15
15
use syntax:: ast;
16
- use syntax:: early_buffered_lints:: { ILL_FORMED_ATTRIBUTE_INPUT , META_VARIABLE_MISUSE } ;
17
16
18
17
declare_lint ! {
19
18
pub EXCEEDING_BITSHIFTS ,
@@ -443,70 +442,6 @@ declare_lint! {
443
442
} ;
444
443
}
445
444
446
- declare_lint_pass ! {
447
- /// Does nothing as a lint pass, but registers some `Lint`s
448
- /// that are used by other parts of the compiler.
449
- HardwiredLints => [
450
- ILLEGAL_FLOATING_POINT_LITERAL_PATTERN ,
451
- EXCEEDING_BITSHIFTS ,
452
- UNUSED_IMPORTS ,
453
- UNUSED_EXTERN_CRATES ,
454
- UNUSED_QUALIFICATIONS ,
455
- UNKNOWN_LINTS ,
456
- UNUSED_VARIABLES ,
457
- UNUSED_ASSIGNMENTS ,
458
- DEAD_CODE ,
459
- UNREACHABLE_CODE ,
460
- UNREACHABLE_PATTERNS ,
461
- OVERLAPPING_PATTERNS ,
462
- UNUSED_MACROS ,
463
- WARNINGS ,
464
- UNUSED_FEATURES ,
465
- STABLE_FEATURES ,
466
- UNKNOWN_CRATE_TYPES ,
467
- TRIVIAL_CASTS ,
468
- TRIVIAL_NUMERIC_CASTS ,
469
- PRIVATE_IN_PUBLIC ,
470
- EXPORTED_PRIVATE_DEPENDENCIES ,
471
- PUB_USE_OF_PRIVATE_EXTERN_CRATE ,
472
- INVALID_TYPE_PARAM_DEFAULT ,
473
- CONST_ERR ,
474
- RENAMED_AND_REMOVED_LINTS ,
475
- SAFE_PACKED_BORROWS ,
476
- PATTERNS_IN_FNS_WITHOUT_BODY ,
477
- MISSING_FRAGMENT_SPECIFIER ,
478
- LATE_BOUND_LIFETIME_ARGUMENTS ,
479
- ORDER_DEPENDENT_TRAIT_OBJECTS ,
480
- DEPRECATED ,
481
- UNUSED_UNSAFE ,
482
- UNUSED_MUT ,
483
- UNCONDITIONAL_RECURSION ,
484
- SINGLE_USE_LIFETIMES ,
485
- UNUSED_LIFETIMES ,
486
- UNUSED_LABELS ,
487
- TYVAR_BEHIND_RAW_POINTER ,
488
- ELIDED_LIFETIMES_IN_PATHS ,
489
- BARE_TRAIT_OBJECTS ,
490
- ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE ,
491
- UNSTABLE_NAME_COLLISIONS ,
492
- IRREFUTABLE_LET_PATTERNS ,
493
- INTRA_DOC_LINK_RESOLUTION_FAILURE ,
494
- MISSING_DOC_CODE_EXAMPLES ,
495
- PRIVATE_DOC_TESTS ,
496
- WHERE_CLAUSES_OBJECT_SAFETY ,
497
- PROC_MACRO_DERIVE_RESOLUTION_FALLBACK ,
498
- MACRO_USE_EXTERN_CRATE ,
499
- MACRO_EXPANDED_MACRO_EXPORTS_ACCESSED_BY_ABSOLUTE_PATHS ,
500
- ILL_FORMED_ATTRIBUTE_INPUT ,
501
- META_VARIABLE_MISUSE ,
502
- DEPRECATED_IN_FUTURE ,
503
- AMBIGUOUS_ASSOCIATED_ITEMS ,
504
- MUTABLE_BORROW_RESERVATION_CONFLICT ,
505
- INDIRECT_STRUCTURAL_MATCH ,
506
- SOFT_UNSTABLE ,
507
- ]
508
- }
509
-
510
445
// this could be a closure, but then implementing derive traits
511
446
// becomes hacky (and it gets allocated)
512
447
#[ derive( PartialEq , RustcEncodable , RustcDecodable , Debug ) ]
@@ -646,5 +581,3 @@ impl BuiltinLintDiagnostics {
646
581
}
647
582
}
648
583
}
649
-
650
- impl < ' a , ' tcx > LateLintPass < ' a , ' tcx > for HardwiredLints { }
0 commit comments