diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-05-29 15:00:18 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-04 13:20:04 +0200 |
| commit | f04a2d308e62c5ad0ab34b2e5fbcc0dfa32656fc (patch) | |
| tree | 2e910104a2f23b04325b03d1ab88f6c27cc5ad24 /compiler/rustc_codegen_cranelift | |
| parent | 45c9775361ed7500e945c6b7a30520066bf2811a (diff) | |
| download | rust-f04a2d308e62c5ad0ab34b2e5fbcc0dfa32656fc.tar.gz rust-f04a2d308e62c5ad0ab34b2e5fbcc0dfa32656fc.zip | |
Provide default MetadataLoader
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs index fbef575ba88..de2afc49384 100644 --- a/compiler/rustc_codegen_cranelift/src/lib.rs +++ b/compiler/rustc_codegen_cranelift/src/lib.rs @@ -28,7 +28,7 @@ use rustc_codegen_ssa::traits::CodegenBackend; use rustc_codegen_ssa::CodegenResults; use rustc_errors::ErrorReported; use rustc_middle::dep_graph::{WorkProduct, WorkProductId}; -use rustc_middle::middle::cstore::{EncodedMetadata, MetadataLoader}; +use rustc_middle::middle::cstore::EncodedMetadata; use rustc_session::config::OutputFilenames; use rustc_session::Session; @@ -163,10 +163,6 @@ impl CodegenBackend for CraneliftCodegenBackend { } } - fn metadata_loader(&self) -> Box<dyn MetadataLoader + Sync> { - Box::new(rustc_codegen_ssa::back::metadata::DefaultMetadataLoader) - } - fn target_features(&self, _sess: &Session) -> Vec<rustc_span::Symbol> { vec![] } |
