Skip to content

Commit d0c3973

Browse files
committed
---
yaml --- r: 5724 b: refs/heads/master c: fe916fb h: refs/heads/master v: v3
1 parent 1eb672a commit d0c3973

File tree

10 files changed

+99
-116
lines changed

10 files changed

+99
-116
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f9fbd86f52cf597b85359ade1ca60b8d6ebf7286
2+
refs/heads/master: fe916fb9f0496097f5edc2c0fb6c30eb0e1c4a5d

trunk/src/comp/front/config.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ fn fold_mod(cfg: ast::crate_cfg, m: ast::_mod, fld: fold::ast_fold) ->
2929
ast::_mod {
3030
let filter = bind filter_item(cfg, _);
3131
let filtered_items = vec::filter_map(filter, m.items);
32-
ret {view_items: vec::map_imm(fld.fold_view_item, m.view_items),
33-
items: vec::map_imm(fld.fold_item, filtered_items)};
32+
ret {view_items: vec::map(fld.fold_view_item, m.view_items),
33+
items: vec::map(fld.fold_item, filtered_items)};
3434
}
3535

3636
fn filter_native_item(cfg: ast::crate_cfg, &&item: @ast::native_item) ->
@@ -46,7 +46,7 @@ fn fold_native_mod(cfg: ast::crate_cfg, nm: ast::native_mod,
4646
let filtered_items = vec::filter_map(filter, nm.items);
4747
ret {native_name: nm.native_name,
4848
abi: nm.abi,
49-
view_items: vec::map_imm(fld.fold_view_item, nm.view_items),
49+
view_items: vec::map(fld.fold_view_item, nm.view_items),
5050
items: filtered_items};
5151
}
5252

@@ -71,8 +71,8 @@ fn fold_block(cfg: ast::crate_cfg, b: ast::blk_, fld: fold::ast_fold) ->
7171
ast::blk_ {
7272
let filter = bind filter_stmt(cfg, _);
7373
let filtered_stmts = vec::filter_map(filter, b.stmts);
74-
ret {stmts: vec::map_imm(fld.fold_stmt, filtered_stmts),
75-
expr: option::map_imm(fld.fold_expr, b.expr),
74+
ret {stmts: vec::map(fld.fold_stmt, filtered_stmts),
75+
expr: option::map(fld.fold_expr, b.expr),
7676
id: b.id,
7777
rules: b.rules};
7878
}

trunk/src/comp/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn fold_crate(cx: test_ctxt, c: ast::crate_, fld: fold::ast_fold) ->
8282
}
8383

8484

85-
fn fold_item(cx: test_ctxt, i: @ast::item, fld: fold::ast_fold) ->
85+
fn fold_item(cx: test_ctxt, &&i: @ast::item, fld: fold::ast_fold) ->
8686
@ast::item {
8787

8888
cx.path += [i.ident];

trunk/src/comp/middle/tstate/ann.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ fn empty_ann(num_vars: uint) -> ts_ann {
7070
states: empty_states(num_vars)};
7171
}
7272

73-
fn get_pre(p: pre_and_post) -> precond { ret p.precondition; }
73+
fn get_pre(&&p: pre_and_post) -> precond { ret p.precondition; }
7474

75-
fn get_post(p: pre_and_post) -> postcond { ret p.postcondition; }
75+
fn get_post(&&p: pre_and_post) -> postcond { ret p.postcondition; }
7676

