Skip to content

Commit 38a9c6c

Browse files
committed
Merge branch 'tokio-1.20.x' into master
2 parents 06f1a60 + f3ce29a commit 38a9c6c

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

tokio/CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,16 @@ wasm32-wasi target is given unstable support for the `net` feature.
306306
[#4956]: https://github.com/tokio-rs/tokio/pull/4956
307307
[#4959]: https://github.com/tokio-rs/tokio/pull/4959
308308

309+
# 1.20.4 (January 17, 2023)
310+
311+
Forward ports 1.18.5 changes.
312+
313+
### Fixed
314+
315+
- io: fix unsoundness in `ReadHalf::unsplit` ([#5375])
316+
317+
[#5375]: https://github.com/tokio-rs/tokio/pull/5375
318+
309319
# 1.20.3 (January 3, 2022)
310320

311321
This release forward ports changes from 1.18.4.
@@ -442,6 +452,14 @@ This release fixes a bug in `Notified::enable`. ([#4747])
442452
[#4729]: https://github.com/tokio-rs/tokio/pull/4729
443453
[#4739]: https://github.com/tokio-rs/tokio/pull/4739
444454

455+
# 1.18.5 (January 17, 2023)
456+
457+
### Fixed
458+
459+
- io: fix unsoundness in `ReadHalf::unsplit` ([#5375])
460+
461+
[#5375]: https://github.com/tokio-rs/tokio/pull/5375
462+
445463
# 1.18.4 (January 3, 2022)
446464

447465
### Fixed
@@ -578,7 +596,7 @@ performance improvements.
578596
- time: use bit manipulation instead of modulo to improve performance ([#4480])
579597
- net: use `std::future::Ready` instead of our own `Ready` future ([#4271])
580598
- replace deprecated `atomic::spin_loop_hint` with `hint::spin_loop` ([#4491])
581-
- fix miri failures in intrusive linked lists ([#4397])
599+
- fix miri failures in intrusive linked lists ([#4397])
582600

583601
### Documented
584602

tokio/src/io/split.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ impl<T> ReadHalf<T> {
7575
/// This can be checked ahead of time by comparing the stream ID
7676
/// of the two halves.
7777
#[track_caller]
78-
pub fn unsplit(self, wr: WriteHalf<T>) -> T {
78+
pub fn unsplit(self, wr: WriteHalf<T>) -> T
79+
where
80+
T: Unpin,
81+
{
7982
if self.is_pair_of(&wr) {
8083
drop(wr);
8184

0 commit comments

Comments
 (0)