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-23 22:32:23 +0200
committerJeremy Stucki <stucki.jeremy@gmail.com>2019-07-03 10:01:03 +0200
commitb17cec509e21c6c99d1b3abe765f5c6cfe4b4e72 (patch)
treeaa9f46886899113639f42e0719c53fd98f5942a6 /src/libsyntax/util/parser_testing.rs
parent80f4c49c1b4c7e02fd1ea61e9c09a97fec362d7e (diff)
downloadrust-b17cec509e21c6c99d1b3abe765f5c6cfe4b4e72.tar.gz
rust-b17cec509e21c6c99d1b3abe765f5c6cfe4b4e72.zip
Add missing lifetime specifier
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 f037a09e9b4..f850960624c 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(ps: &ParseSess, source_str: String) -> Parser {
+pub fn string_to_parser(ps: &ParseSess, source_str: String) -> Parser<'_> {
     new_parser_from_source_str(ps, PathBuf::from("bogofile").into(), source_str)
 }