about summary refs log tree commit diff
path: root/compiler/rustc_thread_pool/src
AgeCommit message (Collapse)AuthorLines
2025-09-22Fix a dangling reference in `rustc_thread_pool`Josh Stone-2/+6
2025-08-26remove deprecated Error::description in implsMarijn Schouten-12/+3
2025-08-02Rollup merge of #144478 - joshtriplett:doc-code-formatting-prep, r=AmanieuSamuel Tardieu-3/+3
Improve formatting of doc code blocks We don't currently apply automatic formatting to doc comment code blocks. As a result, it has built up various idiosyncracies, which make such automatic formatting difficult. Some of those idiosyncracies also make things harder for human readers or other tools. This PR makes a few improvements to doc code formatting, in the hopes of making future automatic formatting easier, as well as in many cases providing net readability improvements. I would suggest reading each commit separately, as each commit contains one class of changes.
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-07-24fix up issues with internal compiler docs revealed by stricter lintbinarycat-1/+1
2025-06-28Correct comments.ywxt-2/+2
2025-06-28Restore to HashSetywxt-8/+9
Co-authored-by: Zoxc <zoxc32@gmail.com>
2025-06-28Add FIXMEs for those ignored tests.ywxt-0/+26
2025-06-28Add a comment for the `wait_for_jobs` function.ywxt-0/+2
Co-authored-by: Zoxc <zoxc32@gmail.com>
2025-06-28Only work-steal in the main loop for rustc_thread_poolywxt-109/+272
Co-authored-by: Zoxc <zoxc32@gmail.com>
2025-06-11Another round of tidy / warning fixesCelina G. Val-96/+101
2025-06-11Use `rustc_thread_pool` instead of `rustc-rayon-core`Celina G. Val-29/+29
2025-06-11Fix format and tidy for code moved from rayonCelina G. Val-297/+179
2025-06-11Move rayon-core to rustc_thread_pool files as isCelina G. Val-0/+7656
This commit literally copied the directory rayon-core from revision `5fadf44`. Link: https://github.com/rust-lang/rustc-rayon/tree/5fadf44/rayon-core