about summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
diff options
context:
space:
mode:
authorDonato Sciarra <sciarp@gmail.com>2018-08-18 12:14:09 +0200
committerDonato Sciarra <sciarp@gmail.com>2018-08-19 23:01:01 +0200
commitd3fe97f3d32b4cef1c22b6a5ba5326b1b195e262 (patch)
treeec538787f89f8b43016f8e799bfd7ff9762add48 /src/libsyntax/util/parser_testing.rs
parent82607d2cf3866c7cc31050548f2fbfa39207e319 (diff)
downloadrust-d3fe97f3d32b4cef1c22b6a5ba5326b1b195e262.tar.gz
rust-d3fe97f3d32b4cef1c22b6a5ba5326b1b195e262.zip
mv codemap() source_map()
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
-rw-r--r--src/libsyntax/util/parser_testing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs
index b43d22d8855..374154e6333 100644
--- a/src/libsyntax/util/parser_testing.rs
+++ b/src/libsyntax/util/parser_testing.rs
@@ -21,7 +21,7 @@ use std::path::PathBuf;
 /// Map a string to tts, using a made-up filename:
 pub fn string_to_stream(source_str: String) -> TokenStream {
     let ps = ParseSess::new(FilePathMapping::empty());
-    source_file_to_stream(&ps, ps.codemap()
+    source_file_to_stream(&ps, ps.source_map()
                              .new_source_file(PathBuf::from("bogofile").into(), source_str), None)
 }