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-02-12 14:56:20 +0000
committerbors <bors@rust-lang.org>2016-02-12 14:56:20 +0000
commitc7640aa2aaad857bbc9f9a1002f8e1aaf520752e (patch)
tree057b1cbdee3abfa8a925cf655376f7abeaba6b07 /src/libsyntax/util/parser_testing.rs
parent9257e8956edf003ee73b4d5ba4dc46c4d07a7e72 (diff)
parent77cc5764b9d8b53e01788886d3b3882dffc0001e (diff)
downloadrust-c7640aa2aaad857bbc9f9a1002f8e1aaf520752e.tar.gz
rust-c7640aa2aaad857bbc9f9a1002f8e1aaf520752e.zip
Auto merge of #31583 - petrochenkov:indi_ast, r=Manishearth
cc #31487
plugin-[breaking-change]

The AST part of https://github.com/rust-lang/rust/pull/30087

r? @Manishearth
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 454b925a494..b0f4c2dcba5 100644
--- a/src/libsyntax/util/parser_testing.rs
+++ b/src/libsyntax/util/parser_testing.rs
@@ -64,7 +64,7 @@ pub fn string_to_item (source_str : String) -> Option<P<ast::Item>> {
 }
 
 /// Parse a string, return a stmt
-pub fn string_to_stmt(source_str : String) -> Option<P<ast::Stmt>> {
+pub fn string_to_stmt(source_str : String) -> Option<ast::Stmt> {
     let ps = ParseSess::new();
     with_error_checking_parse(source_str, &ps, |p| {
         p.parse_stmt()