about summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-10-27 06:36:56 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-10-29 07:52:58 +0000
commitcbd24757eb4daf95ebfb0c361216dbaeef5af830 (patch)
tree79a2c34d91e49143e5c6c76cb8e9c1547fe22824 /src/libsyntax/util
parent17e9d9ae82149202908b5674966df86c0a1a5799 (diff)
downloadrust-cbd24757eb4daf95ebfb0c361216dbaeef5af830.tar.gz
rust-cbd24757eb4daf95ebfb0c361216dbaeef5af830.zip
Move `CrateConfig` from `Crate` to `ParseSess`.
Diffstat (limited to 'src/libsyntax/util')
-rw-r--r--src/libsyntax/util/parser_testing.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs
index f59428bf536..76d3f2a063c 100644
--- a/src/libsyntax/util/parser_testing.rs
+++ b/src/libsyntax/util/parser_testing.rs
@@ -25,10 +25,7 @@ pub fn string_to_tts(source_str: String) -> Vec<tokenstream::TokenTree> {
 
 /// Map string to parser (via tts)
 pub fn string_to_parser<'a>(ps: &'a ParseSess, source_str: String) -> Parser<'a> {
-    new_parser_from_source_str(ps,
-                               Vec::new(),
-                               "bogofile".to_string(),
-                               source_str)
+    new_parser_from_source_str(ps, "bogofile".to_string(), source_str)
 }
 
 fn with_error_checking_parse<'a, T, F>(s: String, ps: &'a ParseSess, f: F) -> T where