Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XXL Arrays #71699

Closed
Dylan-DPC-zz opened this issue Apr 30, 2020 · 3 comments
Closed

XXL Arrays #71699

Dylan-DPC-zz opened this issue Apr 30, 2020 · 3 comments
Labels
A-slice-patterns Area: Slice patterns, https://github.com/rust-lang/rust/issues/23121 C-bug Category: This is a bug. glacier ICE tracked in rust-lang/glacier. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-low Low priority T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Dylan-DPC-zz
Copy link

Code

fn foo([(), .., ()]: [(); 1 << 40]) {}

fn main() {
    foo([(); 1 << 40]);
}

Error output

thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: TryFromIntError(())', src/librustc_mir_build/build/matches/util.rs:36:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

@Dylan-DPC-zz Dylan-DPC-zz added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Apr 30, 2020
@jonas-schievink jonas-schievink added A-slice-patterns Area: Slice patterns, https://github.com/rust-lang/rust/issues/23121 I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels Apr 30, 2020
@spastorino spastorino added P-medium Medium priority and removed I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels Apr 30, 2020
@spastorino
Copy link
Member

Assigning P-medium as discussed as part of the Prioritization Working Group process and removing I-prioritize.

@Dylan-DPC-zz Dylan-DPC-zz added P-low Low priority and removed P-medium Medium priority labels Apr 30, 2020
@rust-lang-glacier-bot rust-lang-glacier-bot added the glacier ICE tracked in rust-lang/glacier. label May 6, 2020
@DutchGhost
Copy link
Contributor

This can be shortened to:

fn bug([..]: [(); !0]) {}

@Alexendoo
Copy link
Member

Fixed by #75893

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-slice-patterns Area: Slice patterns, https://github.com/rust-lang/rust/issues/23121 C-bug Category: This is a bug. glacier ICE tracked in rust-lang/glacier. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ P-low Low priority T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants