-
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 using const raw pointer cast for array size #52023
Comments
cc @varkor |
Even smaller and can be built on stable (not that it would matter, but you can rule out the
|
Actually, are those different errors? Nightly gives us
Stable:
or as these just different error messages for the same error? |
Yea these errors are resulting from the same issue, there were some recent changes that definitely would cause this change in the ICE. Anyway, seems easy enough to fix. We just need to emit the |
Fix ICE when using a pointer cast as array size Fixes rust-lang#52023. I'm not sure if the comment rust-lang#52023 (comment) suggested we also emit `E0080`, but just emitting `E0018` seems reasonable for now. r? @oli-obk
Fix ICE when using a pointer cast as array size Fixes #52023. I'm not sure if the comment #52023 (comment) suggested we also emit `E0080`, but just emitting `E0018` seems reasonable for now. r? @oli-obk
Code:
Error with
RUST_BACKTRACE=full
:The text was updated successfully, but these errors were encountered: