about summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-10-28 11:54:31 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-10-28 14:38:00 -0700
commitadb96ec64b8d5e8cff191315668a5bfe0480909c (patch)
tree6da20949ab36d3cb203c1533d1ccf89da2776ebd /src/libsyntax/util/parser_testing.rs
parentd491734b15692038b963fd1bfeaaf39be393b638 (diff)
downloadrust-adb96ec64b8d5e8cff191315668a5bfe0480909c.tar.gz
rust-adb96ec64b8d5e8cff191315668a5bfe0480909c.zip
Provide specific label for patern parsing error
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 374154e6333..98e9272e6d8 100644
--- a/src/libsyntax/util/parser_testing.rs
+++ b/src/libsyntax/util/parser_testing.rs
@@ -68,7 +68,7 @@ pub fn string_to_item (source_str : String) -> Option<P<ast::Item>> {
 pub fn string_to_pat(source_str: String) -> P<ast::Pat> {
     let ps = ParseSess::new(FilePathMapping::empty());
     with_error_checking_parse(source_str, &ps, |p| {
-        p.parse_pat()
+        p.parse_pat(None)
     })
 }