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> {
444444// The FileLoader provides a way to load files from sources other than the file system.
445445pub fn run_compiler < ' a > ( args : & [ String ] ,
446446 callbacks : & mut CompilerCalls < ' a > ,
447- file_loader : Option < Box < FileLoader + ' static > > ,
447+ file_loader : Option < Box < FileLoader + Send + Sync + ' static > > ,
448448 emitter_dest : Option < Box < Write + Send > > )
449449 -> ( CompileResult , Option < Session > )
450450{
@@ -455,7 +455,7 @@ pub fn run_compiler<'a>(args: &[String],
455455
456456fn run_compiler_impl < ' a > ( args : & [ String ] ,
457457 callbacks : & mut CompilerCalls < ' a > ,
458- file_loader : Option < Box < FileLoader + ' static > > ,
458+ file_loader : Option < Box < FileLoader + Send + Sync + ' static > > ,
459459 emitter_dest : Option < Box < Write + Send > > )
460460 -> ( CompileResult , Option < Session > )
461461{
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ impl StableFilemapId {
127127
128128pub struct CodeMap {
129129 pub ( super ) files : RefCell < Vec < Lrc < FileMap > > > ,
130- file_loader : Box < FileLoader > ,
130+ file_loader : Box < FileLoader + Sync + Send > ,
131131 // This is used to apply the file path remapping as specified via
132132 // --remap-path-prefix to all FileMaps allocated within this CodeMap.
133133 path_mapping : FilePathMapping ,
@@ -157,7 +157,7 @@ impl CodeMap {
157157
158158 }
159159
160- pub fn with_file_loader ( file_loader : Box < FileLoader > ,
160+ pub fn with_file_loader ( file_loader : Box < FileLoader + Sync + Send > ,
161161 path_mapping : FilePathMapping )
162162 -> CodeMap {
163163 CodeMap {
You can’t perform that action at this time.
0 commit comments