-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
ICE when returning Vec from const fn #55063
Comments
Link to playground that gives the exact backtrace above. |
Relavent code: rust/src/librustc_mir/transform/qualify_min_const_fn.rs Lines 153 to 154 in 2462a2d
The types here are |
The actual bug would be here then, right? Lines 61 to 77 in 2462a2d
|
Not quite sure, but the real bug is that we allow the |
@oli-obk no ICE fix from the ICE? :p |
Fix ICE and report a human readable error fixes rust-lang#55063 r? @RalfJung
Fix ICE and report a human readable error fixes rust-lang#55063 r? @RalfJung
I tried this code:
Minimal example
Original example
I expected to see this happen: program compiles and prints 'Hello 1' or I get a compiler error.
Instead, this happened: ICE
Meta
The text was updated successfully, but these errors were encountered: