1
1
use std:: cmp;
2
2
3
3
use crate :: ich:: StableHashingContext ;
4
- use crate :: lint:: context:: { CheckLintNameResult , LintStore } ;
4
+ use crate :: lint:: context:: CheckLintNameResult ;
5
5
use rustc_data_structures:: fx:: FxHashMap ;
6
6
use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
7
7
use rustc_errors:: { struct_span_err, Applicability , DiagnosticBuilder , DiagnosticId } ;
8
8
use rustc_hir:: HirId ;
9
- use rustc_session:: lint:: { builtin, Level , Lint , LintId } ;
9
+ pub use rustc_session:: lint:: { builtin, Level , Lint , LintId , LintPass } ;
10
10
use rustc_session:: { DiagnosticMessageId , Session } ;
11
11
use rustc_span:: hygiene:: MacroKind ;
12
12
use rustc_span:: source_map:: { DesugaringKind , ExpnKind , MultiSpan } ;
@@ -19,6 +19,14 @@ use syntax::sess::feature_err;
19
19
20
20
use rustc_error_codes:: * ;
21
21
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
+
22
30
/// How a lint level was set.
23
31
#[ derive( Clone , Copy , PartialEq , Eq , HashStable ) ]
24
32
pub enum LintSource {
0 commit comments