-
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
ICE on nightly when calling method on an enum #39544
Comments
Could you provide some code that reproduces the ICE? |
I pushed a branch of my project demonstrating the issue on github: drbawb/aqua@8e28dc4 I'll try to work on a more minimal repro than that, but hopefully it's a start. |
Here is a gist to a self-contained test case: Here is a playground link: This seems to be related to calling a mutable method on the enum through an immutable binding. Interestingly on the playground it only causes the ICE on nightly, it seems to compile fine on Stable. (Well it doesn't ICE, it does return an error about the mutable binding.) |
minimized https://is.gd/GaakiA:
Probably introduced by #39139 |
Fix ICE when accessing mutably an immutable enum Fix rust-lang#39544.
Fix ICE when accessing mutably an immutable enum Fix rust-lang#39544.
Fix ICE when accessing mutably an immutable enum Fix rust-lang#39544.
Fix ICE when accessing mutably an immutable enum Fix rust-lang#39544.
I'm trying to use the
multipart
crate (v0.9) which has an enum and an impl:Calling the
#keep()
method in my own code results in an ICE:The text was updated successfully, but these errors were encountered: