@@ -20,7 +20,7 @@ use std::os::raw::{c_char, c_int};
2020use std:: sync:: mpsc;
2121
2222use rustc:: dep_graph:: DepGraph ;
23- use rustc:: middle:: cstore:: MetadataLoader ;
23+ use rustc:: middle:: cstore:: { EncodedMetadata , MetadataLoader } ;
2424use rustc:: mir:: mono:: { Linkage as RLinkage , Visibility } ;
2525use rustc:: session:: config:: { DebugInfo , OutputFilenames , OutputType } ;
2626use rustc:: ty:: query:: Providers ;
@@ -192,6 +192,8 @@ impl CodegenBackend for CraneliftCodegenBackend {
192192 fn codegen_crate < ' a , ' tcx > (
193193 & self ,
194194 tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
195+ metadata : EncodedMetadata ,
196+ _need_metadata_module : bool ,
195197 _rx : mpsc:: Receiver < Box < dyn Any + Send > > ,
196198 ) -> Box < dyn Any > {
197199 env_logger:: init ( ) ;
@@ -204,8 +206,6 @@ impl CodegenBackend for CraneliftCodegenBackend {
204206
205207 tcx. sess . abort_if_errors ( ) ;
206208
207- let metadata = tcx. encode_metadata ( ) ;
208-
209209 let mut log = if cfg ! ( debug_assertions) {
210210 Some ( File :: create ( concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/target/out/log.txt" ) ) . unwrap ( ) )
211211 } else {
0 commit comments