diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-17 22:20:36 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-25 07:49:34 -0800 |
| commit | f14409c528125836a5cbe9d4d7a39b8d6695f7b1 (patch) | |
| tree | 7953b69703588cb654de1445d9f2cfad377dc23c /src/librustpkg | |
| parent | 9ac5262bdf27c964d1e9496479994aff2ae80acc (diff) | |
| download | rust-f14409c528125836a5cbe9d4d7a39b8d6695f7b1.tar.gz rust-f14409c528125836a5cbe9d4d7a39b8d6695f7b1.zip | |
libsyntax: progress on making syntax::visit vecs_implicitly_copyable-free
Diffstat (limited to 'src/librustpkg')
| -rw-r--r-- | src/librustpkg/util.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs index 64a6d9c5055..fdabe86359a 100644 --- a/src/librustpkg/util.rs +++ b/src/librustpkg/util.rs @@ -76,7 +76,7 @@ struct ReadyCtx { fns: ~[ListenerFn] } -fn fold_mod(_ctx: @mut ReadyCtx, m: ast::_mod, +fn fold_mod(_ctx: @mut ReadyCtx, m: &ast::_mod, fold: fold::ast_fold) -> ast::_mod { fn strip_main(item: @ast::item) -> @ast::item { @ast::item { @@ -87,11 +87,11 @@ fn fold_mod(_ctx: @mut ReadyCtx, m: ast::_mod, } } - fold::noop_fold_mod(ast::_mod { - items: do vec::map(m.items) |item| { + fold::noop_fold_mod(&ast::_mod { + items: do m.items.map |item| { strip_main(*item) }, - .. m + .. copy *m }, fold) } @@ -199,7 +199,7 @@ pub fn ready_crate(sess: session::Session, let fold = fold::make_fold(precursor); - @fold.fold_crate(*crate) + @fold.fold_crate(crate) } pub fn parse_vers(vers: ~str) -> result::Result<semver::Version, ~str> { |
