rustc: Add a convenience alias for dyn MetadataLoader + Sync
This commit is contained in:
parent
175d325ccb
commit
222503a354
5 changed files with 12 additions and 10 deletions
|
@ -56,7 +56,7 @@ use std::sync::Arc;
|
|||
use std::ffi::CStr;
|
||||
|
||||
use rustc::dep_graph::DepGraph;
|
||||
use rustc::middle::cstore::{EncodedMetadata, MetadataLoader};
|
||||
use rustc::middle::cstore::{EncodedMetadata, MetadataLoaderDyn};
|
||||
use rustc::session::Session;
|
||||
use rustc::session::config::{OutputFilenames, OutputType, PrintRequest, OptLevel};
|
||||
use rustc::ty::{self, TyCtxt};
|
||||
|
@ -260,7 +260,7 @@ impl CodegenBackend for LlvmCodegenBackend {
|
|||
target_features(sess)
|
||||
}
|
||||
|
||||
fn metadata_loader(&self) -> Box<dyn MetadataLoader + Sync> {
|
||||
fn metadata_loader(&self) -> Box<MetadataLoaderDyn> {
|
||||
box metadata::LlvmMetadataLoader
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue