Skip to content
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

Merged
merged 2 commits into from
Oct 6, 2014

Conversation

ftxqxd
Copy link
Contributor

@ftxqxd ftxqxd commented Oct 4, 2014

Closes #17773.

@@ -22,24 +22,25 @@
/// # Example
///
/// ```{.rust}
/// # #![allow(non_uppercase_statics)]
Copy link
Member

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.

@ftxqxd ftxqxd force-pushed the bitflags-lints branch 2 times, most recently from 5fb1bf1 to 9663398 Compare October 6, 2014 03:11
@ftxqxd
Copy link
Contributor Author

ftxqxd commented Oct 6, 2014

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,
Copy link
Member

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, done.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

ftxqxd added 2 commits October 6, 2014 16:43
For example, this renames `GroupRWX` to `GROUP_RWX`, and deprecates the old
name. Code using these statics should be updated accordingly.
bors added a commit that referenced this pull request Oct 6, 2014
@bors bors closed this Oct 6, 2014
@bors bors merged commit 8e58771 into rust-lang:master Oct 6, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 13, 2024
…r=Veykril

feat: Implement diagnostic for `await` outside of `async`

Closes rust-lang#17781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants