File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/library/std/src/sync/mpsc/tests.rs b/library/std/src/sync/mpsc/tests.rs
2
+ index 82c52eb4fef..1e52a4a705c 100644
3
+ --- a/library/std/src/sync/mpsc/tests.rs
4
+ +++ b/library/std/src/sync/mpsc/tests.rs
5
+ @@ -713,10 +713,11 @@ fn issue_39364() {
6
+ let t = thread::spawn(move || {
7
+ thread::sleep(Duration::from_millis(300));
8
+ let _ = tx.clone();
9
+ - crate::mem::forget(tx);
10
+ + // Don't drop; hand back to caller.
11
+ + tx
12
+ });
13
+
14
+ let _ = rx.recv_timeout(Duration::from_millis(500));
15
+ - t.join().unwrap();
16
+ + let _tx = t.join().unwrap(); // delay dropping until end of test
17
+ let _ = rx.recv_timeout(Duration::from_millis(500));
18
+ }
Original file line number Diff line number Diff line change 1
- nightly-2022-11-10
1
+ nightly-2022-11-14
You can’t perform that action at this time.
0 commit comments