about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-09-03Merge pull request #4561 from RalfJung/short-fd-opsRalf Jung-19/+50
add flag to not shorten FD reads/writes; don't shorten pipe operations
2025-09-03re-balance CIRalf Jung-4/+5
2025-09-03add flag to not shorten FD reads/writes; don't shorten pipe operationsRalf Jung-19/+50
2025-09-03CI: rfl: move job forward to Linux v6.17-rc3 plus 2 commitsMiguel Ojeda-1/+2
This upgrades the Rust CI from v6.16-rc1 plus a temporary commit for the >= 1.91 target spec [1] to v6.17-rc3 with two commits pending to be merged upstream -- one for the same target spec format change [1] and another for the `file_as_c_str` change [2]. Link: https://github.com/rust-lang/rust/pull/144443 [1] Link: https://github.com/rust-lang/rust/pull/145928 [2] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-09-03Add note about trailing whitespace in string literals.Josh Triplett-1/+4
2025-09-03Add `funnel_sh{l,r}` functions and intrinsicssayantn-9/+338
- Add a fallback implementation for the intrinsics - Add LLVM backend support for funnel shifts Co-Authored-By: folkertdev <folkert@folkertdev.nl>
2025-09-03Make test parallelbit-aloo-3/+2
Use std::thread::available_parallelism() instead of hardcoded --test-threads=1 in bootstrap tests.
2025-09-03refactor tests to use TestCtxbit-aloo-42/+24
2025-09-03Merge pull request #4558 from RalfJung/float-err-fixOli Scherer-69/+103
fix mangitude of applied float error
2025-09-03Split distcheck logic into functionsJakub Beránek-55/+60
2025-09-03thread parking: fix docs and examplesRalf Jung-16/+60
2025-09-03Rename `ToolRustc` to `ToolRustcPrivate`Jakub Beránek-63/+71
2025-09-03fix(rustdoc): match rustc `--emit` precedenceWeihang Lo-5/+11
Change rustdoc's `--emit` to allow only one instance of each type, regardless of the actual data that `--emit` carries. This matches rustc's `--emit` behavior. As of the writing, only `dep-info` emit type carries extra data. See <https://github.com/rust-lang/rust/issues/141664>
2025-09-03Merge pull request #4559 from nia-e/zed-configRalf Jung-0/+47
Add Zed editor config
2025-09-03fix mangitude of applied float errorRalf Jung-69/+103
2025-09-03Add amdgpu to gpu-kernel testFlakebi-1/+4
Check that the gpu-kernel calling convention translates to `amdgpu_kernel` when compiling for the amdgpu target.
2025-09-03Add test for addrspacecasting global varsFlakebi-1/+17
Global variables are casted to the default address space works, as the amdgpu target is now merged, a test can be added.
2025-09-03fixes auto-run js checks in tidyFrancescoV1985-13/+13
2025-09-03Disallow frontmatter in `--cfg` and `--check-cfg` argumentsUrgau-6/+65
2025-09-03Merge pull request #20586 from ChayimFriedman2/placeholder-nsShoyu Vanilla (Flint)-233/+324
fix: Make sense of the mess that were (are) different kind of generics in the solver
2025-09-03raw_vec.rs: Remove superfluous fn alloc_guardBart Jacobs-25/+2
It checks that its argument is at most isize::MAX, but it is called only with layout sizes, which are already guaranteed to be at most isize::MAX.
2025-09-03Merge pull request #4560 from rust-lang/rustup-2025-09-03Ben Kimock-2204/+2741
Automatic Rustup
2025-09-03Merge ref '51ff895062ba' from rust-lang/rustThe Miri Cronjob Bot-2203/+2740
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 51ff895062ba60a7cba53f57af928c3fb7b0f2f4 Filtered ref: 5057370cda58bcaad24ea094ec11c8c01b24c2bc This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-03Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to 51ff895062ba60a7cba53f57af928c3fb7b0f2f4.
2025-09-02add exact bitshiftsJeremy Smart-0/+231
2025-09-03RISC-V: Lower requirements of `clmul` and `clmulh`Tsukasa OI-2/+2
They don't need full "Zbc" extension but only its subset: the "Zbkc" extension. Since the compiler implies `zbkc` from `zbc`, it's safe to use `#[target_feature(enable = "zbkc")]`.
2025-09-03add zed editor configNia Espera-0/+47
2025-09-02compiletest: cygwin follows windows in using PATH for dynamic librariesjeremyd2019-1/+1
2025-09-02test(rustdoc): show the wrong `--emit` precedenceWeihang Lo-0/+13
It should have the same behavior as rustc, which the last wins.
2025-09-03explicitly start `va_list` lifetimeFolkert de Vries-1/+26
2025-09-02docs(std): add missing closing code block fences in doc commentsAudaciousAxiom-2/+7
2025-09-02Revert "Make `lto` and `linker-plugin-lto` work the same for ↵Ramon de C Valle-23/+12
`compiler_builtins`" This reverts commit cf8753e4f9c3597f04cd5d3aa261e4561d5378a6 and fixes the regressions reported.
2025-09-02Auto merge of #146076 - Kobzol:bootstrap-compiletest, r=jieyouxubors-222/+279
Consolidate staging for compiletest steps in bootstrap This PR finishes the initial pass of refactorings that fixed up staging of various bootstrap steps after the stage0 redesign. Now the *real* refactorings can begin =D It fixes the unnecessary stage2 build of cargo for run-make tests (https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/run-make.20cargo.20staging/with/536662651), and also consolidates staging of messages printed by bootstrap for test steps (`Testing stageN...` etc.). r? `@jieyouxu`
2025-09-02llvm: nvptx: Layout update to match LLVMMatthew Maurer-1/+5
LLVM upstream switched layouts to support 256-bit vector load/store.
2025-09-03Fix closure in match not applicable for add_bracesA4-Tacks-2/+31
Example --- **Not applicable**: ```rust fn foo() { match () { () => { t(|n|$0 n + 100); } } } ```
2025-09-02Auto merge of #146125 - GuillaumeGomez:rollup-ld81n7e, r=GuillaumeGomezbors-417/+424
Rollup of 14 pull requests Successful merges: - rust-lang/rust#144066 (stabilize c-style varargs for sysv64, win64, efiapi, aapcs) - rust-lang/rust#145783 (add span to struct pattern rest (..)) - rust-lang/rust#146034 (Update target spec metadata of Arm64EC Windows and Trusty targets) - rust-lang/rust#146064 (Add compiler error when trying to use concat metavar expr in repetitions) - rust-lang/rust#146070 (rustdoc-search: skip loading unneeded fnData) - rust-lang/rust#146088 (constify impl Try for ControlFlow) - rust-lang/rust#146089 (fix a constness ordering bug in rustfmt) - rust-lang/rust#146091 (fix rustdoc `render_call_locations` panicking because of default span `DUMMY_SP` pointing at non local-source file) - rust-lang/rust#146094 (Make `Parser::parse_for_head` public for rustfmt usage) - rust-lang/rust#146102 (Remove dead code stemming from an old effects desugaring) - rust-lang/rust#146115 (Add maintainer for VxWorks) - rust-lang/rust#146116 (Adjust issue-118306.rs test after LLVM change) - rust-lang/rust#146117 (Fix search index generation) - rust-lang/rust#146118 (improve process::abort rendering in Miri backtraces) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-02Rollup merge of #146118 - RalfJung:miri-abort, r=joboetGuillaume Gomez-90/+54
improve process::abort rendering in Miri backtraces Also, avoid using the `sys` function directly in the panic machinery -- that seems like an unnecessary layering violation.
2025-09-02Rollup merge of #146117 - GuillaumeGomez:fix-search-index-generation, ↵Guillaume Gomez-55/+41
r=notriddle Fix search index generation Fixes this issue: ``` error: couldn't generate documentation: failed to read column from disk: data consumer error: missing field `unknown number` at line 1 column 8 | = note: failed to create or modify "build/x86_64-unknown-linux-gnu/test/rustdoc-gui/doc/search.index/entry/": failed to read column from disk: data consumer error: missing field `unknown number` at line 1 column 8 warning: `theme_css` (lib doc) generated 1 warning error: could not document `theme_css` ``` The problem was that a conversion was forgotten for the `ItemType` enum. Thanks a lot to `@janis-bhm!` r? `@lolbinarycat`
2025-09-02Rollup merge of #146116 - zmodem:issue_118306_fix, r=nikicGuillaume Gomez-1/+1
Adjust issue-118306.rs test after LLVM change This updates tests/codegen-llvm/issues/issue-118306.rs to pass also after https://github.com/llvm/llvm-project/pull/155415
2025-09-02Rollup merge of #146115 - hax0kartik:master, r=lqdGuillaume Gomez-0/+1
Add maintainer for VxWorks Hi, This adds me as a target maintainer for VxWorks. I am currently a member of the VxWorks compiler team and I am actively working on improving rust support for VxWorks. Thanks!
2025-09-02Rollup merge of #146102 - fmease:rm-dead-eff-code-iii, r=fee1-deadGuillaume Gomez-26/+16
Remove dead code stemming from an old effects desugaring CC https://github.com/rust-lang/rust/pull/132374, https://github.com/rust-lang/rust/pull/133443. r? fee1-dead
2025-09-02Rollup merge of #146094 - mohe2015:patch-2, r=lcnrGuillaume Gomez-1/+2
Make `Parser::parse_for_head` public for rustfmt usage Similar to https://github.com/rust-lang/rust/pull/138511, I want to add [dioxus rsx](https://dioxuslabs.com/learn/0.6/reference/rsx) formatting to [my rustfmt fork](https://github.com/tucant/rustfmt) and it would be much easier if that method would be public. Thanks.
2025-09-02Rollup merge of #146091 - janis-bhm:rustdoc-default-span-with-simple-test, ↵Guillaume Gomez-16/+73
r=GuillaumeGomez fix rustdoc `render_call_locations` panicking because of default span `DUMMY_SP` pointing at non local-source file fixes https://github.com/rust-lang/rust/issues/144752 related to/builds on https://github.com/rust-lang/rust/pull/145008 bevy still crashes in the same way as rust-lang/rust#144752 when building docs on nightly, and from what I can tell the cause seems to be the following (copied from zulip [#t-rustdoc > docs on nightly with example scrapes crash](https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/docs.20on.20nightly.20with.20example.20scrapes.20crash)): > render_call_locations tries to [find](https://github.com/rust-lang/rust/blob/84a17470220e7adf249b18d7c0178dfbede89462/src/librustdoc/html/render/mod.rs#L2816) the source span of a call to add as an example, but the example files are never actually in the source map from what I can tell, and so it falls back to the default span, which points at the first file in the source map. > Now, the issue that guillaume mentions [here](https://github.com/rust-lang/rust/pull/145008) adds new files to the source map in order to get them into the dep info, and that leads to some files, namely docs-rs/trait-tags.html in the case of bevy because it's added with --html-after-content, being added before any source files, so then the default span points at them, and when href_from_span tries to find the [source file](https://github.com/rust-lang/rust/blob/84a17470220e7adf249b18d7c0178dfbede89462/src/librustdoc/html/render/context.rs#L368) corresponding to the span, the file doesn't belong to local_sources, and it short circuits. > This can be fixed by just not using DUMMY_SP as the default span and calculating, for example, the crates root source file as the span, because I'm not entirely sure what the href from that span is actually used for; it's not what links to the example in the end. > I think the proper way of fixing this would be to make sure the example files are part of the local_sources or at least the source map, but I don't know nearly enough about rust internals to be able to figure out how to fix that. I've included a test that's mostly copied from rust-lang/rust#145008's test with the addition of `--html-after-content after.html` in the `RUSTDOCFLAGS`, which panics on master in conjunction with the `-Zrustdoc-scrape-examples` cargo flag. cc `@GuillaumeGomez`
2025-09-02Rollup merge of #146089 - npmccallum:rustfmt, r=fmeaseGuillaume Gomez-1/+1
fix a constness ordering bug in rustfmt Normally, changes to rustfmt go into the separate repo. But, in this case, the bug is introduced in a local change and therefore isn't present in the rustfmt repo. Related to: https://github.com/rust-lang/rust/pull/146071 Fixes https://github.com/rust-lang/rustfmt/issues/6619.
2025-09-02Rollup merge of #146088 - npmccallum:try, r=scottmcmGuillaume Gomez-2/+4
constify impl Try for ControlFlow Related to: https://github.com/rust-lang/rust/issues/74935
2025-09-02Rollup merge of #146070 - notriddle:skip-loading-function-data, r=GuillaumeGomezGuillaume Gomez-12/+13
rustdoc-search: skip loading unneeded fnData Fixes rust-lang/rust#146063 (probably) Based on the test I ran, it seems like most of the CPU time is being spent loading function signature data. This PR should avoid that. https://notriddle.com/rustdoc-html-demo-12/skip-loading-function-data/doc/std/index.html
2025-09-02Rollup merge of #146064 - jullanggit:patch-1, r=fmeaseGuillaume Gomez-6/+35
Add compiler error when trying to use concat metavar expr in repetitions ## Disclaimer This is my first PR to rust, so if I missed/could improve something about this PR, please excuse and tell me! ## The improvement The [metavar_expr_concat feature](https://github.com/rust-lang/rust/issues/124225) currently does not seem to support nested repetitions, and throws an ICE without much explanation if the relevant code path is hit. This PR adds a draft compiler error that attempts to explain the issue. I am not 100% sure what all the ways of triggering this error are, so the message is currently pretty generic, please do correct me if there's something wrong with it or it could be improved. Thank you for you time! Fixes rust-lang/rust#140479.
2025-09-02Rollup merge of #146034 - taiki-e:target-spec, r=nnethercoteGuillaume Gomez-5/+5
Update target spec metadata of Arm64EC Windows and Trusty targets Update outdated target spec metadata in the following targets. - Arm64EC Windows (`arm64ec-pc-windows-msvc`) is "tier 2 without host tools" since https://github.com/rust-lang/rust/pull/126039 and supports `std` since before that, but metadata currently says that is tier 3 and has unknown `std` support status. - Trusty targets (`{aarch64,armv7,x86_64}-unknown-trusty`) support `std` since https://github.com/rust-lang/rust/pull/136842 (and I confirmed they can be compiled with `-Zbuild-std=std`), but metadata currently says that has no `std` support. Mentioning `@dpaoliello` as [arm64ec-pc-windows-msvc target-maintainer](https://doc.rust-lang.org/nightly/rustc/platform-support/arm64ec-pc-windows-msvc.html#target-maintainers). Mentioning `@randomPoison` `@ahomescu` as [Trusty target maintainers](https://doc.rust-lang.org/nightly/rustc/platform-support/trusty.html#target-maintainers).
2025-09-02Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errorsGuillaume Gomez-6/+7
add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: https://github.com/rust-lang/rust-clippy/pull/15000#discussion_r2134145163 It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.
2025-09-02Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errorsGuillaume Gomez-40/+50
add span to struct pattern rest (..) Struct pattern rest (`..`) did not retain span information compared to normal fields. This patch adds span information for it. The motivation of this patch comes from when I implemented this PR for Clippy: https://github.com/rust-lang/rust-clippy/pull/15000#discussion_r2134145163 It is possible to get the span of the Et cetera in a bit roundabout way, but I thought this would be nicer.