mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
Merge branch 'tokio-1.18.x' into tokio-1.20.x
This commit is contained in:
+9
-1
@@ -134,6 +134,14 @@ This release fixes a bug in `Notified::enable`. ([#4747])
|
|||||||
[#4729]: https://github.com/tokio-rs/tokio/pull/4729
|
[#4729]: https://github.com/tokio-rs/tokio/pull/4729
|
||||||
[#4739]: https://github.com/tokio-rs/tokio/pull/4739
|
[#4739]: https://github.com/tokio-rs/tokio/pull/4739
|
||||||
|
|
||||||
|
# 1.18.5 (January 17, 2023)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- io: fix unsoundness in `ReadHalf::unsplit` ([#5375])
|
||||||
|
|
||||||
|
[#5375]: https://github.com/tokio-rs/tokio/pull/5375
|
||||||
|
|
||||||
# 1.18.4 (January 3, 2022)
|
# 1.18.4 (January 3, 2022)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@@ -270,7 +278,7 @@ performance improvements.
|
|||||||
- time: use bit manipulation instead of modulo to improve performance ([#4480])
|
- time: use bit manipulation instead of modulo to improve performance ([#4480])
|
||||||
- net: use `std::future::Ready` instead of our own `Ready` future ([#4271])
|
- net: use `std::future::Ready` instead of our own `Ready` future ([#4271])
|
||||||
- replace deprecated `atomic::spin_loop_hint` with `hint::spin_loop` ([#4491])
|
- replace deprecated `atomic::spin_loop_hint` with `hint::spin_loop` ([#4491])
|
||||||
- fix miri failures in intrusive linked lists ([#4397])
|
- fix miri failures in intrusive linked lists ([#4397])
|
||||||
|
|
||||||
### Documented
|
### Documented
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,10 @@ impl<T> ReadHalf<T> {
|
|||||||
/// This can be checked ahead of time by comparing the stream ID
|
/// This can be checked ahead of time by comparing the stream ID
|
||||||
/// of the two halves.
|
/// of the two halves.
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn unsplit(self, wr: WriteHalf<T>) -> T {
|
pub fn unsplit(self, wr: WriteHalf<T>) -> T
|
||||||
|
where
|
||||||
|
T: Unpin,
|
||||||
|
{
|
||||||
if self.is_pair_of(&wr) {
|
if self.is_pair_of(&wr) {
|
||||||
drop(wr);
|
drop(wr);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user