@@ -20,7 +20,7 @@ use std::os::raw::{c_char, c_int};
20
20
use std:: sync:: mpsc;
21
21
22
22
use rustc:: dep_graph:: DepGraph ;
23
- use rustc:: middle:: cstore:: MetadataLoader ;
23
+ use rustc:: middle:: cstore:: { EncodedMetadata , MetadataLoader } ;
24
24
use rustc:: mir:: mono:: { Linkage as RLinkage , Visibility } ;
25
25
use rustc:: session:: config:: { DebugInfo , OutputFilenames , OutputType } ;
26
26
use rustc:: ty:: query:: Providers ;
@@ -192,6 +192,8 @@ impl CodegenBackend for CraneliftCodegenBackend {
192
192
fn codegen_crate < ' a , ' tcx > (
193
193
& self ,
194
194
tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
195
+ metadata : EncodedMetadata ,
196
+ _need_metadata_module : bool ,
195
197
_rx : mpsc:: Receiver < Box < dyn Any + Send > > ,
196
198
) -> Box < dyn Any > {
197
199
env_logger:: init ( ) ;
@@ -204,8 +206,6 @@ impl CodegenBackend for CraneliftCodegenBackend {
204
206
205
207
tcx. sess . abort_if_errors ( ) ;
206
208
207
- let metadata = tcx. encode_metadata ( ) ;
208
-
209
209
let mut log = if cfg ! ( debug_assertions) {
210
210
Some ( File :: create ( concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/target/out/log.txt" ) ) . unwrap ( ) )
211
211
} else {
0 commit comments