-
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
Rename IoSlice(Mut)::advance to advance_slice and add IoSlice(Mut)::advance #85802
Conversation
To make way for a new IoSlice(Mut)::advance function that advances a single slice. Also changes the signature to accept a `&mut &mut [IoSlice]`, not returning anything. This will better match the future IoSlice::advance function.
Advance the internal cursor of a single slice.
(rust-highfive has picked a reviewer for you, use r? to override) |
r? @m-ou-se but looks okay to me at a cursory look (I have little context on these API changes though) |
@Nemo157, @seanmonstar, @mpdn, @Ekleog you've shown interested in #62726, perhaps one of you can give a review? |
@Thomasdezeeuw I'm sorry, but as of right now I don't really see the point in this API change, so I wouldn't be the right person to ask about that. As far as I can tell, the As for the |
I don't remember the exact reason, but when using
|
Is it possible that this memory is the one of implementing the function you're renaming into Sorry if this question is completely wrong, it's totally possible I'm just failing to see the right use! |
@Ekleog I'm not 100% sure anymore. There is https://github.com/rust-lang/futures-rs/blob/e21b5151a1dee1e53c792d2d5bee583633c6699d/futures-util/src/io/write_all_vectored.rs#L37, which uses I'm also fine with removing |
@m-ou-se do you have time to review this, or should I try to assign someone else? |
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.
Sorry for the delay. This looks good to me! Just two typos:
@bors r+ |
📌 Commit 5e7a8c6 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#85663 (Document Arc::from) - rust-lang#85802 (Rename IoSlice(Mut)::advance to advance_slice and add IoSlice(Mut)::advance) - rust-lang#85970 (Remove methods under Implementors on trait pages) - rust-lang#86340 (Use better error message for hard errors in CTFE) - rust-lang#86343 (Do not emit invalid suggestions on multiple mutable borrow errors) - rust-lang#86355 (Remove invalid suggestions for assoc consts on placeholder type error) - rust-lang#86389 (Make `sum()` and `product()` documentation hyperlinks refer to `Iterator` methods.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Thanks @m-ou-se |
Also changes the signature of
advance_slice
to accept a&mut &mut [IoSlice]
, not returning anything. This will better match theIoSlice::advance
function.Updates #62726.