-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 the default for ExitStatus
#110863
Comments
Is this possible to currently do? Having checked out the linked issue it looks like it depends on |
Right, it needs #106425 to merge first. |
Alright 👍 . How does documenting work for a derived trait? |
You'd have to remove the derive and use manual |
You'd have to remove the derive and use manual impl Default blocks.
That ends up with the docs for what Default means lower in the rustdoc
page, next to the place where the impl and its methods appear. It
might be better to just document it in the doc comment for the struct.
|
Also just to check, It's Also, should I open a PR (that is on top of the existing PR to actually add the default), or wait until the other is merged? Done the changes locally already |
Also just to check, It's ExitCode::SUCCESS.into() right? success()
doesn't seem to be a method and doesn't seem to be being added by
that issue (or should I add that method?)
Sorry, I think that was me writing loosely. Yes, I mean te constant
SUCCESS I thijnk. You don't need to add anything.
Ian.
|
@rustbot claim |
Note #114593, which is a bit of a swamp. I think changing the docs can be done (at the cost of adding to the set of things which the docs claim to be true but which are false on those broken platforms) but changing the implementation ("and implement it that way") is blocked. |
I’ve already got a branch with this issue fixed on it - was waiting for the previous PR to merge and it now has. For some reason I forget to claim it though |
@rustbot claim |
It appears this has already been done - i mentioned a few comments back but I've already completed this - i was going to claim it but im awaiting an update on whether its already been finished |
We should document that
Default
forExitStatus
is "process reported successful termination", ie the result ofExitCode::success().into()
, and, implement it that way.Originally posted by @ijackson in #106425 (comment)
The text was updated successfully, but these errors were encountered: