Uh oh!
There was an error while loading. Please reload this page.
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
commented
May 29, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
Mark-Simulacrum
commented
May 29, 2021
r? @m-ou-se but looks okay to me at a cursory look (I have little context on these API changes though) |
Thomasdezeeuw
commented
Jun 4, 2021
@Nemo157, @seanmonstar, @mpdn, @Ekleog you've shown interested in #62726, perhaps one of you can give a review? |
Uh oh!
There was an error while loading. Please reload this page.
Ekleog
commented
Jun 4, 2021
@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 |
Thomasdezeeuw
commented
Jun 5, 2021
I don't remember the exact reason, but when using
|
Ekleog
commented
Jun 5, 2021
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! |
Thomasdezeeuw
commented
Jun 6, 2021
@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 |
Thomasdezeeuw
commented
Jun 10, 2021
@m-ou-se do you have time to review this, or should I try to assign someone else? |
m-ou-se
left a comment
There was a problem hiding this comment.
Sorry for the delay. This looks good to me! Just two typos:
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
m-ou-se
commented
Jun 17, 2021
@bors r+ |
bors
commented
Jun 17, 2021
📌 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
Thomasdezeeuw
commented
Jun 17, 2021
Thanks @m-ou-se |
…ou-se Rename IoSlice(Mut)::advance to advance_slice and add IoSlice(Mut)::advance Also changes the signature of `advance_slice` to accept a `&mut &mut [IoSlice]`, not returning anything. This will better match the `IoSlice::advance` function. Updates rust-lang#62726.
Also changes the signature of
advance_sliceto accept a&mut &mut [IoSlice], not returning anything. This will better match theIoSlice::advancefunction.Updates #62726.