Merge pull request #3011 from scottmcm/fix-for-impl_header_lifetime_elision

Fix the build after rust PR 53016
This commit is contained in:
Oliver Schneider 2018-08-07 13:09:23 +02:00 committed by GitHub
commit a4b08fcda0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@ impl EarlyLintPass for Pass {
}
}
fn check_tts(cx: &EarlyContext<'a>, tts: &ThinTokenStream, is_write: bool) -> Option<String> {
fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &ThinTokenStream, is_write: bool) -> Option<String> {
let tts = TokenStream::from(tts.clone());
let mut parser = parser::Parser::new(
&cx.sess.parse_sess,