-
Notifications
You must be signed in to change notification settings - Fork 13k
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
clarify what static
means
#9962
Milestone
Comments
Nominating. |
1.0 backcompat |
Is there anything to do here beyond significant addresses (#8958)? |
Nominating for closing. This doesn't appear actionable. |
Closing as nonactionable beyond #8958. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Dec 17, 2022
Fix rust-lang#9958 This PR fixes rust-lang#9958. In order to fix the issue, the lint will now peel reference operators and enclose the expression with parentheses when necessary. changelog: [`comparison_to_empty`]: Peel deref operators in suggestions when necessary
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are these compile-time constants? If they are, we need to drop support for foreign constants. If they aren't, this code is going to need a rewrite because it makes the assumption that any static is a known constant.
See #9866 and #9909 for some of the issues caused by this being unspecified and not handled correctly.
The text was updated successfully, but these errors were encountered: