Uh oh!
There was an error while loading. Please reload this page.
Stabilize cfg(doc) - #61351
Conversation
There was a problem hiding this comment.
How does this cope with functions that have -> impl Trait where ! (because of loop {}) does not implement Trait?
There was a problem hiding this comment.
There is currently an exception for -> impl Trait:
rust/src/librustc_interface/util.rs
Lines 668 to 673 in 26451ef
This means that #[doc(cfg(...))] doesn't work for those functions yet so I don't think this feature is ready for stabilization yet.
There was a problem hiding this comment.
// * `impl Trait`, due to issue #43869 that functions returning impl Trait cannot be diverging.// Solving this may require `!` to implement every trait, which relies on the an even more// ambitious form of the closed RFC #1637. See also [#34511].This bit seems unlikely from my POV as a T-Lang member... cc @rust-lang/lang if y'all have thoughts...
There was a problem hiding this comment.
I'm with @ollie27 here, i had assumed the reason we couldn't stabilize doc(cfg) yet was because the implementation didn't work for all situations.
rust-highfive
commented
May 30, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
There was a problem hiding this comment.
Unsure if this implementation detail needs to be exposed.
There was a problem hiding this comment.
I found it interesting so I didn't remove it. :)
117c244 to
cfb63d8CompareGuillaumeGomez
commented
May 30, 2019
Forgot to remove a feature test. Updated. |
Manishearth
commented
May 30, 2019
@bors r+ |
bors
commented
May 30, 2019
📌 Commit cfb63d8beff02c913d80f250887cb6ca8fa53422 has been approved by |
Centril
commented
May 30, 2019
@bors r- There's an ongoing discussion in #61351 (comment) and a T-rustdoc team member who things this is not ready to stabilize yet. |
rust-highfive
commented
May 30, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
QuietMisdreavus
commented
May 31, 2019
I'm against stabilizing #[cfg(any(rustdoc, windows))]#[doc(cfg(windows))]pubfnmy_handle() -> winapi::shared::ntdef::HANDLE{ ...}We currently don't have a way to handle this code in rustdoc if it's being compiled on non-windows targets, because the ...however, i would like to stabilize |
GuillaumeGomez
commented
Jun 1, 2019
I initially wanted to have only |
a33e4e4 to
135e5f3Comparerust-highfive
commented
Jun 1, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
…c, r=QuietMisdreavus rename cfg(rustdoc) into cfg(doc) Needed by rust-lang#61351 r? @QuietMisdreavus
…c, r=QuietMisdreavus rename cfg(rustdoc) into cfg(doc) Needed by rust-lang#61351 r? @QuietMisdreavus
…c, r=QuietMisdreavus rename cfg(rustdoc) into cfg(doc) Needed by rust-lang#61351 r? @QuietMisdreavus
bors
commented
Nov 13, 2019
☔ The latest upstream changes (presumably #66366) made this pull request unmergeable. Please resolve the merge conflicts. |
2ddb674 to
c8985deCompareQuietMisdreavus
commented
Nov 13, 2019
rfcbot
commented
Nov 13, 2019
🔔 This is now entering its final comment period, as per the review above. 🔔 |
bors
commented
Nov 14, 2019
☔ The latest upstream changes (presumably #66211) made this pull request unmergeable. Please resolve the merge conflicts. |
c8985de to
0d7a7b5Comparerfcbot
commented
Nov 23, 2019
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. The RFC will be merged soon. |
GuillaumeGomez
commented
Nov 23, 2019
@bors: r=QuietMisdreavus |
bors
commented
Nov 23, 2019
📌 Commit 0d7a7b5 has been approved by |
…c, r=QuietMisdreavus Stabilize cfg(doc) cc rust-lang#43781.
Rollup of 5 pull requests Successful merges: - #61351 (Stabilize cfg(doc)) - #66539 (Point at type in `let` assignment on type errors) - #66655 (rustdoc: Mark `--extern-private` as unstable) - #66657 (rustdoc: Don't panic when failing to write .lock file) - #66673 (Move def collector from `rustc` to `rustc_resolve`) Failed merges: r? @ghost
bors
commented
Nov 24, 2019
☔ The latest upstream changes (presumably #66680) made this pull request unmergeable. Please resolve the merge conflicts. |
cc #43781.