Skip to content

Commit 38940cc

Browse files
committed
Updated rustc version
1 parent 5489c41 commit 38940cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ impl CodegenBackend for MyBackend {
195195
use std::io::Write;
196196
let mut packed_metadata = rustc_metadata::METADATA_HEADER.to_vec();
197197
packed_metadata
198-
.write_all(&(metadata.raw_data().len() as u64).to_le_bytes())
198+
.write_all(&(metadata.full().len() as u64).to_le_bytes())
199199
.unwrap();
200-
packed_metadata.extend(metadata.raw_data());
200+
packed_metadata.extend(metadata.full());
201201
asm.add_section(".rustc", packed_metadata);
202202
}
203203
let _ = cilly::utilis::get_environ(&mut asm);
@@ -286,13 +286,15 @@ impl CodegenBackend for MyBackend {
286286
dwarf_object: None,
287287
llvm_ir: None,
288288
assembly: None,
289+
links_from_incr_cache: Vec::new(),
289290
}];
290291
let codegen_results = CodegenResults {
291292
modules,
292293
allocator_module: None,
293294
metadata_module: None,
294295
metadata,
295296
crate_info,
297+
296298
};
297299
(codegen_results, FxIndexMap::default())
298300
}))

0 commit comments

Comments
 (0)