Remove MetadataRef
type alias
This commit is contained in:
parent
086c08d86a
commit
e39d61cbf3
5 changed files with 12 additions and 18 deletions
|
@ -220,7 +220,6 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
|||
use rustc_data_structures::memmap::Mmap;
|
||||
use rustc_data_structures::owned_slice::slice_owned;
|
||||
use rustc_data_structures::svh::Svh;
|
||||
use rustc_data_structures::sync::MetadataRef;
|
||||
use rustc_errors::{DiagnosticArgValue, FatalError, IntoDiagnosticArg};
|
||||
use rustc_fs_util::try_canonicalize;
|
||||
use rustc_session::config::{self, CrateType};
|
||||
|
@ -782,7 +781,7 @@ fn get_metadata_section<'p>(
|
|||
if !filename.exists() {
|
||||
return Err(MetadataError::NotPresent(filename));
|
||||
}
|
||||
let raw_bytes: MetadataRef = match flavor {
|
||||
let raw_bytes = match flavor {
|
||||
CrateFlavor::Rlib => {
|
||||
loader.get_rlib_metadata(target, filename).map_err(MetadataError::LoadFailure)?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue