diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-13 10:48:09 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-01-14 18:14:16 -0800 |
| commit | bea67bde21d36df40c55b02cd8d8b28c0ec864b6 (patch) | |
| tree | 4970407fc9c5b4662e315e9fe66281cfa6a93c44 /src/libsyntax/fold.rs | |
| parent | 1be4bfb8ccfd6a91fe63cc2808f3c5e9177d52dd (diff) | |
| download | rust-bea67bde21d36df40c55b02cd8d8b28c0ec864b6.tar.gz rust-bea67bde21d36df40c55b02cd8d8b28c0ec864b6.zip | |
Change ast::path into a struct.
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index bca2336bc8c..0cd4dc7d0ad 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -614,10 +614,11 @@ fn noop_fold_ident(&&i: ident, _fld: ast_fold) -> ident { } fn noop_fold_path(&&p: path, fld: ast_fold) -> path { - return {span: fld.new_span(p.span), global: p.global, - idents: vec::map(p.idents, |x| fld.fold_ident(*x)), - rp: p.rp, - types: vec::map(p.types, |x| fld.fold_ty(*x))}; + ast::path { span: fld.new_span(p.span), + global: p.global, + idents: p.idents.map(|x| fld.fold_ident(*x)), + rp: p.rp, + types: p.types.map(|x| fld.fold_ty(*x)) } } fn noop_fold_local(l: local_, fld: ast_fold) -> local_ { |
