diff options
| author | bors <bors@rust-lang.org> | 2016-12-07 23:06:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-12-07 23:06:10 +0000 |
| commit | 7b06438d8349c1a6bbeb29c2a1bd874553a8625c (patch) | |
| tree | 054b593a28773c1e2836fa954029d441b4b6b0e0 /src/libsyntax/parse | |
| parent | 535b6d397f735ff72064462be38f733d2637cd6f (diff) | |
| parent | 0f7a18b85d89737a3aab62982ac754ec25ada503 (diff) | |
| download | rust-7b06438d8349c1a6bbeb29c2a1bd874553a8625c.tar.gz rust-7b06438d8349c1a6bbeb29c2a1bd874553a8625c.zip | |
Auto merge of #38191 - oli-obk:clippy_is_sad, r=eddyb
annotate stricter lifetimes on LateLintPass methods to allow them to forward to a Visitor this unblocks clippy (rustup blocked after #37918) clippy has lots of lints that internally call an `intravisit::Visitor`, but the current lifetimes on `LateLintPass` methods conflicted with the required lifetimes (there was no connection between the HIR elements and the `TyCtxt`) r? @Manishearth
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index bfaf00a3d3f..e5b66f88958 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -940,8 +940,8 @@ mod tests { struct PatIdentVisitor { spans: Vec<Span> } - impl ::visit::Visitor for PatIdentVisitor { - fn visit_pat(&mut self, p: &ast::Pat) { + impl<'a> ::visit::Visitor<'a> for PatIdentVisitor { + fn visit_pat(&mut self, p: &'a ast::Pat) { match p.node { PatKind::Ident(_ , ref spannedident, _) => { self.spans.push(spannedident.span.clone()); |
