-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Document From::from
impls
#137330
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
Document From::from
impls
#137330
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) some time within the next two weeks.
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 (S-waiting-on-review
and S-waiting-on-author
) stays updated, invoking these commands when appropriate:
@rustbot author
: the review is finished, PR author should check the comments and take action accordingly@rustbot review
: the author is ready for a review, this PR will be queued again in the reviewer's queue
The Miri subtree was changed
cc @rust-lang/miri
Portable SIMD is developed in its own repository. If possible, consider making this change to rust-lang/portable-simd instead.
cc @calebzulawski, @programmerjake
rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.
cc @rust-lang/rust-analyzer
Some changes occurred in src/tools/clippy
cc @rust-lang/clippy
From::from
impls (追記ここまで)
@rustbot label A-docs C-enhancement T-libs-api
Should I move Portable SIMD and rust-analyzer changes even though they are small?
This comment has been minimized.
This comment has been minimized.
It is generally a good idea to split up large changes. :) You changed a whole bunch of files in rust-analyzer, so yeah that should be split. Miri and clippy have fewer changes, but the fact that there are any changes at all there still contradicts the PR description.
It's too late now, but the best strategy for PRs like this is to start with just a few files, e.g. just core
, take the review feedback, and then apply that to the next PRs. That avoids having to re-do large amounts of work when there is overarching feedback.
The Miri subtree was changed
cc @rust-lang/miri
Some changes occurred in src/tools/clippy
cc @rust-lang/clippy
Portable SIMD is developed in its own repository. If possible, consider making this change to rust-lang/portable-simd instead.
cc @calebzulawski, @programmerjake
rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.
cc @rust-lang/rust-analyzer
My mistake, I will revert the rust-analyzer changes.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
68a5648
to
d5de4c6
Compare
This comment has been minimized.
This comment has been minimized.
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.
This PR requires a lot of changes, I did not get far with reviews, but a lot of the doc comments only explain the body in its rawest form. I feel like fully reviewing this just makes the reviewer do the work of documenting things, so it may be easier to just write PRs with documentation.
Also please disclose whether you generated this documentation, even just partially or as an initial thing that you edited.
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.
Remove comments on:
- Obvious/self explanatory conversions. These comments are redundant with the signature of the method.
- Internal/private types. These do not need rustdocs.
- Platform specific code. These do not need rustdocs.
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.
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.
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.
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.
Co-authored-by: Sky <sky@sky9.dev>
@Sky9x Thank you for the suggestions.
Co-authored-by: Sky <sky@sky9.dev>
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.
Co-authored-by: Sky <sky@sky9.dev>
@Sky9x had several suggestions that were reasonable to act on but were not taken. I do not understand why they were skipped. I fear you are trying to use the GitHub UI for this entire process, making suggestions to yourself and then committing them. That is about to become very complicated for you... now. I cannot approve this without it being rebase-squashed.
@rustbot author
Reminder, once the PR becomes ready for a review, use @rustbot ready
.
There may need to be changes even after that, but I don't think we'll successfully navigate the rest of this review if you insist on making every single change via a suggestion to yourself in the GitHub UI. I am sorry, it simply was not designed for use at the intensity you are giving it.
I have gain quite a bit of experience with PR's, I will rethink my strategy and stop using the GitHub UI. Thank you for the advice.
☔ The latest upstream changes (presumably #137944) made this pull request unmergeable. Please resolve the merge conflicts.
@TimTheBig any updates on this?
@TimTheBig any updates on this?
I'm very busy right now but I plan to finish this once I have some free time
This resolves #51430 by documenting all
from
impls in lib std and core.I still need someone to look over a few of the comments to see if the style is correct.