about summary refs log tree commit diff
path: root/compiler/rustc_thread_pool
AgeCommit message (Collapse)AuthorLines
2025-09-22Fix a dangling reference in `rustc_thread_pool`Josh Stone-2/+6
2025-09-02Revert introduction of `[workspace.dependencies]`.Nicholas Nethercote-2/+2
This was done in #145740 and #145947. It is causing problems for people using r-a on anything that uses the rustc-dev rustup package, e.g. Miri, clippy. This repository has lots of submodules and subtrees and various different projects are carved out of pieces of it. It seems like `[workspace.dependencies]` will just be more trouble than it's worth.
2025-08-28Add `scoped-tls` to `[workspace.dependencies]`.Nicholas Nethercote-1/+1
2025-08-28Add `libc` to `[workspace.dependencies]`.Nicholas Nethercote-1/+1
2025-08-26remove deprecated Error::description in implsMarijn Schouten-12/+3
2025-08-04Drop `rust-version` from `rustc_thread_pool`Josh Stone-1/+0
The current `rust-version = "1.63"` was inherited from rayon, but it doesn't make sense to limit this in the compiler workspace. Having any setting at all has effects on tools like `cargo info` that try to infer the MSRV when the workspace itself doesn't specify it. Since we are the compiler, our only MSRV is whatever bootstrapping requires.
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-9/+9
Co-authored-by: Zoxc <zoxc32@gmail.com>
2025-06-28Add FIXMEs for those ignored tests.ywxt-0/+27
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-112/+279
Co-authored-by: Zoxc <zoxc32@gmail.com>
2025-06-16Apply suggestions from code reviewCelina G. Val-230/+1
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
2025-06-11Another round of tidy / warning fixesCelina G. Val-102/+119
2025-06-11Use `rustc_thread_pool` instead of `rustc-rayon-core`Celina G. Val-45/+39
2025-06-11Fix format and tidy for code moved from rayonCelina G. Val-328/+190
2025-06-11Move rayon-core to rustc_thread_pool files as isCelina G. Val-0/+8225
This commit literally copied the directory rayon-core from revision `5fadf44`. Link: https://github.com/rust-lang/rustc-rayon/tree/5fadf44/rayon-core