about summary refs log tree commit diff
path: root/src/libsyntax/codemap.rs
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2018-07-10 21:06:26 +0200
committerljedrz <ljedrz@gmail.com>2018-07-10 21:06:26 +0200
commite28e4877a828d1f5bda49dbb5bae1b902596f8f6 (patch)
treea0b6146b70b44b7b46d563c3fc1634e84642f78b /src/libsyntax/codemap.rs
parent77117e383676176116851d7d3ec04b5e0cf0c456 (diff)
downloadrust-e28e4877a828d1f5bda49dbb5bae1b902596f8f6.tar.gz
rust-e28e4877a828d1f5bda49dbb5bae1b902596f8f6.zip
Deny bare trait objects in in src/libsyntax
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 ea6b39504e8..2e0eb5e9c04 100644
--- a/src/libsyntax/codemap.rs
+++ b/src/libsyntax/codemap.rs
@@ -131,7 +131,7 @@ pub(super) struct CodeMapFiles {
 
 pub struct CodeMap {
     pub(super) files: Lock<CodeMapFiles>,
-    file_loader: Box<FileLoader + Sync + Send>,
+    file_loader: Box<dyn 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,
@@ -162,7 +162,7 @@ impl CodeMap {
 
     }
 
-    pub fn with_file_loader(file_loader: Box<FileLoader + Sync + Send>,
+    pub fn with_file_loader(file_loader: Box<dyn FileLoader + Sync + Send>,
                             path_mapping: FilePathMapping)
                             -> CodeMap {
         CodeMap {