@@ -17,7 +17,7 @@ use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
1717use rustc_middle:: ty:: TyCtxt ;
1818use rustc_middle:: util:: Providers ;
1919use rustc_session:: config:: { OutputFilenames , OutputType , PrintRequest } ;
20- use rustc_session:: { EarlyDiagCtxt , IncrCompSession , Session } ;
20+ use rustc_session:: { CodegenBackendInit , EarlyDiagCtxt , EarlySession , IncrCompSession , Session } ;
2121
2222pub trait CallbacksExt : Callbacks + Send + ' static {
2323 type ExtCtxt < ' tcx > : DynSend + DynSync ;
@@ -180,15 +180,15 @@ impl<C: CallbacksExt> CodegenBackend for BackendWrapper<C> {
180180 * ongoing_codegen. downcast ( ) . unwrap ( )
181181 }
182182
183- fn init ( & self , sess : & Session ) {
183+ fn init ( & mut self , sess : & EarlySession ) -> CodegenBackendInit {
184184 self . backend . init ( sess)
185185 }
186186
187187 fn print ( & self , req : & PrintRequest , out : & mut String , sess : & Session ) {
188188 self . backend . print ( req, out, sess)
189189 }
190190
191- fn target_config ( & self , sess : & Session ) -> TargetConfig {
191+ fn target_config ( & self , sess : & EarlySession ) -> TargetConfig {
192192 self . backend . target_config ( sess)
193193 }
194194
0 commit comments