Skip to content

Commit 3e431ad

Browse files
committed
---
yaml --- r: 22538 b: refs/heads/master c: e993b83 h: refs/heads/master v: v3
1 parent 0329bbd commit 3e431ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+667
-554
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5821b9ea76428761019bf80ed540fe3922559255
2+
refs/heads/master: e993b838cadcef9945e0471689c6efae53d545a1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/cargo/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ fn load_crate(filename: str) -> option<crate> {
283283
ast::view_item_use(ident, metas, id) {
284284
let name_items = attr::find_meta_items_by_name(metas, "name");
285285
let m = if name_items.is_empty() {
286-
metas + ~[attr::mk_name_value_item_str(@"name"/~, *ident)]
286+
metas + ~[attr::mk_name_value_item_str(@"name", *ident)]
287287
} else {
288288
metas
289289
};

trunk/src/fuzzer/fuzzer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn common_exprs() -> ~[ast::expr] {
4545
dse(ast::expr_again),
4646
dse(ast::expr_fail(option::none)),
4747
dse(ast::expr_fail(option::some(
48-
@dse(ast::expr_lit(@dsl(ast::lit_str(@"boo"/~))))))),
48+
@dse(ast::expr_lit(@dsl(ast::lit_str(@"boo"))))))),
4949
dse(ast::expr_ret(option::none)),
5050
dse(ast::expr_lit(@dsl(ast::lit_nil))),
5151
dse(ast::expr_lit(@dsl(ast::lit_bool(false)))),

trunk/src/libcore/dlist.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,16 @@ mod tests {
441441
assert iter::foldl(l, 0, |accum,elem| accum+elem) == 5050;
442442
}
443443
#[test]
444+
fn test_dlist_break_early() {
445+
let l = from_vec(~[1,2,3,4,5]);
446+
let mut x = 0;
447+
for l.each |i| {
448+
x += 1;
449+
if (i == 3) { break; }
450+
}
451+
assert x == 3;
452+
}
453+
#[test]
444454
fn test_dlist_remove_head() {
445455
let l = create::<int>();
446456
l.assert_consistent(); let one = l.push_n(1);

trunk/src/libcore/iter-trait/dlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn EACH<A>(self: IMPL_T<A>, f: fn(A) -> bool) {
1818
!box::ptr_eq(*option::get(nobe.root), *self) {
1919
fail "Iteration encountered a dlist node not on this dlist."
2020
}
21-
f(nobe.data);
21+
if !f(nobe.data) { break; }
2222
// Check that the user didn't do a remove.
2323
// Note that this makes it ok for the user to remove the node and then
2424
// immediately put it back in a different position. I allow this.

0 commit comments

Comments
 (0)