about summary refs log tree commit diff
path: root/src/libsyntax/codemap.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-03-03 06:21:27 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-03-15 00:43:02 +0100
commit26fe97f1f90f71613b648e822e663ec52832c51e (patch)
tree5ec81f0855d6771d1da3309d97e753a7dc82ec3e /src/libsyntax/codemap.rs
parente96e54d3d4973b5ac847ad53aaa2598cfc58be64 (diff)
downloadrust-26fe97f1f90f71613b648e822e663ec52832c51e.tar.gz
rust-26fe97f1f90f71613b648e822e663ec52832c51e.zip
Require a thread-safe file loader
Diffstat (limited to 'src/libsyntax/codemap.rs')
-rw-r--r--src/libsyntax/codemap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs
index c340f1b8c8a..6a5a180fc0a 100644
--- a/src/libsyntax/codemap.rs
+++ b/src/libsyntax/codemap.rs
@@ -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 {