Open hlbarber opened 1 year ago
A corresponding change can be made to TryStream
.
See https://github.com/rust-lang/futures-rs/issues/2508 for the previous discussion.
This would require an MSRV bump to rustc
version 1.52.
As mentioned in https://github.com/rust-lang/futures-rs/issues/2508#issuecomment-942407374, https://github.com/rust-lang/futures-rs/pull/2344 will unblock this.
The obstruction to
originally stated in https://github.com/rust-lang/futures-rs/issues/1776#issuecomment-518307092 no longer exists.
This PR provides an insight into what taking such a change now would look like now.
In addition to the minimal change to the
TryFuture
trait seen in a88e11011e33df8e6345b1a8527447f3dd5399c5, we additionally:IntoFuture
from the trait bounds as it's no longer needed 60bcaed15e76c7a1b585cb4b39ae0a5fc671a6e7try_poll
as it's now redundant 75e53ff6a9891471714330207fde9c02986f6cbaIntoFuture
entirely 4587897773ed4792eaaa656ceb3589ebe2667f14TryFuture
as any attempted implementation would be met with a conflicting implementation from the blanket implementation 9e15e25d1cab668a0ae03cdd92fccfee90d9b2ad