Uh oh!
There was an error while loading. Please reload this page.
Remove unnecessary Send bound - #111134
Conversation
rustbot
commented
May 3, 2023
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @thomcc (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 (
|
rustbot
commented
May 3, 2023
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
thomcc
commented
May 5, 2023
This seems clearly worth doing, but since it's an insta-stable change to a public API, it needs libs-api sign-off (maybe FCP). r? @dtolnay |
dtolnay
commented
May 5, 2023
@rust-lang/libs-api: I agree with @thomcc that this is an obvious change. Removes the
This used to be necessary prior to #21312 / #23799 and the impls just haven't gotten updated since then. |
Team member @dtolnay has proposed to merge 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. |
rfcbot
commented
May 15, 2023
🔔 This is now entering its final comment period, as per the review above. 🔔 |
dtolnay
commented
May 15, 2023
@bors r+ |
bors
commented
May 15, 2023
…error, r=dtolnay Remove unnecessary Send bound Hi, While working on a [PR on Tokio](tokio-rs/tokio#5666), I took inspiration from the std channel mpsc and stumbled on a `Send` bound for a `Error` impl. Tokio's maintainer `@Darksonn` pointed out to me that `Error` used to required the `Send` bound long time ago (here rust-lang#23541). In the meantime, the `Send` bound `Error` got removed (see rust-lang#21312 and rust-lang#23799). So here a PR to removed this bound for `SendError<T>`, `TrySendError<T>` and `SendTimeoutError<T>`.
bors
commented
May 16, 2023
bors
commented
May 16, 2023
☀️ Test successful - checks-actions |
rust-timer
commented
May 16, 2023
Finished benchmarking commit (3ea9ad5): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 642.879s -> 641.794s (-0.17%) |
Hi,
While working on a PR on Tokio, I took inspiration from the std channel mpsc and stumbled on a
Sendbound for aErrorimpl.Tokio's maintainer @Darksonn pointed out to me that
Errorused to required theSendbound long time ago (here #23541).In the meantime, the
SendboundErrorgot removed (see #21312 and #23799).So here a PR to removed this bound for
SendError<T>,TrySendError<T>andSendTimeoutError<T>.