Skip to content

Commit 3f42ff7

Browse files
committed
---
yaml --- r: 55177 b: refs/heads/snap-stage3 c: 9329bd6 h: refs/heads/master i: 55175: 57e6533 v: v3
1 parent c195762 commit 3f42ff7

File tree

7 files changed

+35
-17
lines changed

7 files changed

+35
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 0b377e53a1f1475e3b13427a1af8432924a0a586
4+
refs/heads/snap-stage3: 9329bd669d704fffeed90c1f6703518345e6c2fd
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ variables in the arm's block, and control enters the block.
23932393
An example of an `match` expression:
23942394

23952395

2396-
~~~~ {.xfail-test}
2396+
~~~~
23972397
# fn process_pair(a: int, b: int) { }
23982398
# fn process_ten() { }
23992399

branches/snap-stage3/mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ clean-misc:
4848
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
4949
$(Q)rm -Rf $(DOCS)
5050
$(Q)rm -Rf $(GENERATED)
51-
$(Q)rm -f tmp/*
51+
$(Q)rm -f tmp/*.log tmp/*.rc tmp/*.rs tmp/*.ok
5252
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5353
$(Q)rm -Rf $(foreach ext, \
5454
html aux cp fn ky log pdf pg toc tp vr cps, \

branches/snap-stage3/src/librustc/middle/trans/adt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ pub fn num_args(r: &Repr, discr: int) -> uint {
409409
st.fields.len() - (if dtor { 1 } else { 0 })
410410
}
411411
General(ref cases) => cases[discr as uint].fields.len() - 1,
412-
NullablePointer{ nonnull: ref nonnull, nndiscr, _ } => {
413-
if discr == nndiscr { nonnull.fields.len() } else { 0 }
412+
NullablePointer{ nonnull: ref nonnull, nndiscr, nullfields: ref nullfields, _ } => {
413+
if discr == nndiscr { nonnull.fields.len() } else { nullfields.len() }
414414
}
415415
}
416416
}

branches/snap-stage3/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 56dd407f4f97a01b8df6554c569170d2fc276fcb
1+
Subproject commit 2e9f0d21fe321849a4759a01fc28eae82ef196d6
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
/*!
12+
* This is a regression test for a bug in LLVM, fixed in upstream r179587,
13+
* where the switch instructions generated for destructuring enums
14+
* represented with nullable pointers could be misoptimized in some cases.
15+
*/
16+
17+
enum List<X> { Nil, Cons(X, @List<X>) }
18+
pub fn main() {
19+
match Cons(10, @Nil) {
20+
Cons(10, _) => {}
21+
Nil => {}
22+
_ => fail!()
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,15 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-win32
12-
// error-pattern:ran out of stack
13-
14-
// Test that the task fails after hitting the recursion limit, but
15-
// that it doesn't bring down the whole proc
16-
1711
pub fn main() {
18-
do task::spawn_unlinked {
19-
fn f() { f() };
20-
f();
21-
};
12+
match Left(@17) {
13+
Right(()) => {}
14+
_ => {}
15+
}
2216
}

0 commit comments

Comments
 (0)