about summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-30 06:51:30 -0700
committerGitHub <noreply@github.com>2016-10-30 06:51:30 -0700
commit6062e7ed3d81cb3bd535993e9b14269924b76c29 (patch)
tree9f4e4f85f826d75fd1295dc010622e8af5bc6ef8 /src/libsyntax/util/parser_testing.rs
parentaef5ca5590a23799396aa656bd303731c9d96531 (diff)
parentcbd24757eb4daf95ebfb0c361216dbaeef5af830 (diff)
downloadrust-6062e7ed3d81cb3bd535993e9b14269924b76c29.tar.gz
rust-6062e7ed3d81cb3bd535993e9b14269924b76c29.zip
Auto merge of #37431 - jseyfried:refactor_crate_config, r=eddyb
Move `CrateConfig` from `Crate` to `ParseSess`

This is a syntax-[breaking-change]. Most breakage can be fixed by removing a `CrateConfig` argument.
r? @eddyb
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
-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