about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-08-27Rollup merge of #145885 - madsmtm:lldb-inherit-tcc, r=KobzolMatthias Krüger-0/+29
Inherit TCC in debuginfo tests on macOS macOS has a system for propagating folder permissions, which LLDB disables when spawning processes, which in turn causes debuginfo tests to spam the user with repeated pop-ups asking for permissions. See the code comment for details, as well as the following video for an example of how this looks in practice: https://github.com/user-attachments/assets/1e54f5b8-9130-4b59-8e92-1db1e58fb361 I stumbled upon the incantation to fix this (`settings set target.inherit-tcc true`) while investigating slowdowns when spawning newly created binaries due to XprotectService, see [this Zulip thread](https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/build.20scripts.20slow.20on.20macOS.3F). This would allow me to no longer have a `build.build-dir = "/Users/madsmtm/rust-build"` workaround in my `bootstrap.toml`.
2025-08-27Rollup merge of #145740 - nnethercote:workspace-members, r=KobzolMatthias Krüger-102/+112
Introduce a `[workspace.dependencies`] section in the top-level `Cargo.toml` It lets us avoid a lot of repetition of crate versions, etc. I've just done a few as a start. Many more can be done in follow-ups. r? `@Kobzol`
2025-08-27Rollup merge of #145625 - karolzwolak:f16-use-expr-instead-literal, ↵Matthias Krüger-10/+79
r=beetrees,tgross35 improve float to_degrees/to_radians rounding comments and impl This PR makes `to_degrees()` and `to_radians()` float functions more consistent between each other and improves comments around their precision and rounding. * revise comments explaining why we are using literal or expression * add unspecified precision comments as we don't guarantee precision * use expression in `f128::to_degrees()` * make `f64::to_degrees()` impl consistent with other functions r? `@tgross35`
2025-08-27Rollup merge of #145562 - tbu-:pr_simplify_to_string_spec, r=tgross35Matthias Krüger-50/+23
Simplify macro generating ToString implementations for `&…&str` Use deref coercion to let the compiler remove any amount of references. Also use that macro for `Cow` and `String`.
2025-08-27Rollup merge of #144274 - Qelxiros:option-reduce, r=tgross35Matthias Krüger-0/+37
add Option::reduce Tracking issue: rust-lang/rust#144273
2025-08-27Auto merge of #140737 - amandasystems:revised-constraint-search, r=lcnrbors-232/+281
Region inference: Use outlives-static constraints in constraint search Revise the extra `r: 'static` constraints added upon universe issues to add an explanation, and use that explanation during constraint blame search. This greatly simplifies the region inference logic, which now does not need to reverse-engineer the event that caused a region to outlive `'static`. This cosmetically changes the output of two UI tests. I blessed them i separate commits with separate motivations, but that can of course be squashed as desired. We probably want that. The PR was extracted out of rust-lang/rust#130227 and consists of one-third of its functional payload. r? lcnr
2025-08-27Add spin_loop hint for LoongArchWANG Rui-33/+23
2025-08-27Use `AcceptContext` in `AttribueParser::check_target`Sasha Pourcelot-29/+17
2025-08-27Explicitly mark the end of a failed test's captured outputZalathar-1/+7
2025-08-27Merge pull request #4544 from rust-lang/rustup-2025-08-27Ralf Jung-2777/+5534
Automatic Rustup
2025-08-27Auto merge of #145916 - matthiaskrgr:rollup-cnvhq2z, r=matthiaskrgrbors-1261/+1406
Rollup of 6 pull requests Successful merges: - rust-lang/rust#142215 (Use -Zmir-opt-level=0 in tests for MIR building) - rust-lang/rust#143341 (Mention that casting to *const () is a way to roundtrip with from_raw_parts) - rust-lang/rust#145078 (Fix wrong cache line size of riscv64) - rust-lang/rust#145290 (Improve std::fs::read_dir docs) - rust-lang/rust#145335 (Move WTF-8 code from std into core and alloc) - rust-lang/rust#145904 (Move `riscv64-gc-unknown-linux-musl` from Tier 2 with Host tools to Tier 2) r? `@ghost` `@rustbot` modify labels: rollup
2025-08-27Use std uplifting more oftenJakub Beránek-40/+20
2025-08-27Use `compiler_for_std` in `dist::Std`Jakub Beránek-59/+59
2025-08-27Add `compiler_for_std`Jakub Beránek-3/+13
2025-08-27Add metadata to `dist::JsonDocs`Jakub Beránek-1/+17
2025-08-27Add snapshot test for rustc docsJakub Beránek-0/+41
2025-08-27Rollup merge of #145904 - Kobzol:riscv-musl-platform-support, r=jieyouxuMatthias Krüger-1/+1
Move `riscv64-gc-unknown-linux-musl` from Tier 2 with Host tools to Tier 2 It is not shipped with host tools, so it was located in the wrong group. The musl target is [here](https://github.com/rust-lang/rust/blob/467c89cd0b1c579edc247808c35941677918d29d/src/ci/docker/host-x86_64/dist-various-2/Dockerfile#L126) - no host tools. Noticed in https://github.com/rust-lang/docker-rust/pull/247.
2025-08-27Rollup merge of #145335 - clarfonthey:wtf8-core-alloc, r=Mark-SimulacrumMatthias Krüger-1208/+1327
Move WTF-8 code from std into core and alloc This is basically a small portion of rust-lang/rust#129411 with a smaller scope. It *does not*\* affect any public APIs; this code is still internal to the standard library. It just moves the WTF-8 code into `core` and `alloc` so it can be accessed by `no_std` crates like `backtrace`. > \* The only public API this affects is by adding a `Debug` implementation to `std::os::windows::ffi::EncodeWide`, which was not present before. This is due to the fact that `core` requires `Debug` implementations for all types, but `std` does not (yet) require this. Even though this was ultimately changed to be a wrapper over the original type, not a re-export, I decided to keep the `Debug` implementation so it remains useful. Like we do with ordinary strings, the tests are still located entirely in `alloc`, rather than splitting them into `core` and `alloc`. ---- Reviewer note: for ease of review, this is split into three commits: 1. Moving the original files into their new "locations" 2. Actually modifying the code to compile. 3. Removing aesthetic changes that were made so that the diff for commit 2 was readable. You can review commits 1 and 3 to verify these claims, but commit 2 contains the majority of the changes you should care about. ---- API changes: `impl Debug for std::os::windows::ffi::EncodeWide`
2025-08-27Rollup merge of #145290 - ntc2:patch-1, r=joshtriplett,tgross35Matthias Krüger-0/+3
Improve std::fs::read_dir docs Call out early that the results returned can differ across calls / aren't deterministic. This was already mentioned at the bottom of examples, but I think it's worth calling out early, since this caused at least one person (me!) great confusion.
2025-08-27Rollup merge of #145078 - minxuanz:riscv-cacheline, r=samueltardieuMatthias Krüger-5/+3
Fix wrong cache line size of riscv64 see https://go-review.googlesource.com/c/go/+/526659, All of riscv CPU using 64B for cache-line size.
2025-08-27Rollup merge of #143341 - Manishearth:from-raw-parts-ptr-cast, r=samueltardieuMatthias Krüger-0/+3
Mention that casting to *const () is a way to roundtrip with from_raw_parts See discussion on rust-lang/rust#81513
2025-08-27Rollup merge of #142215 - saethlin:mir-building-tests, r=cjgillotMatthias Krüger-47/+69
Use -Zmir-opt-level=0 in tests for MIR building The mir-opt test suite currently defaults all tests in it to `-Zmir-opt-level=4`, so if a test is trying to test MIR _building_ not optimizations and it is in that directory, it _must_ override the default mir-opt-level.
2025-08-27remove old crash testTakayuki Maeda-6/+3
2025-08-27Merge ref '269d5b56bcfd' from rust-lang/rustThe Miri Cronjob Bot-2776/+5533
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 269d5b56bcfdf2be82213e72ef9a2e4c592a8c6b Filtered ref: a221b1d3ebb78ec8a01dcb1fe6bb165378e2f5c9 This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-27Improve std::fs::read_dir docsNathan Collins-0/+3
Call out early that the results returned can differ across calls / aren't deterministic. This was already mentioned at the bottom of examples, but I think it's worth calling out early, since this caused at least one person (me!) great confusion. [ Added a comma to the docs, reflowed commit message - Trevor ]
2025-08-27Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to 269d5b56bcfdf2be82213e72ef9a2e4c592a8c6b.
2025-08-27Merge pull request #20527 from ChayimFriedman2/cache-next-solverShoyu Vanilla (Flint)-66/+140
perf: Cache trait solving across queries in the same revision
2025-08-27Add test batch 1Oneirical-80/+66
2025-08-27Add `itertools` to `[workspace.dependencies]`.Nicholas Nethercote-15/+16
2025-08-27Add `tracing` to `[workspace.dependencies]`.Nicholas Nethercote-49/+50
2025-08-27Add `rustc-literal-escaper` to `[workspace.dependencies]`.Nicholas Nethercote-4/+5
2025-08-27Add `memchr` to `[workspace.dependencies]`.Nicholas Nethercote-2/+3
2025-08-27Add `bitflags` to `[workspace.dependencies]`.Nicholas Nethercote-14/+15
2025-08-27Add `thin-vec` to newly added `[workspace.dependencies]`.Nicholas Nethercote-18/+23
2025-08-26Use -Zmir-opt-level=0 in tests for MIR buildingBen Kimock-47/+69
2025-08-27Auto merge of #144841 - cjgillot:typeck-no-attrs, r=davidtwcobors-39/+62
Access less HIR attributes from typeck Typeck relies on attributes to modify its own behaviour. This is a problem, as this means that `typeck(some function)` may depend on the span and doc-comments of many other functions. This PR attempts to reduce such accesses to attributes. This yields to a sizeable perf improvement: https://github.com/rust-lang/rust/pull/144841#issuecomment-3153339771 Fixes https://github.com/rust-lang/rust/issues/124352
2025-08-26Update cargo submoduleWeihang Lo-0/+0
2025-08-26Make `lto` and `linker-plugin-lto` work the same for `compiler_builtins`Matthew Maurer-12/+23
Fix #142284 by ensuring that `#![no_builtins]` crates can still emit bitcode when proper (i.e., non-rustc) LTO (i.e., -Clinker-plugin-lto) is used.
2025-08-26`unit_cmp`: don't lint on explicitly written unit exprZihan-4/+42
changelog: [`unit_cmp`]: don't lint on explicitly written unit expr Signed-off-by: Zihan <zihanli0822@gmail.com>
2025-08-27Document `is_unit_expr()`Samuel Tardieu-0/+1
2025-08-26Auto merge of #145906 - samueltardieu:rollup-p8ibzhz, r=samueltardieubors-304/+838
Rollup of 9 pull requests Successful merges: - rust-lang/rust#144499 (ci: Begin running ui tests with `rust.debuginfo-level-tests=1`) - rust-lang/rust#145790 (Improve dist for gnullvm hosts) - rust-lang/rust#145792 (Use attribute name in message for "outer attr used as inner attr" errors) - rust-lang/rust#145840 (rustc_codegen_ssa: More comprehensive RISC-V ELF flags) - rust-lang/rust#145876 (Enable building/disting standard library in stage 0) - rust-lang/rust#145887 (bootstrap: Don't panic if codegen-backends is set to empty) - rust-lang/rust#145888 (platform-support: Fix LoongArch32 host column) - rust-lang/rust#145892 (add a flag to codegen fn attrs for foreign items) - rust-lang/rust#145901 (Fix typo in comment of library/alloc/src/raw_vec/mod.rs) r? `@ghost` `@rustbot` modify labels: rollup
2025-08-26Rollup merge of #145901 - stoeckmann:raw_vec_typo, r=samueltardieuSamuel Tardieu-1/+1
Fix typo in comment of library/alloc/src/raw_vec/mod.rs Turn "any heap allocators" into "any heap allocator". Shoutout to [Let's Read OSS](https://github.com/stoeckmann/lets-read-oss).
2025-08-26Rollup merge of #145892 - jdonszelmann:codegen-fn-attrs-foreign-item, r=bjorn3Samuel Tardieu-14/+16
add a flag to codegen fn attrs for foreign items r? `@ghost` refiled to rerun CI
2025-08-26Rollup merge of #145888 - heiher:fix-platform-support-loong32, r=jieyouxuSamuel Tardieu-2/+2
platform-support: Fix LoongArch32 host column
2025-08-26Rollup merge of #145887 - GuillaumeGomez:bootstrap-codegen-backends, r=KobzolSamuel Tardieu-12/+10
bootstrap: Don't panic if codegen-backends is set to empty It fixes a bug we encountered in our last GCC backend sync: https://github.com/rust-lang/rustc_codegen_gcc/actions/runs/17214525469/job/48834700055?pr=753#step:18:595 In short, we used to have in `bootstrap.toml` an empty `rust.codegen-backends = []`, triggering the `unwrap`. We fixed it in https://github.com/rust-lang/rustc_codegen_gcc/pull/753/commits/ad99858fd9056bd29e96898be0f5e01ef527a092. r? `@Kobzol`
2025-08-26Rollup merge of #145876 - Kobzol:dist-std-build, r=jieyouxuSamuel Tardieu-26/+79
Enable building/disting standard library in stage 0 After the stage0 redesign, building a stage0 library no longer is a thing, because the stage0 compiler normally cannot build libstd anymore. However, there are valid use-cases for having the ability to quickly cross-compile libstd for different targets, when the stage0 compiler is e.g. a stable released version, and you want to cross-compile libstd from the same sources of that compiler. This PR allows that, as long as you set `build.local-rebuild = true`, which promises bootstrap that the stage0 compiler actually comes from in-tree sources, and can thus compile libstd. The change needed to enable this is very minimal, so I think that it is worth it to allow this use-case to work. Fixes: https://github.com/rust-lang/rust/issues/145587 Fixes: https://github.com/rust-lang/rust/issues/145859 Related issue: https://github.com/rust-lang/rust/issues/94781 r? `@jieyouxu`
2025-08-26Rollup merge of #145840 - a4lg:riscv-elf-flags-for-internal-objs, r=WaffleLapkinSamuel Tardieu-3/+11
rustc_codegen_ssa: More comprehensive RISC-V ELF flags This change implements more conformant, more comprehensive RISC-V ELF flags handling when generating certain object files directly from rustc. * Use `"zca"` instead of `"c"` The "Zca" extension (a subset of "C") is the minimal configuration for compressed instructions to set `EF_RISCV_RVC` flag. * Set TSO flag from `"ztso"` The "Ztso" extension denotes that the program depends on the RVTSO (Total Store Ordering) memory consistency model, which is stronger than the standard RVWMO (Weak Memory Ordering) consistency model and on ELF targets, we need to set `EF_RISCV_TSO` flag.
2025-08-26Rollup merge of #145792 - scrabsha:push-umpytyxunpxq, r=jdonszelmannSamuel Tardieu-213/+691
Use attribute name in message for "outer attr used as inner attr" errors
2025-08-26Rollup merge of #145790 - mati865:gnullvm-improve-dist, r=KobzolSamuel Tardieu-30/+4
Improve dist for gnullvm hosts LLVM tools cross-compilation has been fixed by rust-lang/rust#145763 and LLVM downloading from CI no longer causes build error, so let's enable them both.
2025-08-26Rollup merge of #144499 - Enselic:ci-debuginfo-level-tests, r=davidtwcoSamuel Tardieu-3/+24
ci: Begin running ui tests with `rust.debuginfo-level-tests=1` To reduce risk of regressing on generating debuginfo e.g. in the form of ICE:s. This will also ensure that future ui tests work with different debuginfo levels. See https://github.com/rust-lang/rust/issues/61117. When I looked at run time for different CI jobs, **x86_64-gnu-debug** was far from the bottleneck, so it should be fine to make it perform more work. A handful of tests are failing so we need to force debuginfo=0 on those for now. We'll start small with debuginfo=1. We'll step up to debuginfo=2 once most (all?) tests can handle debuginfo=1. There are more failures with debuginfo=2 than with debuginfo=1.