diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-01-29 21:18:17 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-02-24 14:14:16 +0200 |
| commit | a817c69297dc2bfac4029410cc055d32022cea95 (patch) | |
| tree | 9c08f77d91b37ee797fc7f4931fb1e1d5e028053 /src/libsyntax/visit.rs | |
| parent | 27747ac1a76f054275c75a5b3f867d09cd27c888 (diff) | |
| download | rust-a817c69297dc2bfac4029410cc055d32022cea95.tar.gz rust-a817c69297dc2bfac4029410cc055d32022cea95.zip | |
syntax: don't store a secondary NodeId for TyPath.
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 412bf0fa22a..4586495227d 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -399,8 +399,8 @@ pub fn walk_ty<'v, V: Visitor<'v>>(visitor: &mut V, typ: &'v Ty) { walk_fn_ret_ty(visitor, &function_declaration.decl.output); walk_lifetime_decls_helper(visitor, &function_declaration.lifetimes); } - TyPath(ref path, id) => { - visitor.visit_path(path, id); + TyPath(ref path) => { + visitor.visit_path(path, typ.id); } TyObjectSum(ref ty, ref bounds) => { visitor.visit_ty(&**ty); |
