libsyntax: progress on making syntax::visit vecs_implicitly_copyable-free
This commit is contained in:
parent
9ac5262bdf
commit
f14409c528
41 changed files with 1060 additions and 921 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue