about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-08-26Move `riscv64-gc-unknown-linux-musl` from Tier 2 with Host tools to Tier 2Jakub Beránek-1/+1
It is not shipped with host tools, so it was located in the wrong group.
2025-08-26fix: Render continuation between no source labelsScott Schafer-20/+21
2025-08-26fix: Add col separator before secondary messages with no sourceScott Schafer-0/+87
2025-08-26fix: Don't add an end column separator after a file with no sourceScott Schafer-23/+20
2025-08-27stop returning errors when format foreign has trailing dollarTakayuki Maeda-1/+21
2025-08-26Fix typo in commentTobias Stoeckmann-1/+1
Turn "any heap allocators" into "any heap allocator".
2025-08-26Preserve `unsafe` blocks in `option_map_unit` suggestionSamuel Tardieu-9/+48
2025-08-26Enable building/disting standard library in stage 0Jakub Beránek-26/+79
2025-08-26Auto merge of #145890 - GuillaumeGomez:subtree-update_cg_gcc_2025-08-26, ↵bors-60/+76
r=GuillaumeGomez GCC backend subtree update cc `@antoyo` r? ghost
2025-08-26In highlight_related, when on an unsafe block, don't highlight unsafe ↵Chayim Refael Friedman-10/+44
operations of other unsafe blocks
2025-08-26Allow `--print=crate-root-lint-levels` (#15567)llogiq-1/+2
rust-lang/rust-clippy#13468 delegated all `--print` requests to `rustc`; this PR adds an exception to `crate-root-lint-levels` (rust-lang/rust#139180), i.e.: ``` $ rustc -Zunstable-options --print=crate-root-lint-levels /dev/null | wc -l 230 $ clippy-driver -Zunstable-options --print=crate-root-lint-levels /dev/null | wc -l 230 $ cargo run --bin clippy-driver -- -Zunstable-options --print=crate-root-lint-levels /dev/null | wc -l 1020 ``` So as to have a way to print all Clippy lint levels in a machine-readable format. ---- changelog: none
2025-08-26Merge pull request #20545 from ChayimFriedman2/ns-foreignLaurențiu Nicola-7/+4
fix: Remove `SolverDefId::ForeignId`
2025-08-26Merge pull request #2554 from ali90h/clarify-keep-branch-up-to-datejyn-5/+3
contributing: clarify when to update a branch vs avoid during review
2025-08-26Allow `--print=crate-root-lint-levels`Lieselotte-1/+2
2025-08-26contributing: restore tests/intro.md link; avoid 'this repo' wordingAli Nazzal-2/+2
2025-08-26contributing: clarify when to update a branch vs avoid during reviewAli Nazzal-6/+4
2025-08-26Remove `SolverDefId::ForeignId`Chayim Refael Friedman-7/+4
Replace it with normal `SolverDefId::TypeAliasId`. The split caused a very funny bug where code was getting `TypeAliasId` where it expected `ForeignId`, because `TypeAliasId` had a `From` impl from `hir_def::TypeAliasId` and `ForeignId` had not, plus a careless `into()`. I could've fixed this specific bug but opted to remove the split instead; currently, it just provides more room for bugs, as we don't have typed IDs for the solver anyway, and even when we'll have (hopefully), that doesn't seem like a very useful distinction, for example in hir-def foreign types are just `TypeAliasId` with some flags. Constructing a test for this isn't trivial; the trivial test (creating a foreign type, even proving a trait bound for it) fails to fail before the change, probably because we don't use the new solver everywhere yet so we don't trigger this specific code path.
2025-08-26Comment on intentional field orderDaria Sukhonina-0/+3
2025-08-26Update GCC submoduleGuillaume Gomez-0/+0
2025-08-26Enable clippy::panic in const contexts (#15565)Samuel Tardieu-17/+50
Fixes rust-lang/rust-clippy#15564. changelog: [`cargo::panic`]: Enabled to run in `const` contexts
2025-08-26Ensure the coordinator thread terminates firstDaria Sukhonina-2/+2
2025-08-26Enable clippy::panic in const contextsYoh Deadfall-17/+50
2025-08-26Fix sync conflictGuillaume Gomez-1/+1
2025-08-26Merge commit 'feb42827f11a7ae241ceecc81e9ae556fb6ba214' into ↵Guillaume Gomez-61/+77
subtree-update_cg_gcc_2025-08-26
2025-08-26Update to LLVM 21.1.0Nikita Popov-0/+0
2025-08-26bootstrap: Make `default_codegen_backend` return `&CodegenBackendKind` ↵Guillaume Gomez-12/+6
instead of an `Option`
2025-08-26bootstrap: error early if any `codegen-backends` is set to `[]`Guillaume Gomez-0/+4
2025-08-26Auto merge of #145886 - GuillaumeGomez:rollup-9qv7jhv, r=GuillaumeGomezbors-445/+486
Rollup of 11 pull requests Successful merges: - rust-lang/rust#144373 (remove deprecated Error::description in impls) - rust-lang/rust#144551 (Add aarch64_be-unknown-linux-musl target) - rust-lang/rust#145076 (Add new Tier-3 target: riscv64a23-unknown-linux-gnu) - rust-lang/rust#145481 (Add parentheses for closure when suggesting calling closure) - rust-lang/rust#145596 (Losslessly optimize PNG files) - rust-lang/rust#145615 (Fix doc of `std::os::windows::io::BorrowedSocket::borrow_raw`) - rust-lang/rust#145841 (Always build miri for the host in `x run miri`) - rust-lang/rust#145861 (bootstrap: vendor `clippy_test_deps` too) - rust-lang/rust#145863 (formatting_options: Make all methods `const`) - rust-lang/rust#145867 (cg_llvm: Assert that LLVM range-attribute values don't exceed 128 bits) - rust-lang/rust#145875 (Make bootstrap command caching opt-in) r? `@ghost` `@rustbot` modify labels: rollup
2025-08-27fix: Prevent invalid transformation in 'Replace match with if let' assistsgasho-1/+23
2025-08-26platform-support: Fix LoongArch32 host columnWANG Rui-2/+2
2025-08-26Rollup merge of #145875 - Kobzol:bootstrap-caching, r=jieyouxuGuillaume Gomez-17/+30
Make bootstrap command caching opt-in It was opt-out before, which was causing some really hard to debug issues. CC `@Shourya742` r? `@jieyouxu`
2025-08-26Rollup merge of #145867 - Zalathar:range-attr, r=nikicGuillaume Gomez-11/+30
cg_llvm: Assert that LLVM range-attribute values don't exceed 128 bits The underlying implementation of `LLVMCreateConstantRangeAttribute` assumes that each of `LowerWords` and `UpperWords` points to enough u64 values to define an integer of the specified bit-length, and will encounter UB if that is not the case. Our safe wrapper function always passes pointers to `[u64; 2]` arrays, regardless of the bit-length specified. That's fine in practice, because scalar primitives never exceed 128 bits, but it is technically a soundness hole in a safe function. We can close the soundness hole by explicitly asserting `size_bits <= 128`. This is effectively just a stricter version of the existing check that the value must be small enough to fit in `c_uint`. --- This is a narrower version of the fix in rust-lang/rust#145846.
2025-08-26Rollup merge of #145863 - EliasHolzmann:formatting_options_20250825, r=m-ou-seGuillaume Gomez-11/+11
formatting_options: Make all methods `const` Related to rust-lang/rust#118117. Having `const fn`s that take a `mut &` was unstable until Rust 1.83 (see rust-lang/rust#129195). Because of this, not all methods on `FormattingOptions` were implemented as `const`. As this has been stabilized now, there is no reason not to have all methods `const`. Thanks to `@Ternvein` for bringing this to my attention (see [1]). r? `@m-ou-se` (As you were the reviewer for the original implementation – feel free to reroll if you are busy or if you aren't interested) [1]: https://github.com/rust-lang/rust/issues/118117#issuecomment-2687470635
2025-08-26Rollup merge of #145861 - cuviper:vendor-clippy, r=KobzolGuillaume Gomez-0/+1
bootstrap: vendor `clippy_test_deps` too This internal crate explicitly separates itself from the `rustc` workspace, but it is needed for `./x test clippy` to work, including its dependencies when building from a vendored `rustc-src` tarball.
2025-08-26Rollup merge of #145841 - Kobzol:fix-miri-run, r=jieyouxuGuillaume Gomez-17/+56
Always build miri for the host in `x run miri` Previously we were building Miri for the passed `--target`, which was wrong. Fixes: https://github.com/rust-lang/rust/issues/145839 r? `@jieyouxu`
2025-08-26Rollup merge of #145615 - lorenzleutgeb:socket-doc, r=ChrisDentonGuillaume Gomez-1/+1
Fix doc of `std::os::windows::io::BorrowedSocket::borrow_raw` A small oversight in 0cb69dec57f I noticed while reading.
2025-08-26Rollup merge of #145596 - lumiscosity:optimize-png-files, r=davidtwcoGuillaume Gomez-0/+0
Losslessly optimize PNG files Losslessly optimizes all of the PNG files in the repo. Done with: ``` oxipng -o max -a -s oxipng -o max --zopfli -a -s ```
2025-08-26Rollup merge of #145481 - mu001999-contrib:fix/closure-sugg, r=SparrowLiiGuillaume Gomez-8/+62
Add parentheses for closure when suggesting calling closure Fixes rust-lang/rust#145404
2025-08-26Rollup merge of #145076 - ZhongyaoChen:feature/add-tier3-riscv64a23-target, ↵Guillaume Gomez-1/+121
r=davidtwco Add new Tier-3 target: riscv64a23-unknown-linux-gnu MCP: [Tier 3 target proposal: riscv64a23-unknown-linux-gnu](https://github.com/rust-lang/compiler-team/issues/894) Changes: - add new target: riscv64a23-unknown-linux-gnu - add target page
2025-08-26Rollup merge of #144551 - neuschaefer:a64be-musl, r=davidtwcoGuillaume Gomez-0/+95
Add aarch64_be-unknown-linux-musl target This PR adds a target definition for big-endian Aarch64 with musl-libc. cc `@Gelbpunkt`
2025-08-26Rollup merge of #144373 - hkBst:remove-deprecated-1, r=jhprattGuillaume Gomez-379/+79
remove deprecated Error::description in impls [libs-api permission](https://github.com/rust-lang/libs-team/issues/615#issuecomment-3074045829) r? `@cuviper` or `@jhpratt`
2025-08-26Use captures(address) instead of captures(none) for indirect argsNikita Popov-35/+47
While provenance cannot be captured through these arguments, the address / object identity can.
2025-08-26Bless clippy tests.Mara Bos-22/+38
2025-08-26Inherit TCC in debuginfo tests on macOSMads Marquart-0/+29
2025-08-26Test `instrument-mcount`Jamie Hill-Daniel-0/+24
2025-08-26docs(cognitive_complexity): Correct lint group (#15563)Alejandra González-2/+2
The docs say this lint is included in `nursery`, but it is now in `restriction`. changelog:[`cognitive_complexity`]: Fixed documentation comment to state that the lint is in `restriction`, not `nursery`
2025-08-26Update tests.Mara Bos-105/+96
2025-08-26Remove 1-argument special case from format_args!().Mara Bos-20/+0
The argument needs to be lifetime-extended, so this special case isn't actually perfectly equivalent to the general case.
2025-08-26Add test.Mara Bos-0/+6
2025-08-26docs(cognitive_complexity): Correct lint groupDaniel Szoke-2/+2
The docs say this lint is included in `nursery`, but it is now in `restriction`.