Skip to content

Commit 5957875

Browse files
author
Elliott Slaughter
committed
---
yaml --- r: 23633 b: refs/heads/master c: 3b554c1 h: refs/heads/master i: 23631: c0f124a v: v3
1 parent 1e978c7 commit 5957875

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
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: f022f566a437819d5b41903fa0c59471cd3c7491
2+
refs/heads/master: 3b554c1e0c46efcf0e55994fcd8fbc0c17b9c119
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extern mod rustrt {
2+
fn rust_annihilate_box(ptr: *uint);
3+
}
4+
5+
fn main() {
6+
unsafe {
7+
let x = @3;
8+
let p: *uint = unsafe::transmute(x);
9+
rustrt::rust_annihilate_box(p);
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extern mod rustrt {
2+
fn rust_annihilate_box(ptr: *uint);
3+
}
4+
5+
fn main() {
6+
unsafe {
7+
let x = ~[~"a", ~"b", ~"c"];
8+
let p: *uint = unsafe::transmute(x);
9+
rustrt::rust_annihilate_box(p);
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extern mod rustrt {
2+
fn rust_annihilate_box(ptr: *uint);
3+
}
4+
5+
fn main() {
6+
unsafe {
7+
let x = ~3;
8+
let p: *uint = unsafe::transmute(x);
9+
rustrt::rust_annihilate_box(p);
10+
}
11+
}

0 commit comments

Comments
 (0)