-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add missing checks for doc(cfg_hide(...))
#102954
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki |
☔ The latest upstream changes (presumably #102948) made this pull request unmergeable. Please resolve the merge conflicts. |
f855c7d
to
656dadf
Compare
Fixed the conflict. |
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.
before stabilizing we probably should support it on items too, though
@@ -934,6 +934,22 @@ impl CheckAttrVisitor<'_> { | |||
is_valid | |||
} | |||
|
|||
/// Check that the `#![doc(cfg_hide(...))]` attribute is well formatted. Returns `true` if |
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.
issue: please document what the rules for it being well formatted are
656dadf
to
6f0c247
Compare
I updated the docs. Allowing it on items sounds like a good idea even though I'm not completely sure why you would want to hide a |
@bors r+ @GuillaumeGomez because you're using internal cfgs or something weird for your module. This is quite common. |
…s, r=Manishearth Add missing checks for `doc(cfg_hide(...))` Part of rust-lang#43781. The `doc(cfg_hide(...))` attribute can only be used at the crate level and takes a list of attributes as argument. r? `@Manishearth`
…s, r=Manishearth Add missing checks for `doc(cfg_hide(...))` Part of rust-lang#43781. The `doc(cfg_hide(...))` attribute can only be used at the crate level and takes a list of attributes as argument. r? ``@Manishearth``
Rollup of 6 pull requests Successful merges: - rust-lang#102773 (Use semaphores for thread parking on Apple platforms) - rust-lang#102884 (resolve: Some cleanup, asserts and tests for lifetime ribs) - rust-lang#102954 (Add missing checks for `doc(cfg_hide(...))`) - rust-lang#102998 (Drop temporaries created in a condition, even if it's a let chain) - rust-lang#103003 (Fix `suggest_floating_point_literal` ICE) - rust-lang#103041 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Part of #43781.
The
doc(cfg_hide(...))
attribute can only be used at the crate level and takes a list of attributes as argument.r? @Manishearth