7777
fn difference(p1: precond, p2: precond) -> bool {
7878
ret tritv_difference(p1, p2);

trunk/src/comp/middle/tstate/pre_post_conditions.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ fn find_pre_post_exprs(fcx: fn_ctxt, args: [@expr], id: node_id) {
9696
fn do_one(fcx: fn_ctxt, e: @expr) { find_pre_post_expr(fcx, e); }
9797
for e: @expr in args { do_one(fcx, e); }
9898

99-
fn get_pp(ccx: crate_ctxt, e: @expr) -> pre_and_post {
99+
fn get_pp(ccx: crate_ctxt, &&e: @expr) -> pre_and_post {
100100
ret expr_pp(ccx, e);
101101
}
102-
let pps = vec::map_imm(bind get_pp(fcx.ccx, _), args);
102+
let pps = vec::map(bind get_pp(fcx.ccx, _), args);
103103

104104
set_pre_and_post(fcx.ccx, id, seq_preconds(fcx, pps),
105-
seq_postconds(fcx, vec::map_imm(get_post, pps)));
105+
seq_postconds(fcx, vec::map(get_post, pps)));
106106
}
107107

108108
fn find_pre_post_loop(fcx: fn_ctxt, l: @local, index: @expr, body: blk,

trunk/src/comp/middle/typeck.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ fn default_arg_mode_for_ty(tcx: ty::ctxt, m: ast::mode,
239239
_ { m }
240240
}
241241
}
242-
fn ast_ty_to_ty(tcx: ty::ctxt, getter: ty_getter, ast_ty: @ast::ty) -> ty::t {
242+
fn ast_ty_to_ty(tcx: ty::ctxt, getter: ty_getter, &&ast_ty: @ast::ty)
243+
-> ty::t {
243244
fn ast_arg_to_arg(tcx: ty::ctxt, getter: ty_getter, arg: ast::ty_arg)
244245
-> {mode: ty::mode, ty: ty::t} {
245246
let ty = ast_ty_to_ty(tcx, getter, arg.node.ty);
@@ -311,7 +312,7 @@ fn ast_ty_to_ty(tcx: ty::ctxt, getter: ty_getter, ast_ty: @ast::ty) -> ty::t {
311312
typ = ty::mk_ptr(tcx, ast_mt_to_mt(tcx, getter, mt));
312313
}
313314
ast::ty_tup(fields) {
314-
let flds = vec::map_imm(bind ast_ty_to_ty(tcx, getter, _), fields);
315+
let flds = vec::map(bind ast_ty_to_ty(tcx, getter, _), fields);
315316
typ = ty::mk_tup(tcx, flds);
316317
}
317318
ast::ty_rec(fields) {
@@ -398,7 +399,7 @@ fn ast_ty_to_ty(tcx: ty::ctxt, getter: ty_getter, ast_ty: @ast::ty) -> ty::t {
398399

399400
// A convenience function to use a crate_ctxt to resolve names for
400401
// ast_ty_to_ty.
401-
fn ast_ty_to_ty_crate(ccx: @crate_ctxt, ast_ty: @ast::ty) -> ty::t {
402+
fn ast_ty_to_ty_crate(ccx: @crate_ctxt, &&ast_ty: @ast::ty) -> ty::t {
402403
fn getter(ccx: @crate_ctxt, id: ast::def_id) ->
403404
ty::ty_param_kinds_and_ty {
404405
ret ty::lookup_item_type(ccx.tcx, id);
@@ -408,7 +409,7 @@ fn ast_ty_to_ty_crate(ccx: @crate_ctxt, ast_ty: @ast::ty) -> ty::t {
408409
}
409410

410411
// A wrapper around ast_ty_to_ty_crate that handles ty_infer.
411-
fn ast_ty_to_ty_crate_infer(ccx: @crate_ctxt, ast_ty: @ast::ty) ->
412+
fn ast_ty_to_ty_crate_infer(ccx: @crate_ctxt, &&ast_ty: @ast::ty) ->
412413
option::t<ty::t> {
413414
alt ast_ty.node {
414415
ast::ty_infer. { none }
@@ -417,7 +418,7 @@ fn ast_ty_to_ty_crate_infer(ccx: @crate_ctxt, ast_ty: @ast::ty) ->
417418
}
418419
// A wrapper around ast_ty_to_ty_infer that generates a new type variable if
419420
// there isn't a fixed type.
420-
fn ast_ty_to_ty_crate_tyvar(fcx: @fn_ctxt, ast_ty: @ast::ty) -> ty::t {
421+
fn ast_ty_to_ty_crate_tyvar(fcx: @fn_ctxt, &&ast_ty: @ast::ty) -> ty::t {
421422
alt ast_ty_to_ty_crate_infer(fcx.ccx, ast_ty) {
422423
some(ty) { ty }
423424
none. { next_ty_var(fcx) }
@@ -515,7 +516,7 @@ mod collect {
515516
ret k;
516517
}
517518

518-
fn ty_of_fn_decl(cx: @ctxt, convert: fn(@ast::ty) -> ty::t,
519+
fn ty_of_fn_decl(cx: @ctxt, convert: fn(&&@ast::ty) -> ty::t,
519520
ty_of_arg: fn(ast::arg) -> arg, decl: ast::fn_decl,
520521
proto: ast::proto, ty_params: [ast::ty_param],
521522
def_id: option::t<ast::def_id>) ->
@@ -535,7 +536,7 @@ mod collect {
535536
alt def_id { some(did) { cx.tcx.tcache.insert(did, tpt); } _ { } }
536537
ret tpt;
537538
}
538-
fn ty_of_native_fn_decl(cx: @ctxt, convert: fn(@ast::ty) -> ty::t,
539+
fn ty_of_native_fn_decl(cx: @ctxt, convert: fn(&&@ast::ty) -> ty::t,
539540
ty_of_arg: fn(ast::arg) -> arg,
540541
decl: ast::fn_decl, abi: ast::native_abi,
541542
ty_params: [ast::ty_param], def_id: ast::def_id)

trunk/src/comp/syntax/ext/simplext.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ iter free_vars(b: bindings, e: @expr) -> ident {
263263

264264
/* handle sequences (anywhere in the AST) of exprs, either real or ...ed */
265265
fn transcribe_exprs(cx: ext_ctxt, b: bindings, idx_path: @mutable [uint],
266-
recur: fn(@expr) -> @expr, exprs: [@expr]) -> [@expr] {
266+
recur: fn(&&@expr) -> @expr, exprs: [@expr]) -> [@expr] {
267267
alt elts_to_ell(cx, exprs) {
268268
{pre: pre, rep: repeat_me_maybe, post: post} {
269-
let res = vec::map_imm(recur, pre);
269+
let res = vec::map(recur, pre);
270270
alt repeat_me_maybe {
271271
none. { }
272272
some(repeat_me) {
@@ -315,7 +315,7 @@ fn transcribe_exprs(cx: ext_ctxt, b: bindings, idx_path: @mutable [uint],
315315
}
316316
}
317317
}
318-
res += vec::map_imm(recur, post);
318+
res += vec::map(recur, post);
319319
ret res;
320320
}
321321
}

0 commit comments

Comments
 (0)