-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
assertion failed: !is_undef(wrapped) #8506
Comments
I've simplified the reproducing program:
If I remove the Other case, or change its contents to non-pointers, or remove one of its fields, the code compiles and runs successfully. If I remove the static definition of one = One, the code compiles and runs successfully. |
Triage. Example that doesn't require gated features. #[allow(dead_code)];
enum Either {
One,
Other(~int, int)
}
static one : Either = One;
fn main () {} The things that @carl-eastlund noticed still hold: cc @jld. |
What happens in that case is that So we could just make those fields null instead, and get rid of the Another approach would be to precompute all the field offsets and const-padding-ness when the |
fix suggestion on `[map_flatten]` being cropped causing possible information loss fixes rust-lang#8506 Multi-line suggestion given by the lint is missing its bottom part, which could potentially contains useful information about the fix. --- changelog: [`map_flatten`]: Long suggestions will now be splitup into two help messages
I'm running on a Mac, using a checkout of the github sources. I run this command:
I get this error message:
And the rest is the contents of ~/Desktop/sample.rs:
The text was updated successfully, but these errors were encountered: