about summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
diff options
context:
space:
mode:
authorJeremy Stucki <jeremy@myelin.ch>2019-06-21 17:46:41 +0200
committerJeremy Stucki <stucki.jeremy@gmail.com>2019-07-03 10:00:23 +0200
commit87e8613fd41e7a4237a146cbe49835bb88295df6 (patch)
tree830a58d6762de2f51b9bb81ec8375b4c1419cd7c /src/libsyntax/util/parser_testing.rs
parent8301de16dafc81a3b5d94aa0707ad83bdb56a599 (diff)
downloadrust-87e8613fd41e7a4237a146cbe49835bb88295df6.tar.gz
rust-87e8613fd41e7a4237a146cbe49835bb88295df6.zip
Remove needless lifetimes
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 733c4f83e37..f037a09e9b4 100644
--- a/src/libsyntax/util/parser_testing.rs
+++ b/src/libsyntax/util/parser_testing.rs
@@ -20,7 +20,7 @@ pub fn string_to_stream(source_str: String) -> TokenStream {
 }
 
 /// Map string to parser (via tts)
-pub fn string_to_parser<'a>(ps: &'a ParseSess, source_str: String) -> Parser<'a> {
+pub fn string_to_parser(ps: &ParseSess, source_str: String) -> Parser {
     new_parser_from_source_str(ps, PathBuf::from("bogofile").into(), source_str)
 }