review comments

This commit is contained in:
Esteban Küber 2019-08-06 11:23:32 -07:00
parent 613c0a8780
commit 64469ac344
6 changed files with 16 additions and 10 deletions

View File

@ -1,4 +1,4 @@
// ignore-32bit
// ignore-64bit
// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
@ -6,6 +6,6 @@
#![allow(exceeding_bitshifts)]
fn main() {
let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the current architecture
[0; (1u64<<61) as usize +(1u64<<31) as usize];
let _fat: [u8; (1<<31)+(1<<15)] = //~ ERROR too big for the current architecture
[0; (1u32<<31) as usize +(1u32<<15) as usize];
}

View File

@ -1,7 +1,7 @@
error: the type `[u8; 2305843011361177600]` is too big for the current architecture
error: the type `[u8; 2147516416]` is too big for the current architecture
--> $DIR/huge-array-simple-32.rs:9:9
|
LL | let _fat: [u8; (1<<61)+(1<<31)] =
LL | let _fat: [u8; (1<<31)+(1<<15)] =
| ^^^^
error: aborting due to previous error

View File

@ -1,4 +1,4 @@
// ignore-64bit
// ignore-32bit
// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
@ -6,6 +6,6 @@
#![allow(exceeding_bitshifts)]
fn main() {
let _fat: [u8; (1<<31)+(1<<15)] = //~ ERROR too big for the current architecture
[0; (1u32<<31) as usize +(1u32<<15) as usize];
let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the current architecture
[0; (1u64<<61) as usize +(1u64<<31) as usize];
}

View File

@ -1,7 +1,7 @@
error: the type `[u8; 2147516416]` is too big for the current architecture
error: the type `[u8; 2305843011361177600]` is too big for the current architecture
--> $DIR/huge-array-simple-64.rs:9:9
|
LL | let _fat: [u8; (1<<31)+(1<<15)] =
LL | let _fat: [u8; (1<<61)+(1<<31)] =
| ^^^^
error: aborting due to previous error

View File

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

View File

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