@@ -20,7 +20,6 @@ use rustc::session::config::{self, Input, OutputFilenames, OutputType};
20
20
use rustc:: session:: search_paths:: PathKind ;
21
21
use rustc:: lint;
22
22
use rustc:: middle:: { self , reachable, resolve_lifetime, stability} ;
23
- use rustc:: middle:: cstore:: CrateStoreDyn ;
24
23
use rustc:: middle:: privacy:: AccessLevels ;
25
24
use rustc:: ty:: { self , AllArenas , Resolutions , TyCtxt } ;
26
25
use rustc:: traits;
@@ -484,7 +483,7 @@ impl<'a> ::CompilerCalls<'a> for CompileController<'a> {
484
483
codegen_backend : & dyn ( :: CodegenBackend ) ,
485
484
matches : & :: getopts:: Matches ,
486
485
sess : & Session ,
487
- cstore : & dyn ( :: CrateStore ) ,
486
+ cstore : & CStore ,
488
487
input : & Input ,
489
488
odir : & Option < PathBuf > ,
490
489
ofile : & Option < PathBuf > ,
@@ -728,9 +727,9 @@ pub struct ExpansionResult {
728
727
pub hir_forest : hir_map:: Forest ,
729
728
}
730
729
731
- pub struct InnerExpansionResult < ' a > {
730
+ pub struct InnerExpansionResult < ' a , ' b : ' a > {
732
731
pub expanded_crate : ast:: Crate ,
733
- pub resolver : Resolver < ' a > ,
732
+ pub resolver : Resolver < ' a , ' b > ,
734
733
pub hir_forest : hir_map:: Forest ,
735
734
}
736
735
@@ -806,7 +805,7 @@ where
806
805
807
806
/// Same as phase_2_configure_and_expand, but doesn't let you keep the resolver
808
807
/// around
809
- pub fn phase_2_configure_and_expand_inner < ' a , F > (
808
+ pub fn phase_2_configure_and_expand_inner < ' a , ' b : ' a , F > (
810
809
sess : & ' a Session ,
811
810
cstore : & ' a CStore ,
812
811
mut krate : ast:: Crate ,
@@ -815,9 +814,9 @@ pub fn phase_2_configure_and_expand_inner<'a, F>(
815
814
addl_plugins : Option < Vec < String > > ,
816
815
make_glob_map : MakeGlobMap ,
817
816
resolver_arenas : & ' a ResolverArenas < ' a > ,
818
- crate_loader : & ' a mut CrateLoader ,
817
+ crate_loader : & ' a mut CrateLoader < ' b > ,
819
818
after_expand : F ,
820
- ) -> Result < InnerExpansionResult < ' a > , CompileIncomplete >
819
+ ) -> Result < InnerExpansionResult < ' a , ' b > , CompileIncomplete >
821
820
where
822
821
F : FnOnce ( & ast:: Crate ) -> CompileResult ,
823
822
{
@@ -1209,7 +1208,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(
1209
1208
codegen_backend : & dyn CodegenBackend ,
1210
1209
control : & CompileController ,
1211
1210
sess : & ' tcx Session ,
1212
- cstore : & ' tcx CrateStoreDyn ,
1211
+ cstore : & ' tcx CStore ,
1213
1212
hir_map : hir_map:: Map < ' tcx > ,
1214
1213
mut analysis : ty:: CrateAnalysis ,
1215
1214
resolutions : Resolutions ,
0 commit comments