-
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
Remove the #[allow(non_uppercase_statics)] attribute from inside bitflags! #17781
Conversation
@@ -22,24 +22,25 @@ | |||
/// # Example | |||
/// | |||
/// ```{.rust} | |||
/// # #![allow(non_uppercase_statics)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still needed? It looks like some of the flags were also changed.
5fb1bf1
to
9663398
Compare
Comments addressed. |
|
||
#[doc = "All possible permissions enabled."] | ||
static AllPermissions = UserRWX.bits | GroupRWX.bits | OtherRWX.bits, | ||
static ALL_PERMISSIONS = USER_RWX.bits | GROUP_RWX.bits | OTHER_RWX.bits, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ease the migration path, could you keep the old statics, but mark them as #[deprecated]
? Other than that this looks great to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
For example, this renames `GroupRWX` to `GROUP_RWX`, and deprecates the old name. Code using these statics should be updated accordingly.
…r=Veykril feat: Implement diagnostic for `await` outside of `async` Closes rust-lang#17781
Closes #17773.