mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
review comments
This commit is contained in:
parent
613c0a8780
commit
64469ac344
@ -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];
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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];
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user