diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-10-10 16:18:36 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-10-10 16:18:36 +0200 |
| commit | 69f26b776124d3ed9ea87fec1703e42100f3434c (patch) | |
| tree | 570dbf219768f98b450cacfe441dc92920e56c59 /compiler/rustc_codegen_ssa/src | |
| parent | f141acf0678139ac31375d02feebcc2be220715b (diff) | |
| download | rust-69f26b776124d3ed9ea87fec1703e42100f3434c.tar.gz rust-69f26b776124d3ed9ea87fec1703e42100f3434c.zip | |
Use fixed type for CodegenResults
This also moves the -Zno-link implementation to rustc_interface
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/backend.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/backend.rs b/compiler/rustc_codegen_ssa/src/traits/backend.rs index 4a88f747a17..c6fbca39ee4 100644 --- a/compiler/rustc_codegen_ssa/src/traits/backend.rs +++ b/compiler/rustc_codegen_ssa/src/traits/backend.rs @@ -1,6 +1,6 @@ use super::write::WriteBackendMethods; use super::CodegenObject; -use crate::ModuleCodegen; +use crate::{CodegenResults, ModuleCodegen}; use rustc_ast::expand::allocator::AllocatorKind; use rustc_data_structures::fx::FxHashMap; @@ -81,7 +81,7 @@ pub trait CodegenBackend { &self, ongoing_codegen: Box<dyn Any>, sess: &Session, - ) -> Result<(Box<dyn Any>, FxHashMap<WorkProductId, WorkProduct>), ErrorReported>; + ) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorReported>; /// This is called on the returned `Box<dyn Any>` from `join_codegen` /// @@ -91,7 +91,7 @@ pub trait CodegenBackend { fn link( &self, sess: &Session, - codegen_results: Box<dyn Any>, + codegen_results: CodegenResults, outputs: &OutputFilenames, ) -> Result<(), ErrorReported>; } |
