about summary refs log tree commit diff
path: root/compiler/rustc_thread_pool/src/scope
AgeCommit message (Collapse)AuthorLines
2025-07-25Improve and regularize comment placement in doc codeJosh Triplett-3/+3
Because doc code does not get automatically formatted, some doc code has creative placements of comments that automatic formatting can't handle. Reformat those comments to make the resulting code support standard Rust formatting without breaking; this is generally an improvement to readability as well. Some comments are not indented to the prevailing indent, and are instead aligned under some bit of code. Indent them to the prevailing indent, and put spaces *inside* the comments to align them with code. Some comments span several lines of code (which aren't the line the comment is about) and expect alignment. Reformat them into one comment not broken up by unrelated intervening code. Some comments are placed on the same line as an opening brace, placing them effectively inside the subsequent block, such that formatting would typically format them like a line of that block. Move those comments to attach them to what they apply to. Some comments are placed on the same line as a one-line braced block, effectively attaching them to the closing brace, even though they're about the code inside the block. Reformat to make sure the comment will stay on the same line as the code it's commenting.
2025-06-28Restore to HashSetywxt-8/+9
Co-authored-by: Zoxc <zoxc32@gmail.com>
2025-06-28Add FIXMEs for those ignored tests.ywxt-0/+11
2025-06-28Only work-steal in the main loop for rustc_thread_poolywxt-21/+72
Co-authored-by: Zoxc <zoxc32@gmail.com>
2025-06-11Another round of tidy / warning fixesCelina G. Val-13/+13
2025-06-11Use `rustc_thread_pool` instead of `rustc-rayon-core`Celina G. Val-8/+8
2025-06-11Fix format and tidy for code moved from rayonCelina G. Val-42/+27
2025-06-11Move rayon-core to rustc_thread_pool files as isCelina G. Val-0/+1405
This commit literally copied the directory rayon-core from revision `5fadf44`. Link: https://github.com/rust-lang/rustc-rayon/tree/5fadf44/rayon-core