Skip to content

Commit cc82de9

Browse files
committed
---
yaml --- r: 7893 b: refs/heads/snap-stage3 c: d6996c0 h: refs/heads/master i: 7891: b95f68f v: v3
1 parent 1025d99 commit cc82de9

File tree

11 files changed

+34
-462
lines changed

11 files changed

+34
-462
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 29ba19633651e4c51cddf3c2c089c1c36ed531c6
4+
refs/heads/snap-stage3: d6996c0210a7ec4dc82a99b394fbde086318f1ed
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,8 +929,8 @@ for the parameter list, as in `{|| ...}`.
929929
Partial application is done using the `bind` keyword in Rust.
930930

931931
~~~~
932-
let daynum = bind vec::position_elt(["mo", "tu", "we", "do",
933-
"fr", "sa", "su"], _);
932+
let daynum = bind vec::position(_, ["mo", "tu", "we", "do",
933+
"fr", "sa", "su"]);
934934
~~~~
935935

936936
Binding a function produces a boxed closure (`fn@` type) in which some

branches/snap-stage3/mk/install.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# Installation macro. Call with source directory as arg 1,
66
# destination directory as arg 2, and filename/libname-glob as arg 3
77
ifdef VERBOSE
8-
INSTALL = install -m755 -T $(1)/$(3) $(2)/$(3)
8+
INSTALL = install -m755 $(1)/$(3) $(2)/$(3)
99
INSTALL_LIB = install -m644 `ls -rt1 $(1)/$(3) | tail -1` $(2)/
1010
else
11-
INSTALL = $(Q)$(call E, install: $(2)/$(3)) && install -m755 -T $(1)/$(3) $(2)/$(3)
11+
INSTALL = $(Q)$(call E, install: $(2)/$(3)) && install -m755 $(1)/$(3) $(2)/$(3)
1212
INSTALL_LIB = $(Q)$(call E, install_lib: $(2)/$(3)) && \
1313
install -m644 `ls -rt1 $(1)/$(3) | tail -1` $(2)/
1414
endif

branches/snap-stage3/src/comp/middle/alias.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ fn filter_invalid(src: list<@invalid>, bs: [binding]) -> list<@invalid> {
679679
while cur != list::nil {
680680
alt cur {
681681
list::cons(head, tail) {
682-
let p = vec::position(bs, {|b| b.node_id == head.node_id});
682+
let p = vec::position_pred(bs, {|b| b.node_id == head.node_id});
683683
if !is_none(p) { out = list::cons(head, @out); }
684684
cur = *tail;
685685
}

branches/snap-stage3/src/comp/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ fn visit_item_with_scope(e: @env, i: @ast::item, sc: scopes, v: vt<scopes>) {
445445
v.visit_ty(sty, sc, v);
446446
for m in methods {
447447
let msc = cons(scope_method(i.id, tps + m.tps), @sc);
448-
v.visit_fn(visit::fk_method(m.ident, []),
448+
v.visit_fn(visit::fk_method(m.ident, m.tps),
449449
m.decl, m.body, m.span, m.id, msc, v);
450450
}
451451
}

branches/snap-stage3/src/comp/middle/shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ fn shape_of(ccx: @crate_ctxt, t: ty::t, ty_param_map: [uint]) -> [u8] {
430430
}
431431
ty::ty_param(n, _) {
432432
// Find the type parameter in the parameter list.
433-
alt vec::position_elt(ty_param_map, n) {
433+
alt vec::position(n, ty_param_map) {
434434
some(i) { s += [shape_var, i as u8]; }
435435
none { fail "ty param not found in ty_param_map"; }
436436
}

branches/snap-stage3/src/comp/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3375,7 +3375,7 @@ fn trans_rec(bcx: @block_ctxt, fields: [ast::field],
33753375
let ty_fields = alt ty::struct(bcx_tcx(bcx), t) { ty::ty_rec(f) { f } };
33763376
let temp_cleanups = [];
33773377
for fld in fields {
3378-
let ix = option::get(vec::position(ty_fields, {|ft|
3378+
let ix = option::get(vec::position_pred(ty_fields, {|ft|
33793379
str::eq(fld.node.ident, ft.ident)
33803380
}));
33813381
let dst = GEP_tup_like_1(bcx, t, addr, [0, ix as int]);

branches/snap-stage3/src/comp/middle/typeck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ fn lookup_method(fcx: @fn_ctxt, isc: resolve::iscopes,
15131513
ty::ty_iface(i, tps) { (i, tps) }
15141514
};
15151515
let ifce_methods = ty::iface_methods(tcx, iid);
1516-
alt vec::position(*ifce_methods, {|m| m.ident == name}) {
1516+
alt vec::position_pred(*ifce_methods, {|m| m.ident == name}) {
15171517
some(pos) {
15181518
let m = ifce_methods[pos];
15191519
ret some({method_ty: ty::mk_fn(tcx, m.fty),

0 commit comments

Comments
 (0)