Require a thread-safe file loader
This commit is contained in:
@@ -127,7 +127,7 @@ impl StableFilemapId {
|
||||
|
||||
pub struct CodeMap {
|
||||
pub(super) files: RefCell<Vec<Lrc<FileMap>>>,
|
||||
file_loader: Box<FileLoader>,
|
||||
file_loader: Box<FileLoader + Sync + Send>,
|
||||
// This is used to apply the file path remapping as specified via
|
||||
// --remap-path-prefix to all FileMaps allocated within this CodeMap.
|
||||
path_mapping: FilePathMapping,
|
||||
@@ -157,7 +157,7 @@ impl CodeMap {
|
||||
|
||||
}
|
||||
|
||||
pub fn with_file_loader(file_loader: Box<FileLoader>,
|
||||
pub fn with_file_loader(file_loader: Box<FileLoader + Sync + Send>,
|
||||
path_mapping: FilePathMapping)
|
||||
-> CodeMap {
|
||||
CodeMap {
|
||||
|
||||
Reference in New Issue
Block a user