-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Compiler panicked unexpectedly on instantiation of struct parametrized by nested const generic exprs #94227
Comments
@jlogan03 have you tried building this with the latest version of nightly? Curious if it still shows up since 2021-12-31. |
@compiler-errors yes, it still shows up on the latest version
|
@jlogan03, did you run |
@compiler-errors right you are, looks like I managed to break my automation for updating. I still get an error, but it's a new one.
New error and backtrace
|
Using 1.87 nightly:
The example does not compile but there doesn't seem to be a problem with the compile, output is:
This does seem to be progress, but I am unsure as to whether the code should compile cleanly or if some or all the current errors are valid. Or if indeed the example code I downloaded is meant to use the version of "catnip" that cargo found when I added it. May be @jlogan03 could comment? |
The remaining errors look valid - the versions of catnip published to cargo have diverged somewhat from the version on the original ticket. Here's how it runs with latest nightly on the exact version of catnip from the original ticket - the compiler no longer panics, and it produces some legitimate and helpful errors instead, mostly related to the incomplete state of the project at that point in time. I think we're good to close this ticket
|
Code
Offending line here: https://github.com/jlogan03/catnip/blob/f7ff6dc5fb3ac36f3c06e2cb81f842b0b34e3eed/catnip/examples/packet.rs#L55
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: