correct literals for dyn thread safe
This commit is contained in:
parent
9f8ab2a8d3
commit
089a38880b
11 changed files with 48 additions and 41 deletions
|
@ -14,7 +14,9 @@ pub use crate::*;
|
|||
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::stable_hasher::{Hash128, Hash64, StableHasher};
|
||||
use rustc_data_structures::sync::{AtomicU32, IntoDyn, Lrc, MappedReadGuard, ReadGuard, RwLock};
|
||||
use rustc_data_structures::sync::{
|
||||
AtomicU32, IntoDynSyncSend, Lrc, MappedReadGuard, ReadGuard, RwLock,
|
||||
};
|
||||
use std::cmp;
|
||||
use std::hash::Hash;
|
||||
use std::path::{self, Path, PathBuf};
|
||||
|
@ -176,7 +178,7 @@ pub struct SourceMap {
|
|||
used_address_space: AtomicU32,
|
||||
|
||||
files: RwLock<SourceMapFiles>,
|
||||
file_loader: IntoDyn<Box<dyn FileLoader + Sync + Send>>,
|
||||
file_loader: IntoDynSyncSend<Box<dyn FileLoader + Sync + Send>>,
|
||||
// This is used to apply the file path remapping as specified via
|
||||
// `--remap-path-prefix` to all `SourceFile`s allocated within this `SourceMap`.
|
||||
path_mapping: FilePathMapping,
|
||||
|
@ -202,7 +204,7 @@ impl SourceMap {
|
|||
SourceMap {
|
||||
used_address_space: AtomicU32::new(0),
|
||||
files: Default::default(),
|
||||
file_loader: IntoDyn(file_loader),
|
||||
file_loader: IntoDynSyncSend(file_loader),
|
||||
path_mapping,
|
||||
hash_kind,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue