Skip to content

Commit bdd946c

Browse files
committed
---
yaml --- r: 173487 b: refs/heads/master c: c513793 h: refs/heads/master i: 173485: 6d9ac20 173483: 27964ed 173479: 55d09cf 173471: 432e762 v: v3
1 parent 974c7c6 commit bdd946c

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-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: 043a4b32d1295583a94f1658d8ccb919727976ba
2+
refs/heads/master: c51379386cbd50e30b7c6c6d2eb618d2c982ff55
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 210f0dcf007104240b2e286ed0b80cb4a61d7bae
55
refs/heads/try: 957472483d3a2f43c0e4f7c2056280a1022af93c

trunk/src/libcoretest/mem.rs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,14 @@ fn size_of_basic() {
1919
}
2020

2121
#[test]
22-
#[cfg(any(target_arch = "x86",
23-
target_arch = "arm",
24-
target_arch = "mips",
25-
target_arch = "mipsel",
26-
target_arch = "powerpc"))]
22+
#[cfg(target_pointer_width = "32")]
2723
fn size_of_32() {
2824
assert_eq!(size_of::<uint>(), 4u);
2925
assert_eq!(size_of::<*const uint>(), 4u);
3026
}
3127

3228
#[test]
33-
#[cfg(any(target_arch = "x86_64",
34-
target_arch = "aarch64"))]
29+
#[cfg(target_pointer_width = "64")]
3530
fn size_of_64() {
3631
assert_eq!(size_of::<uint>(), 8u);
3732
assert_eq!(size_of::<*const uint>(), 8u);
@@ -53,19 +48,14 @@ fn align_of_basic() {
5348
}
5449

5550
#[test]
56-
#[cfg(any(target_arch = "x86",
57-
target_arch = "arm",
58-
target_arch = "mips",
59-
target_arch = "mipsel",
60-
target_arch = "powerpc"))]
51+
#[cfg(target_pointer_width = "32")]
6152
fn align_of_32() {
6253
assert_eq!(align_of::<uint>(), 4u);
6354
assert_eq!(align_of::<*const uint>(), 4u);
6455
}
6556

6657
#[test]
67-
#[cfg(any(target_arch = "x86_64",
68-
target_arch = "aarch64"))]
58+
#[cfg(target_pointer_width = "64")]
6959
fn align_of_64() {
7060
assert_eq!(align_of::<uint>(), 8u);
7161
assert_eq!(align_of::<*const uint>(), 8u);

0 commit comments

Comments
 (0)