Skip to content

ICE while using polymorphic type. #6539

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

Closed
AyeGill opened this issue May 16, 2013 · 2 comments
Closed

ICE while using polymorphic type. #6539

AyeGill opened this issue May 16, 2013 · 2 comments

Comments

@AyeGill
Copy link

AyeGill commented May 16, 2013

Encountered an ICE while using a polymorphic type. Not sure what the precise cause of the error was. This gist: https://gist.github.com/AyeGill/5594429
contains the error log and the code used to implement the type as well as the point at which it is used. I'm sorry I can't help pinpoint the cause of the error more precisely. This code: https://gist.github.com/AyeGill/5594548
failed to experience the same error despite featuring similar uses of polymorphism.

@thestinger
Copy link
Contributor

Do you have a complete code sample where this issue still occurs? The one in the first gist isn't compilable.

@thestinger
Copy link
Contributor

Closing due to the lack of a reproducible test case.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jan 30, 2021
Fix the ICE 6539

Fixes rust-lang#6539

It happened because `zero_sized_map_values` used `layout_of` with types from type aliases, which is essentially the same as the ICE 4968.

---

changelog: Fix an ICE in `zero_sized_map_values`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants