Skip to content

Commit 5b9ce5d

Browse files
committed
---
yaml --- r: 3013 b: refs/heads/master c: 798bbd2 h: refs/heads/master i: 3011: d03945d v: v3
1 parent 836993c commit 5b9ce5d

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
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: c51c6ba35463d4d48eae0ea805e03ba5ab1ed84e
2+
refs/heads/master: 798bbd2e226c17024252192f939ce5c9ae59a99b

trunk/src/comp/front/creader.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,15 +585,15 @@ fn lookup_defs(session::session sess, int cnum, vec[ast::ident] path)
585585
auto data = sess.get_external_crate(cnum).data;
586586

587587
ret vec::map(bind lookup_def(cnum, data, _),
588-
resolve_path(path, data));
588+
resolve_path(path, data));
589589
}
590590

591591
// FIXME doesn't yet handle re-exported externals
592-
fn lookup_def(int cnum, vec[u8] data, &ast::def_id did) -> ast::def {
593-
auto item = lookup_item(did._1, data);
592+
fn lookup_def(int cnum, vec[u8] data, &ast::def_id did_) -> ast::def {
593+
auto item = lookup_item(did_._1, data);
594594
auto kind_ch = item_kind(item);
595595

596-
did = tup(cnum, did._1);
596+
auto did = tup(cnum, did_._1);
597597

598598
auto def = alt (kind_ch as char) {
599599
case ('c') { ast::def_const(did) }

trunk/src/comp/middle/resolve.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -806,15 +806,16 @@ fn lookup_in_local_native_mod(&env e, def_id defid, &span sp,
806806
fn lookup_in_local_mod(&env e, def_id defid, &span sp,
807807
&ident id, namespace ns, dir dr) -> option::t[def] {
808808
auto info = e.mod_map.get(defid._1);
809-
if (dr == outside && !ast::is_exported(id, option::get(info.m))) {
809+
if (dr == outside && !ast::is_exported(id, option::get(info.m))) {
810810
// if we're in a native mod, then dr==inside, so info.m is some _mod
811811
ret none[def]; // name is not visible
812-
}
812+
}
813813
alt(info.index.find(id)) {
814814
case (none) { }
815-
case (some(?lst)) {
815+
case (some(?lst_)) {
816+
auto lst = lst_;
816817
while (true) {
817-
alt ({lst}) {
818+
alt (lst) {
818819
case (nil) { break; }
819820
case (cons(?hd, ?tl)) {
820821
auto found = lookup_in_mie(e, hd, ns);
@@ -1070,15 +1071,15 @@ fn check_for_collisions(&@env e, &ast::crate c) {
10701071
visit::visit_crate(c, (), visit::vtor(v));
10711072
}
10721073

1073-
fn check_mod_name(&env e, &ident name, &list[mod_index_entry] entries) {
1074+
fn check_mod_name(&env e, &ident name, list[mod_index_entry] entries) {
10741075
auto saw_mod = false; auto saw_type = false; auto saw_value = false;
10751076

10761077
fn dup(&env e, &span sp, &str word, &ident name) {
10771078
e.sess.span_err(sp, "duplicate definition of " + word + name);
10781079
}
10791080

10801081
while (true) {
1081-
alt ({entries}) {
1082+
alt (entries) {
10821083
case (cons(?entry, ?rest)) {
10831084
if (!option::is_none(lookup_in_mie(e, entry, ns_value))) {
10841085
if (saw_value) { dup(e, mie_span(entry), "", name); }

trunk/src/comp/middle/trans.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3285,11 +3285,11 @@ fn copy_val(&@block_ctxt cx,
32853285
// FIXME: We always zero out the source. Ideally we would detect the
32863286
// case where a variable is always deinitialized by block exit and thus
32873287
// doesn't need to be dropped.
3288-
fn move_val(&@block_ctxt cx,
3289-
copy_action action,
3290-
ValueRef dst,
3291-
ValueRef src,
3292-
&ty::t t) -> result {
3288+
fn move_val(@block_ctxt cx,
3289+
copy_action action,
3290+
ValueRef dst,
3291+
ValueRef src,
3292+
&ty::t t) -> result {
32933293
if (ty::type_is_scalar(cx.fcx.lcx.ccx.tcx, t) ||
32943294
ty::type_is_native(cx.fcx.lcx.ccx.tcx, t)) {
32953295
ret res(cx, cx.build.Store(src, dst));
@@ -5717,7 +5717,7 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output)
57175717
ret res(sub.res.bcx, load_if_immediate(sub.res.bcx, sub.res.val, t));
57185718
}
57195719

5720-
fn with_out_method(fn(&out_method) -> result work, &@block_ctxt cx,
5720+
fn with_out_method(fn(&out_method) -> result work, @block_ctxt cx,
57215721
&ast::ann ann, &out_method outer_output) -> result {
57225722
auto ccx = cx.fcx.lcx.ccx;
57235723
if (outer_output != return) {

trunk/src/lib/extfmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ mod ct {
8585
auto lim = str::byte_len(s);
8686
auto buf = "";
8787

88-
fn flush_buf(str buf, &vec[piece] pieces) -> str {
88+
fn flush_buf(str buf, &mutable vec[piece] pieces) -> str {
8989
if (str::byte_len(buf) > 0u) {
9090
auto piece = piece_string(buf);
9191
pieces += [piece];

trunk/src/lib/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ fn grow_set[T](&mutable vec[mutable T] v, uint index, &T initval, &T val) {
226226
v.(index) = val;
227227
}
228228

229-
fn grow_init_fn[T](&array[T] v, uint n, fn()->T init_fn) {
229+
fn grow_init_fn[T](&mutable array[T] v, uint n, fn()->T init_fn) {
230230
let uint i = n;
231231
while (i > 0u) {
232232
i -= 1u;
@@ -345,7 +345,7 @@ fn clone[T](&vec[T] v) -> vec[T] {
345345
ret slice[T](v, 0u, len[T](v));
346346
}
347347

348-
fn plus_option[T](&vec[T] v, &option::t[T] o) -> () {
348+
fn plus_option[T](&mutable vec[T] v, &option::t[T] o) -> () {
349349
alt (o) {
350350
case (none) {}
351351
case (some(?x)) { v += [x]; }

0 commit comments

Comments
 (0)