Skip to content

Commit dbdeafb

Browse files
committed
Move crate_name field from OngoingCodegen to CrateInfo
1 parent 646c604 commit dbdeafb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/driver/aot.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ pub(crate) fn run_aot(
292292

293293
Box::new((
294294
CodegenResults {
295-
crate_name: tcx.crate_name(LOCAL_CRATE),
296295
modules,
297296
allocator_module,
298297
metadata_module,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
218218
sess,
219219
&codegen_results,
220220
outputs,
221-
&codegen_results.crate_name.as_str(),
221+
&codegen_results.crate_info.local_crate_name.as_str(),
222222
);
223223

224224
Ok(())

0 commit comments

Comments
 (0)