Skip to content

Commit 2325ec8

Browse files
committed
---
yaml --- r: 11843 b: refs/heads/master c: b516913 h: refs/heads/master i: 11841: 2ec5231 11839: e810458 v: v3
1 parent 8cebee4 commit 2325ec8

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
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: fd9c9ac91210cfce32da8d7f38b74072bac4ae3b
2+
refs/heads/master: b516913a5d46dc32d47b7846bb510fc029e660b3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/test/run-pass/regions-self-in-enums.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ enum int_wrapper {
33
}
44

55
fn main() {
6-
unsafe {
7-
let x = 3;
8-
let y = int_wrapper_ctor(&x);
9-
let z : ∫
10-
alt y {
11-
int_wrapper_ctor(zz) { z = zz; }
12-
}
13-
log(debug, *z);
6+
let x = 3;
7+
let y = int_wrapper_ctor(&x);
8+
let z : ∫
9+
alt y {
10+
int_wrapper_ctor(zz) { z = zz; }
1411
}
12+
log(debug, *z);
1513
}
1614

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
fn main() {
2-
unsafe{
3-
let x: int = 3;
4-
let y: &mutable int = &mutable x;
5-
*y = 5;
6-
log (debug, *y);
7-
}
2+
let x: int = 3;
3+
let y: &mutable int = &mutable x;
4+
*y = 5;
5+
log (debug, *y);
86
}
97

108

0 commit comments

Comments
 (0)