diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-06-01 18:41:46 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-06-09 20:19:07 -0700 |
| commit | f02b6f3a8bf82ca11ba50a285841fb372c4da459 (patch) | |
| tree | 4f0ae29d0f388e4570a20d22c2f6619eee464738 /src/libsyntax/visit.rs | |
| parent | 907d96187641d8a018af2b73239723c66b011f71 (diff) | |
| download | rust-f02b6f3a8bf82ca11ba50a285841fb372c4da459.tar.gz rust-f02b6f3a8bf82ca11ba50a285841fb372c4da459.zip | |
librustc: Implement sugar for the `FnMut` trait
Diffstat (limited to 'src/libsyntax/visit.rs')
| -rw-r--r-- | src/libsyntax/visit.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index 906f0c16f39..b5ae8a3dea0 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -383,6 +383,12 @@ pub fn walk_ty<E: Clone, V: Visitor<E>>(visitor: &mut V, typ: &Ty, env: E) { walk_lifetime_decls(visitor, &function_declaration.lifetimes, env.clone()); } + TyUnboxedFn(ref function_declaration) => { + for argument in function_declaration.decl.inputs.iter() { + visitor.visit_ty(argument.ty, env.clone()) + } + visitor.visit_ty(function_declaration.decl.output, env.clone()); + } TyPath(ref path, ref bounds, id) => { visitor.visit_path(path, id, env.clone()); for bounds in bounds.iter() { @@ -501,6 +507,13 @@ pub fn walk_ty_param_bounds<E: Clone, V: Visitor<E>>(visitor: &mut V, walk_trait_ref_helper(visitor, typ, env.clone()) } StaticRegionTyParamBound => {} + UnboxedFnTyParamBound(ref function_declaration) => { + for argument in function_declaration.decl.inputs.iter() { + visitor.visit_ty(argument.ty, env.clone()) + } + visitor.visit_ty(function_declaration.decl.output, + env.clone()); + } OtherRegionTyParamBound(..) => {} } } |
