File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ fn get_trans_sysroot(backend_name: &str) -> fn() -> Box<TransCrate> {
444
444
// The FileLoader provides a way to load files from sources other than the file system.
445
445
pub fn run_compiler < ' a > ( args : & [ String ] ,
446
446
callbacks : & mut CompilerCalls < ' a > ,
447
- file_loader : Option < Box < FileLoader + ' static > > ,
447
+ file_loader : Option < Box < FileLoader + Send + Sync + ' static > > ,
448
448
emitter_dest : Option < Box < Write + Send > > )
449
449
-> ( CompileResult , Option < Session > )
450
450
{
@@ -455,7 +455,7 @@ pub fn run_compiler<'a>(args: &[String],
455
455
456
456
fn run_compiler_impl < ' a > ( args : & [ String ] ,
457
457
callbacks : & mut CompilerCalls < ' a > ,
458
- file_loader : Option < Box < FileLoader + ' static > > ,
458
+ file_loader : Option < Box < FileLoader + Send + Sync + ' static > > ,
459
459
emitter_dest : Option < Box < Write + Send > > )
460
460
-> ( CompileResult , Option < Session > )
461
461
{
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ impl StableFilemapId {
127
127
128
128
pub struct CodeMap {
129
129
pub ( super ) files : RefCell < Vec < Lrc < FileMap > > > ,
130
- file_loader : Box < FileLoader > ,
130
+ file_loader : Box < FileLoader + Sync + Send > ,
131
131
// This is used to apply the file path remapping as specified via
132
132
// --remap-path-prefix to all FileMaps allocated within this CodeMap.
133
133
path_mapping : FilePathMapping ,
@@ -157,7 +157,7 @@ impl CodeMap {
157
157
158
158
}
159
159
160
- pub fn with_file_loader ( file_loader : Box < FileLoader > ,
160
+ pub fn with_file_loader ( file_loader : Box < FileLoader + Sync + Send > ,
161
161
path_mapping : FilePathMapping )
162
162
-> CodeMap {
163
163
CodeMap {
You can’t perform that action at this time.
0 commit comments