-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Improve wording of static_mut_ref #120964
Comments
@rustbot claim |
Also, the lint should probably be named |
Renaming the lint is not straightforward because of this PR #120676; I am not sure how it can be done. |
What does that PR have to do with it? When renaming a lint, remember to register it as a renamed lint. (Though I'm not sure if that will help with whatever issue you were running into.) |
I need to allow both lints What do you mean by register it as a renamed lint? |
We have the #[cfg_attr(bootstrap, allow(static_mut_ref))]
#[cfg_attr(not(bootstrap), allow(static_mut_refs))]
rust/compiler/rustc_lint/src/lib.rs Lines 313 to 326 in cf1096e
|
…lfJung Improve wording of `static_mut_ref` Close rust-lang#120964
…lfJung Improve wording of `static_mut_ref` Close rust-lang#120964
…lfJung Improve wording of `static_mut_ref` Close rust-lang#120964
…Jung Improve wording of `static_mut_ref` Close rust-lang#120964
…Jung Improve wording of `static_mut_ref` Close rust-lang#120964
This lint currently prints
The first line seems grammatically not entirely right to me. Shouldn't it say "in the 2024 edition"? And should it be "reference of" or "reference to"?
The second line doesn't quite capture the problem IMO. The issue is that the reference has lifetime
'static
, soCc @obeis
The text was updated successfully, but these errors were encountered: