Skip to content

Commit 1d25d61

Browse files
committed
---
yaml --- r: 57292 b: refs/heads/try c: a87a26a h: refs/heads/master v: v3
1 parent 5d9460d commit 1d25d61

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
5-
refs/heads/try: e2c09fa3b997e09176d7cca228be2727ba525aa5
5+
refs/heads/try: a87a26a9d132a9709c253136a2a0200664ae3f8d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/test/run-pass/mlist-cycle.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@
1010

1111
// xfail-test
1212
// -*- rust -*-
13-
extern mod std;
13+
extern mod core;
14+
use core::gc;
15+
use core::gc::rustrt;
1416

15-
type cell = {c: @list};
17+
struct cell {c: @list}
1618

1719
enum list { link(@mut cell), nil, }
1820

1921
pub fn main() {
20-
let first: @cell = @mut {c: @nil()};
21-
let second: @cell = @mut {c: @link(first)};
22+
let first: @cell = @mut cell{c: @nil()};
23+
let second: @cell = @mut cell{c: @link(first)};
2224
first._0 = @link(second);
23-
sys.rustrt.gc();
24-
let third: @cell = @mut {c: @nil()};
25+
rustrt::gc();
26+
let third: @cell = @mut cell{c: @nil()};
2527
}

0 commit comments

Comments
 (0)