From 5850d16d52957095c06a78f101c3508f2f4b9d9d Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Wed, 17 Feb 2016 20:20:41 -0500 Subject: Remove unnecessary explicit lifetime bounds. These explicit lifetimes can be ommitted because of lifetime elision rules. Instances were found using rust-clippy. --- src/libsyntax/ext/tt/transcribe.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index 8d857fc8e48..ae99fe81739 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.rs @@ -55,11 +55,11 @@ pub struct TtReader<'a> { /// This can do Macro-By-Example transcription. On the other hand, if /// `src` contains no `TokenTree::Sequence`s, `MatchNt`s or `SubstNt`s, `interp` can /// (and should) be None. -pub fn new_tt_reader<'a>(sp_diag: &'a Handler, - interp: Option>>, - imported_from: Option, - src: Vec) - -> TtReader<'a> { +pub fn new_tt_reader(sp_diag: &Handler, + interp: Option>>, + imported_from: Option, + src: Vec) + -> TtReader { new_tt_reader_with_doc_flag(sp_diag, interp, imported_from, src, false) } @@ -69,12 +69,12 @@ pub fn new_tt_reader<'a>(sp_diag: &'a Handler, /// This can do Macro-By-Example transcription. On the other hand, if /// `src` contains no `TokenTree::Sequence`s, `MatchNt`s or `SubstNt`s, `interp` can /// (and should) be None. -pub fn new_tt_reader_with_doc_flag<'a>(sp_diag: &'a Handler, - interp: Option>>, - imported_from: Option, - src: Vec, - desugar_doc_comments: bool) - -> TtReader<'a> { +pub fn new_tt_reader_with_doc_flag(sp_diag: &Handler, + interp: Option>>, + imported_from: Option, + src: Vec, + desugar_doc_comments: bool) + -> TtReader { let mut r = TtReader { sp_diag: sp_diag, stack: vec!(TtFrame { -- cgit 1.4.1-3-g733a5