diff options
| author | Corey Farwell <coreyf@rwell.org> | 2016-02-17 20:20:41 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2016-02-18 08:37:10 -0500 |
| commit | 5850d16d52957095c06a78f101c3508f2f4b9d9d (patch) | |
| tree | 261ad88837d0e7cc565b47c3ccf1f652215e27df /src/libsyntax/ext | |
| parent | 4d3eebff9dc9474f56cdba810edde324130fbc61 (diff) | |
| download | rust-5850d16d52957095c06a78f101c3508f2f4b9d9d.tar.gz rust-5850d16d52957095c06a78f101c3508f2f4b9d9d.zip | |
Remove unnecessary explicit lifetime bounds.
These explicit lifetimes can be ommitted because of lifetime elision rules. Instances were found using rust-clippy.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/transcribe.rs | 22 |
1 files changed, 11 insertions, 11 deletions
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<HashMap<Name, Rc<NamedMatch>>>, - imported_from: Option<Ident>, - src: Vec<ast::TokenTree>) - -> TtReader<'a> { +pub fn new_tt_reader(sp_diag: &Handler, + interp: Option<HashMap<Name, Rc<NamedMatch>>>, + imported_from: Option<Ident>, + src: Vec<ast::TokenTree>) + -> 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<HashMap<Name, Rc<NamedMatch>>>, - imported_from: Option<Ident>, - src: Vec<ast::TokenTree>, - desugar_doc_comments: bool) - -> TtReader<'a> { +pub fn new_tt_reader_with_doc_flag(sp_diag: &Handler, + interp: Option<HashMap<Name, Rc<NamedMatch>>>, + imported_from: Option<Ident>, + src: Vec<ast::TokenTree>, + desugar_doc_comments: bool) + -> TtReader { let mut r = TtReader { sp_diag: sp_diag, stack: vec!(TtFrame { |
