-
Notifications
You must be signed in to change notification settings - Fork 13.3k
feature(drop_types_in_const): type with drop flag in a const causes ICE/trap #35654
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
Comments
I assume this is related to the drop flag (which I believe still exists, even if it is on it's last legs). /cc @rust-lang/compiler |
Indeed, the |
@eddyb you mean, doesn't work with stack drop flags? Note that it's broken (in different ways) with and without MIR, so I'm not sure this is new... |
@durka No, I mean the drop flags, the old ones embedded in every type implementing |
OK, so the drop_types_in_const feature has never actually worked so far? On Mon, Aug 15, 2016 at 1:22 AM, Eduard-Mihai Burtescu <
|
@durka presumably types with |
Indeed, |
OK. Should I leave this open then? |
Looks like maybe a dupe of #34053. Anyway, works fine with nightly since in-struct drop flags are gone. |
Code:
With MIR on:
With MIR off, the code compiles but traps (
Trace/BPT trap: 5
) at runtime.The text was updated successfully, but these errors were encountered: