Files
rust/compiler/rustc_data_structures/src
bors dd8ec9c88d Auto merge of #107586 - SparrowLii:parallel-query, r=cjgillot
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`
2023-05-13 13:47:53 +00:00
..
2023-05-06 09:34:55 +08:00
2023-04-14 13:04:58 +00:00
2023-04-18 14:13:19 -04:00
2023-05-06 10:23:51 +08:00
2023-04-09 23:22:14 +02:00
2023-05-06 09:34:53 +08:00
2023-04-20 19:54:10 +00:00
2023-04-09 23:22:14 +02:00