@@ -20,7 +20,6 @@ use rustc::session::config::{self, Input, OutputFilenames, OutputType};
2020use rustc:: session:: search_paths:: PathKind ;
2121use rustc:: lint;
2222use rustc:: middle:: { self , reachable, resolve_lifetime, stability} ;
23- use rustc:: middle:: cstore:: CrateStoreDyn ;
2423use rustc:: middle:: privacy:: AccessLevels ;
2524use rustc:: ty:: { self , AllArenas , Resolutions , TyCtxt } ;
2625use rustc:: traits;
@@ -475,7 +474,7 @@ impl<'a> ::CompilerCalls<'a> for CompileController<'a> {
475474 codegen_backend : & dyn ( :: CodegenBackend ) ,
476475 matches : & :: getopts:: Matches ,
477476 sess : & Session ,
478- cstore : & dyn ( :: CrateStore ) ,
477+ cstore : & CStore ,
479478 input : & Input ,
480479 odir : & Option < PathBuf > ,
481480 ofile : & Option < PathBuf > ,
@@ -717,9 +716,9 @@ pub struct ExpansionResult {
717716 pub hir_forest : hir_map:: Forest ,
718717}
719718
720- pub struct InnerExpansionResult < ' a > {
719+ pub struct InnerExpansionResult < ' a , ' b : ' a > {
721720 pub expanded_crate : ast:: Crate ,
722- pub resolver : Resolver < ' a > ,
721+ pub resolver : Resolver < ' a , ' b > ,
723722 pub hir_forest : hir_map:: Forest ,
724723}
725724
@@ -795,7 +794,7 @@ where
795794
796795/// Same as phase_2_configure_and_expand, but doesn't let you keep the resolver
797796/// around
798- pub fn phase_2_configure_and_expand_inner < ' a , F > (
797+ pub fn phase_2_configure_and_expand_inner < ' a , ' b : ' a , F > (
799798 sess : & ' a Session ,
800799 cstore : & ' a CStore ,
801800 mut krate : ast:: Crate ,
@@ -804,9 +803,9 @@ pub fn phase_2_configure_and_expand_inner<'a, F>(
804803 addl_plugins : Option < Vec < String > > ,
805804 make_glob_map : MakeGlobMap ,
806805 resolver_arenas : & ' a ResolverArenas < ' a > ,
807- crate_loader : & ' a mut CrateLoader ,
806+ crate_loader : & ' a mut CrateLoader < ' b > ,
808807 after_expand : F ,
809- ) -> Result < InnerExpansionResult < ' a > , CompileIncomplete >
808+ ) -> Result < InnerExpansionResult < ' a , ' b > , CompileIncomplete >
810809where
811810 F : FnOnce ( & ast:: Crate ) -> CompileResult ,
812811{
@@ -1196,7 +1195,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(
11961195 codegen_backend : & dyn CodegenBackend ,
11971196 control : & CompileController ,
11981197 sess : & ' tcx Session ,
1199- cstore : & ' tcx CrateStoreDyn ,
1198+ cstore : & ' tcx CStore ,
12001199 hir_map : hir_map:: Map < ' tcx > ,
12011200 mut analysis : ty:: CrateAnalysis ,
12021201 resolutions : Resolutions ,
0 commit comments