mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
dd8ec9c88d
Introduce `DynSend` and `DynSync` auto trait for parallel compiler part of parallel-rustc #101566 This PR introduces `DynSend / DynSync` trait and `FromDyn / IntoDyn` structure in rustc_data_structure::marker. `FromDyn` can dynamically check data structures for thread safety when switching to parallel environments (such as calling `par_for_each_in`). This happens only when `-Z threads > 1` so it doesn't affect single-threaded mode's compile efficiency. r? `@cjgillot` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |