-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add a default
flag for enum documentation
#115575
Conversation
Failed to set assignee to
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @fmease (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
r? @fmease |
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.
Thanks for your PR! I have a couple of suggestions regarding the implementation.
However, I'm not sure if we want to pursue this feature at all as I've noted in the relevant issue.
Let's first hear what the others have to say over there in reply to my comment.
If you mean you don't know how to manually test (i.e., run and check) the code, I can only recommend https://rustc-dev-guide.rust-lang.org (search for rustdoc and If you would like to know how to write a test, check out the tests in |
@rustbot label -S-waiting-on-review S-waiting-on-team |
I'll add this to the rustdoc team meeting list to be discussed in next meeting. EDIT: Mostly for the UI part. |
☔ The latest upstream changes (presumably #114855) made this pull request unmergeable. Please resolve the merge conflicts. |
Sorry for the delay. The rustdoc team seems to be in favor of showing this information (Zulip). They're not in favor of showing Could you rebase your PR, address my old review comments and adapt to the suggested format? |
@fmease to be on the same page... you mean something like the 👎🏼 section in the picture below: |
Yes, exactly! Just to make sure: @Manishearth, is this ^ what you meant by “chip” on Zulip? |
I vote for 2 or 3. |
Personally speaking I like option 3 the most :) |
3 > 1 > 2 for me, strong preference for 3 |
This comment was marked as outdated.
This comment was marked as outdated.
Team member @notriddle has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns: Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
@rfcbot concern usefulness I think this is an interesting feature, but I'm concerned about its usefulness and its possibility of causing confusion. The chip only appears on variants that are marked with the relatively new |
Also an important note about getting the default enum variant from the And finally, the |
I used to weakly support this change, but after hearing camelid's argument, changed my mind and retracted my checkmark. We don't need built-in support for stuff like this.
|
It seems like the majority of team members has changed their opinion towards closing this PR. So far, nobody has put forward any arguments against the concern (which agrees with my initial sentiment). fcp-close then? |
@notriddle proposal cancelled. |
Team member @notriddle has proposed to close this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to close, 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. |
Closing then. Thanks again for bringing this to our attention @omid ! |
fixes #115438
Disclaimer: It's my first PR, I don't know the regulation here yet 🙏🏼
I'm not sure if there are some styling standards, who's responsible for that and also I couldn't find tests for enum docs, for example if an enum is non_exhaustive or not.
I also don't know how I can test the code I've written, in general!