-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #63152 - estebank:big-array, r=<try>
- Loading branch information
Showing
29 changed files
with
166 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// normalize-stderr-64bit "18446744073709551615" -> "SIZE" | ||
// normalize-stderr-32bit "4294967295" -> "SIZE" | ||
|
||
// error-pattern: is too big for the current architecture | ||
fn main() { | ||
println!("Size: {}", std::mem::size_of::<[u8; std::u64::MAX as usize]>()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// ignore-32bit | ||
|
||
// FIXME https://github.com/rust-lang/rust/issues/59774 | ||
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> "" | ||
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> "" | ||
#![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]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: the type `[u8; 2305843011361177600]` is too big for the current architecture | ||
--> $DIR/huge-array-simple-32.rs:9:9 | ||
| | ||
LL | let _fat: [u8; (1<<61)+(1<<31)] = | ||
| ^^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// ignore-64bit | ||
|
||
// FIXME https://github.com/rust-lang/rust/issues/59774 | ||
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> "" | ||
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> "" | ||
#![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]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: the type `[u8; 2147516416]` is too big for the current architecture | ||
--> $DIR/huge-array-simple-64.rs:9:9 | ||
| | ||
LL | let _fat: [u8; (1<<31)+(1<<15)] = | ||
| ^^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
error: the type `[[u8; 1518599999]; 1518600000]` is too big for the current architecture | ||
--> $DIR/huge-array.rs:6:9 | ||
| | ||
LL | let s: [T; 1518600000] = [t; 1518600000]; | ||
| ^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
error: the type `TYPE` is too big for the current architecture | ||
--> $DIR/huge-enum.rs:15:9 | ||
| | ||
LL | let big: BIG = None; | ||
| ^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
error: the type `SXX<SXX<SXX<u32>>>` is too big for the current architecture | ||
--> $DIR/huge-struct.rs:49:9 | ||
| | ||
LL | let fat: Option<SXX<SXX<SXX<u32>>>> = None; | ||
| ^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// ignore-64bit | ||
|
||
// FIXME https://github.com/rust-lang/rust/issues/59774 | ||
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> "" | ||
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> "" | ||
|
||
fn main() { | ||
let x = [0usize; 0xffff_ffff]; //~ ERROR too big | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: the type `[usize; 4294967295]` is too big for the current architecture | ||
--> $DIR/issue-15919-32.rs:8:9 | ||
| | ||
LL | let x = [0usize; 0xffff_ffff]; | ||
| ^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// ignore-32bit | ||
|
||
// FIXME https://github.com/rust-lang/rust/issues/59774 | ||
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> "" | ||
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> "" | ||
|
||
fn main() { | ||
let x = [0usize; 0xffff_ffff_ffff_ffff]; //~ ERROR too big | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: the type `[usize; 18446744073709551615]` is too big for the current architecture | ||
--> $DIR/issue-15919-64.rs:8:9 | ||
| | ||
LL | let x = [0usize; 0xffff_ffff_ffff_ffff]; | ||
| ^ | ||
|
||
error: aborting due to previous error | ||
|
Oops, something went wrong.