diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-05-29 17:37:38 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-04 13:20:05 +0200 |
| commit | e30490d5b2e03e8e324c336dc2daf3c5fc1cbf59 (patch) | |
| tree | 8bc29bbed22f3d4b56136b73fb09dddab8222243 /compiler/rustc_codegen_cranelift/src | |
| parent | 96247017fad9b216259cfa64a7762a816854dcd7 (diff) | |
| download | rust-e30490d5b2e03e8e324c336dc2daf3c5fc1cbf59.tar.gz rust-e30490d5b2e03e8e324c336dc2daf3c5fc1cbf59.zip | |
Move crate_name field from OngoingCodegen to CrateInfo
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/driver/aot.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/lib.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/aot.rs b/compiler/rustc_codegen_cranelift/src/driver/aot.rs index 2270b18163b..6676d88602c 100644 --- a/compiler/rustc_codegen_cranelift/src/driver/aot.rs +++ b/compiler/rustc_codegen_cranelift/src/driver/aot.rs @@ -292,7 +292,6 @@ pub(crate) fn run_aot( Box::new(( CodegenResults { - crate_name: tcx.crate_name(LOCAL_CRATE), modules, allocator_module, metadata_module, diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs index fa776bf9921..904efed5bd9 100644 --- a/compiler/rustc_codegen_cranelift/src/lib.rs +++ b/compiler/rustc_codegen_cranelift/src/lib.rs @@ -218,7 +218,7 @@ impl CodegenBackend for CraneliftCodegenBackend { sess, &codegen_results, outputs, - &codegen_results.crate_name.as_str(), + &codegen_results.crate_info.local_crate_name.as_str(), ); Ok(()) |
