rust/library
Matthias Krüger ebecc13106
Rollup merge of #98503 - RalfJung:scope-race, r=m-ou-se
fix data race in thread::scope

Puts the `ScopeData` into an `Arc` so it sticks around as long as we need it.
This means one extra `Arc::clone` per spawned scoped thread, which I hope is fine.

Fixes https://github.com/rust-lang/rust/issues/98498
r? `````@m-ou-se`````
2022-06-30 19:55:51 +02:00
..
2022-06-03 17:16:41 -04:00
2022-05-27 07:36:17 -04:00
2022-06-28 09:54:29 -04:00
2022-06-03 17:16:41 -04:00
2022-06-03 17:16:41 -04:00