about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorInokentiy Babushkin <twk@twki.de>2017-06-11 10:19:46 +0200
committerInokentiy Babushkin <twk@twki.de>2017-06-11 11:47:00 +0200
commitc04aa4ed0ce61d257ab10b4dbdaa64fa5cad37b1 (patch)
treef354bf43f9c4a8fd86cdbe29e9b847f22424a768 /src/libsyntax
parentc2c31b2db33e0d0b5356a0c9e032269034cdc70a (diff)
downloadrust-c04aa4ed0ce61d257ab10b4dbdaa64fa5cad37b1.tar.gz
rust-c04aa4ed0ce61d257ab10b4dbdaa64fa5cad37b1.zip
Improved lazy external source loading and inserted calls.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/codemap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs
index 9779a678845..fb78b18b898 100644
--- a/src/libsyntax/codemap.rs
+++ b/src/libsyntax/codemap.rs
@@ -559,7 +559,7 @@ impl CodeMapper for CodeMap {
         }
         sp
     }
-    fn load_source_for_filemap(&mut self, filename: FileName) -> bool {
+    fn load_source_for_filemap(&self, filename: FileName) -> bool {
         let file_map = if let Some(fm) = self.get_filemap(&filename) {
             fm
         } else {