11use std:: cmp;
22
33use crate :: ich:: StableHashingContext ;
4- use crate :: lint:: context:: { CheckLintNameResult , LintStore } ;
4+ use crate :: lint:: context:: CheckLintNameResult ;
55use rustc_data_structures:: fx:: FxHashMap ;
66use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
77use rustc_errors:: { struct_span_err, Applicability , DiagnosticBuilder , DiagnosticId } ;
88use rustc_hir:: HirId ;
9- use rustc_session:: lint:: { builtin, Level , Lint , LintId } ;
9+ pub use rustc_session:: lint:: { builtin, Level , Lint , LintId , LintPass } ;
1010use rustc_session:: { DiagnosticMessageId , Session } ;
1111use rustc_span:: hygiene:: MacroKind ;
1212use rustc_span:: source_map:: { DesugaringKind , ExpnKind , MultiSpan } ;
@@ -19,6 +19,14 @@ use syntax::sess::feature_err;
1919
2020use rustc_error_codes:: * ;
2121
22+ mod context;
23+ pub mod internal;
24+ mod passes;
25+
26+ pub use context:: add_elided_lifetime_in_path_suggestion;
27+ pub use context:: { EarlyContext , LateContext , LintContext , LintStore } ;
28+ pub use passes:: { EarlyLintPass , EarlyLintPassObject , LateLintPass , LateLintPassObject } ;
29+
2230/// How a lint level was set.
2331#[ derive( Clone , Copy , PartialEq , Eq , HashStable ) ]
2432pub enum LintSource {
0 commit comments