Skip to content

Commit ff5e32d

Browse files
bors[bot]taiki-e
andauthored
Merge #897
897: Miri: Fix thread leak in WaitGroup doctest r=taiki-e a=taiki-e https://github.com/crossbeam-rs/crossbeam/runs/7849290051?check_suite_focus=true Co-authored-by: Taiki Endo <[email protected]>
2 parents 2d9e7e0 + a5a1e0c commit ff5e32d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,3 @@ members = [
7979
"crossbeam-skiplist",
8080
"crossbeam-utils",
8181
]
82-
83-
[patch.crates-io]
84-
# https://github.com/matklad/once_cell/pull/185
85-
once_cell = { git = "https://github.com/taiki-e/once_cell.git", branch = "provenance" }

crossbeam-utils/src/sync/wait_group.rs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ use std::fmt;
3939
///
4040
/// // Block until all threads have finished their work.
4141
/// wg.wait();
42+
/// # std::thread::sleep(std::time::Duration::from_millis(500)); // wait for background threads closed: https://github.com/rust-lang/miri/issues/1371
4243
/// ```
4344
///
4445
/// [`Barrier`]: std::sync::Barrier

0 commit comments

Comments
 (0)