Skip to content

Commit 64469ac

Browse files
committed
review comments
1 parent 613c0a8 commit 64469ac

6 files changed

+16
-10
lines changed

Diff for: src/test/ui/huge-array-simple-32.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// ignore-32bit
1+
// ignore-64bit
22

33
// FIXME https://github.com/rust-lang/rust/issues/59774
44
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
55
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
66
#![allow(exceeding_bitshifts)]
77

88
fn main() {
9-
let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the current architecture
10-
[0; (1u64<<61) as usize +(1u64<<31) as usize];
9+
let _fat: [u8; (1<<31)+(1<<15)] = //~ ERROR too big for the current architecture
10+
[0; (1u32<<31) as usize +(1u32<<15) as usize];
1111
}

Diff for: src/test/ui/huge-array-simple-32.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error: the type `[u8; 2305843011361177600]` is too big for the current architecture
1+
error: the type `[u8; 2147516416]` is too big for the current architecture
22
--> $DIR/huge-array-simple-32.rs:9:9
33
|
4-
LL | let _fat: [u8; (1<<61)+(1<<31)] =
4+
LL | let _fat: [u8; (1<<31)+(1<<15)] =
55
| ^^^^
66

77
error: aborting due to previous error

Diff for: src/test/ui/huge-array-simple-64.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// ignore-64bit
1+
// ignore-32bit
22

33
// FIXME https://github.com/rust-lang/rust/issues/59774
44
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
55
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
66
#![allow(exceeding_bitshifts)]
77

88
fn main() {
9-
let _fat: [u8; (1<<31)+(1<<15)] = //~ ERROR too big for the current architecture
10-
[0; (1u32<<31) as usize +(1u32<<15) as usize];
9+
let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the current architecture
10+
[0; (1u64<<61) as usize +(1u64<<31) as usize];
1111
}

Diff for: src/test/ui/huge-array-simple-64.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error: the type `[u8; 2147516416]` is too big for the current architecture
1+
error: the type `[u8; 2305843011361177600]` is too big for the current architecture
22
--> $DIR/huge-array-simple-64.rs:9:9
33
|
4-
LL | let _fat: [u8; (1<<31)+(1<<15)] =
4+
LL | let _fat: [u8; (1<<61)+(1<<31)] =
55
| ^^^^
66

77
error: aborting due to previous error

Diff for: src/test/ui/issues/issue-15919-32.rs

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
fn main() {
88
let x = [0usize; 0xffff_ffff]; //~ ERROR too big
99
}
10+
11+
// These two tests need to have different literals, as we can't rely on conditional compilation
12+
// for them while retaining the same spans/lines.

Diff for: src/test/ui/issues/issue-15919-64.rs

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
fn main() {
88
let x = [0usize; 0xffff_ffff_ffff_ffff]; //~ ERROR too big
99
}
10+
11+
// These two tests need to have different literals, as we can't rely on conditional compilation
12+
// for them while retaining the same spans/lines.

0 commit comments

Comments
 (0)