about summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2016-02-11 23:33:09 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2016-02-11 23:33:09 +0300
commit77cc5764b9d8b53e01788886d3b3882dffc0001e (patch)
treeabbe5a51d013a64fb25383641311689011b7d03f /src/libsyntax/util/parser_testing.rs
parentaa1dc0975a43e224386ec0ed1bb7ae09cfd0dd7e (diff)
downloadrust-77cc5764b9d8b53e01788886d3b3882dffc0001e.tar.gz
rust-77cc5764b9d8b53e01788886d3b3882dffc0001e.zip
Remove some unnecessary indirection from AST structures
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()