-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
broken MIR
NoSolution
sized array initialiser with addition in generic tuple destructure
#71344
Comments
|
Assigning |
Oh dear, I was hoping crater will find all such issues (this is #70773). I guess nobody in the wild is pattern-matching tuples with non-literal-length arrays. I can repro by adding this line (playground) to the #70773 test (and the PR fixing this should IMO add the line to let (_array,) = ([0; HASH_LEN],); The fix is likely trivial: add another normalization, like in 8989029. I've brought it up before w/ @oli-obk (but I don't know if I've seen a response), that the lack of normalization for array lengths in typeck is pushing complexity to the rest of the compiler and maybe we should do it in typeck. But then again, Lazy Normalization Is Coming™, so maybe there's no point. |
I believe I responded in the PR where you already asked me about that. I'm fine reintroducing a normalization phase |
According to my CI this started 2020-04-16 (https://travis-ci.org/github/thepowersgang/rust_os/builds/675740673) -
nightly-x86_64-unknown-linux-gnu installed - rustc 1.44.0-nightly (d2230290f 2020-04-15)
Code
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: