Uh oh!
There was an error while loading. Please reload this page.
Add support for tuple struct field documentation - #87451
Conversation
jyn514
commented
Jul 25, 2021
This closes #42615, right? I'm not sure how the --show-coverage issue is related. |
Uh oh!
There was an error while loading. Please reload this page.
GuillaumeGomez
commented
Jul 25, 2021
Absolutely! As for the --show-coverage issue: it's because it complains about missing documentation on tuple structs' fields which currently can't be documented. ;) |
3cdd340 to
c987faeCompareGuillaumeGomez
commented
Jul 25, 2021
Added support for tuple structs in enums as well. Great catch @jyn514 ! |
This comment has been minimized.
This comment has been minimized.
c987fae to
52cb21bCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
52cb21b to
74e20ecCompareGuillaumeGomez
commented
Jul 26, 2021
Updated! |
This comment has been minimized.
This comment has been minimized.
74e20ec to
fbf78e1CompareGuillaumeGomez
commented
Jul 26, 2021
And of course I forgot rustfmt... |
jyn514
commented
Jul 27, 2021
r=me with the comment added :) |
…uple for tuple structs in enums
GuillaumeGomez
commented
Jul 27, 2021
@bors: r=jyn514 |
bors
commented
Jul 27, 2021
📌 Commit c4aa735 has been approved by |
…oc, r=jyn514 Add support for tuple struct field documentation Fixesrust-lang#42615. This is rust-lang#80320 updated to new codebase and with added tests. Part of rust-lang#83255. cc `@camelid` (since you were involved on the original PR). r? `@jyn514`
…oc, r=jyn514 Add support for tuple struct field documentation Fixesrust-lang#42615. This is rust-lang#80320 updated to new codebase and with added tests. Part of rust-lang#83255. cc ``@camelid`` (since you were involved on the original PR). r? ``@jyn514``
Rollup of 10 pull requests Successful merges: - rust-lang#81050 (Stabilize core::task::ready!) - rust-lang#81363 (Remove P: Unpin bound on impl Future for Pin) - rust-lang#86839 (Add doc aliases to fs.rs) - rust-lang#87435 (fix example code for E0617) - rust-lang#87451 (Add support for tuple struct field documentation) - rust-lang#87491 (Integrate context into the memorial to Anna) - rust-lang#87521 (Add long explanation for E0498) - rust-lang#87527 (Don't run MIR unsafeck at all when using `-Zthir-unsafeck`) - rust-lang#87550 (Add `CI_ONLY_WHEN_CHANNEL` and run `x86_64-gnu-stable` only on nightly) - rust-lang#87565 (Use backticks when referring to `core::future::Ready` in panic message) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
| // (even for a tuple struct variant!), it's simpler to just store it as a | ||
| // `Variant::Struct` instead of a `Variant::Tuple` (otherwise it would force us to make | ||
| // a lot of changes when rendering them to generate the name as well). | ||
| hir::VariantData::Tuple(..) => Variant::Struct(self.clean(cx)), |
There was a problem hiding this comment.
Did this cause #87887?
It seems like tuple variants no longer exist in the outputted json, but shouldn't tuple variants be described as tuple variants?
…lbini Add 1.56.0 release notes Notable things: * Rustdoc section currently absent, for lack of things to call out that I could find. It seems like rust-lang#87451 is the only potential candidate, but that seems like more of a bugfix and doesn't seem to warrant inclusion to me. But we can add it if desired. As with the 1.55.0 release notes, my intent is to leave this open for approximately 1-2 weeks at the early part of the cycle, and then merge it in (after fixing any feedback). Further iteration can happen in subsequent issues (and PRs). [Rendered](https://github.com/Mark-Simulacrum/rust/blob/relnotes/RELEASES.md)
…lbini Add 1.56.0 release notes Notable things: * Rustdoc section currently absent, for lack of things to call out that I could find. It seems like rust-lang#87451 is the only potential candidate, but that seems like more of a bugfix and doesn't seem to warrant inclusion to me. But we can add it if desired. As with the 1.55.0 release notes, my intent is to leave this open for approximately 1-2 weeks at the early part of the cycle, and then merge it in (after fixing any feedback). Further iteration can happen in subsequent issues (and PRs). [Rendered](https://github.com/Mark-Simulacrum/rust/blob/relnotes/RELEASES.md)
Fixes#42615.
This is #80320 updated to new codebase and with added tests.
Part of #83255.
cc @camelid (since you were involved on the original PR).
r? @jyn514