-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Generic return values cause an ICE in type_metadata #8443
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
|
@michaelwoerister This may relate to monomorphization somehow. |
trans_fn uses |
Then again, |
|
Yes, I stumbled upon this while starting to implement generic function support. In my WIP, I just duplicated the behavior from |
Don't lint `match` expressions with `cfg`ed arms Somehow there are no open issues related to this for any of the affected lints. At least none that I could fine from a quick search. changelog: Don't lint `match` expressions with `cfg`ed arms in many cases
yields
error: internal compiler error: debuginfo: unexpected type in type_metadata
.I presume this is a ty_infer, so I'm surprised we're seeing this in the debuginfo module while in the trans pass.
The text was updated successfully, but these errors were encountered: