@@ -27,6 +27,7 @@ use rustc_errors::PResult;
27
27
use rustc_expand:: base:: ExtCtxt ;
28
28
use rustc_hir:: def_id:: { CrateNum , LOCAL_CRATE } ;
29
29
use rustc_incremental;
30
+ use rustc_lint:: LintStore ;
30
31
use rustc_mir as mir;
31
32
use rustc_parse:: { parse_crate_from_file, parse_crate_from_source_str} ;
32
33
use rustc_passes:: { self , hir_stats, layout_test} ;
@@ -100,7 +101,7 @@ declare_box_region_type!(
100
101
/// Returns `None` if we're aborting after handling -W help.
101
102
pub fn configure_and_expand (
102
103
sess : Lrc < Session > ,
103
- lint_store : Lrc < lint :: LintStore > ,
104
+ lint_store : Lrc < LintStore > ,
104
105
metadata_loader : Box < MetadataLoaderDyn > ,
105
106
krate : ast:: Crate ,
106
107
crate_name : & str ,
@@ -150,10 +151,10 @@ impl BoxedResolver {
150
151
pub fn register_plugins < ' a > (
151
152
sess : & ' a Session ,
152
153
metadata_loader : & ' a dyn MetadataLoader ,
153
- register_lints : impl Fn ( & Session , & mut lint :: LintStore ) ,
154
+ register_lints : impl Fn ( & Session , & mut LintStore ) ,
154
155
mut krate : ast:: Crate ,
155
156
crate_name : & str ,
156
- ) -> Result < ( ast:: Crate , Lrc < lint :: LintStore > ) > {
157
+ ) -> Result < ( ast:: Crate , Lrc < LintStore > ) > {
157
158
krate = sess. time ( "attributes_injection" , || {
158
159
rustc_builtin_macros:: cmdline_attrs:: inject (
159
160
krate,
@@ -214,7 +215,7 @@ pub fn register_plugins<'a>(
214
215
215
216
fn configure_and_expand_inner < ' a > (
216
217
sess : & ' a Session ,
217
- lint_store : & ' a lint :: LintStore ,
218
+ lint_store : & ' a LintStore ,
218
219
mut krate : ast:: Crate ,
219
220
crate_name : & str ,
220
221
resolver_arenas : & ' a ResolverArenas < ' a > ,
@@ -420,7 +421,7 @@ fn configure_and_expand_inner<'a>(
420
421
421
422
pub fn lower_to_hir < ' res , ' tcx > (
422
423
sess : & ' tcx Session ,
423
- lint_store : & lint :: LintStore ,
424
+ lint_store : & LintStore ,
424
425
resolver : & ' res mut Resolver < ' _ > ,
425
426
dep_graph : & ' res DepGraph ,
426
427
krate : & ' res ast:: Crate ,
@@ -705,7 +706,7 @@ impl<'tcx> QueryContext<'tcx> {
705
706
706
707
pub fn create_global_ctxt < ' tcx > (
707
708
compiler : & ' tcx Compiler ,
708
- lint_store : Lrc < lint :: LintStore > ,
709
+ lint_store : Lrc < LintStore > ,
709
710
hir_forest : & ' tcx map:: Forest < ' tcx > ,
710
711
mut resolver_outputs : ResolverOutputs ,
711
712
outputs : OutputFilenames ,
0 commit comments