diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-12-06 11:26:52 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-12-06 11:28:51 +0100 |
| commit | 5e51edb0de138d3805db5ca16160c829d3d32291 (patch) | |
| tree | 5d5856c15639b0ef301d90ed00782f2b8720f685 /src/libsyntax/ext | |
| parent | f7c93c07b8533e1d38395cc2d9d37cd2d9bec978 (diff) | |
| download | rust-5e51edb0de138d3805db5ca16160c829d3d32291.tar.gz rust-5e51edb0de138d3805db5ca16160c829d3d32291.zip | |
annotate stricter lifetimes on LateLintPass methods to allow them to forward to a Visitor
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 4138acafac6..e3979926680 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -85,7 +85,7 @@ macro_rules! expansions { } } - pub fn visit_with<V: Visitor>(&self, visitor: &mut V) { + pub fn visit_with<'a, V: Visitor<'a>>(&'a self, visitor: &mut V) { match *self { Expansion::OptExpr(Some(ref expr)) => visitor.visit_expr(expr), Expansion::OptExpr(None) => {} |
