diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-08-05 22:59:24 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-08-07 07:23:59 -0400 |
| commit | fcab98038c3b466d9ecd00b0f27e9c748e7acbde (patch) | |
| tree | 345deba110cec778935c4d2fa1b7f9150c90f7c3 /src/libsyntax/visit.rs | |
| parent | 1a53c001170f8084ce850498d5e8f22b5e7da72c (diff) | |
| download | rust-fcab98038c3b466d9ecd00b0f27e9c748e7acbde.tar.gz rust-fcab98038c3b466d9ecd00b0f27e9c748e7acbde.zip | |
Temporary bootstrapping hack: introduce syntax for r egion bounds like `'b:'a`,
meaning `'b outlives 'a`. Syntax currently does nothing but is needed for full fix to #5763. To use this syntax, the issue_5763_bootstrap feature guard is required.
Diffstat (limited to 'src/libsyntax/visit.rs')
| -rw-r--r-- | src/libsyntax/visit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index 733c4bfc2b0..647e81db1f1 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -122,7 +122,7 @@ pub trait Visitor<E: Clone> { fn visit_lifetime_ref(&mut self, _lifetime: &Lifetime, _e: E) { /*! Visits a reference to a lifetime */ } - fn visit_lifetime_decl(&mut self, _lifetime: &Lifetime, _e: E) { + fn visit_lifetime_decl(&mut self, _lifetime: &LifetimeDef, _e: E) { /*! Visits a declaration of a lifetime */ } fn visit_explicit_self(&mut self, es: &ExplicitSelf, e: E) { @@ -424,7 +424,7 @@ pub fn walk_ty<E: Clone, V: Visitor<E>>(visitor: &mut V, typ: &Ty, env: E) { } fn walk_lifetime_decls<E: Clone, V: Visitor<E>>(visitor: &mut V, - lifetimes: &Vec<Lifetime>, + lifetimes: &Vec<LifetimeDef>, env: E) { for l in lifetimes.iter() { visitor.visit_lifetime_decl(l, env.clone()); |
