about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-06-30 19:55:51 +0200
committerEric Huss <eric@huss.org>2022-07-05 11:05:04 -0700
commitf0f48ee8a46b700324f58d70120d7293dc3bb0d6 (patch)
treeabbd022ac804517f879f775a8914abdf4720ee0b /compiler/rustc_mir_transform/src
parent645c3229d72d1417146e0660c47daae59ba171b1 (diff)
downloadrust-f0f48ee8a46b700324f58d70120d7293dc3bb0d6.tar.gz
rust-f0f48ee8a46b700324f58d70120d7293dc3bb0d6.zip
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`````
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions