Skip to content

Commit 3c39bb6

Browse files
committed
---
yaml --- r: 55189 b: refs/heads/snap-stage3 c: d1921fb h: refs/heads/master i: 55187: 0e22ac3 v: v3
1 parent a0db740 commit 3c39bb6

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
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: 3931ce448e0329672583d3210df714cca5176f02
4+
refs/heads/snap-stage3: d1921fb3caa131c83673020a377e1d0cd245b1ea
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/run-pass/tag-align-u64.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,26 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
1211

13-
tag a_tag {
14-
a_tag(u64);
12+
enum a_tag {
13+
a_tag(u64)
1514
}
1615

17-
type t_rec = {
16+
struct t_rec {
1817
c8: u8,
1918
t: a_tag
20-
};
19+
}
2120

2221
fn mk_rec() -> t_rec {
23-
return { c8:0u8, t:a_tag(0u64) };
22+
return t_rec { c8:0u8, t:a_tag(0u64) };
2423
}
2524

26-
fn is_8_byte_aligned(&&u: a_tag) -> bool {
25+
fn is_8_byte_aligned(u: &a_tag) -> bool {
2726
let p = ptr::to_unsafe_ptr(u) as u64;
2827
return (p & 7u64) == 0u64;
2928
}
3029

3130
pub fn main() {
3231
let x = mk_rec();
33-
assert!(is_8_byte_aligned(x.t));
32+
assert!(is_8_byte_aligned(&x.t));
3433
}

0 commit comments

Comments
 (0)