Skip to content

Rollup of 12 pull requests - #164757

Open
JonathanBrouwer wants to merge 30 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-QMS3ewH
Open

JonathanBrouwer wants to merge 30 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-QMS3ewH

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost

Create a similar rollup

RalfJung and others added 30 commits October 1, 2026 08:15
Let's link the relevant UI tests to the Reference's rules for unions.
and update plaform note
get illumos sysroot from mirror
This module can contain various helpers for `object`, not strictly those
that work with symbols.
Memory64 is merged into the spec since 2025-07-23 (WASM 3.0).
This will make it possible to remove the compiler's Hash impl for FileName.
A subtle consequence of the stage0 redesign is that the compiler must take care
to avoid relying on any stdlib-provided Hash impl when computing stable hashes,
or at least any such impl that is actually liable to change.

This was noticed when trying to strengthen the provided Hash impl for Path,
which triggered baffling CI failures because the stable hashes produced by the
stage1 compiler (built against stage0 stdlib) were inconsistent with the ones
that would have been produced by the stage2 compiler (built against in-tree
stdlib).

This PR aims to unblock changes to `impl Hash for Path`, by making the compiler
not rely on it for stable hashing. It does not attempt to solve the broader
problem of the compiler relying on stdlib hash details.
Avoid stdlib's `impl Hash for Path` for stable hashing

A subtle consequence of the stage0 redesign is that the compiler must take care to avoid relying on any stdlib-provided Hash impl when computing stable hashes, or at least any such impl that is actually liable to change.

This was noticed when trying to strengthen the provided Hash impl for Path, which triggered baffling CI failures because the stable hashes produced by the stage1 compiler (built against stage0 stdlib) were inconsistent with the ones that would have been produced by the stage2 compiler (built against in-tree stdlib).

This PR aims to unblock changes to `impl Hash for Path`, by making the compiler not rely on it for stable hashing. It does not attempt to solve the broader problem of the compiler relying on stdlib hash details.
rmake: Add helpers for iterating symbols and objects

We have a handful tests that do a common pattern of opening a file, looping through its symbols, and performing some validation on each one, which can be a bit inconvenient to do manually. The pattern at https://github.com/rust-lang/compiler-builtins/blob/f521807de24520770991263387ba8c06e462edf8/crates/symcheck/src/main.rs works rather well to make this easier, so add it at `rmake` and update one test that does symbol iteration.
…isDenton

refactor Windows remove_dir_all

It took me a bit to understand this code. I hope I understood it correctly now.
r? @ChrisDenton
…hnTitor

std: use `SOCK_NONBLOCK` in `connect_timeout`

I doubt the performance improvement will be measurable, but using [`SOCK_NONBLOCK`](https://manned.org/man/socket) upon socket creation instead of manually setting the non-blocking mode  seemed like a good idea to me. Implementing this required a consolidation of the `connect_timeout` logic, which seems like a good thing in its own right.
…Borrowck-rename, r=jdonszelmann

Rename `PostTypeckUntilBorrowck` -> `PostTypeckThroughBorrowck`

This was a rename suggested in the following [Zulip thread](https://rust-lang.zulipchat.com/#narrow/channel/618216-t-types.2Fcall-for-participation/topic/rename.20.60TypingMode.3A.3APostTypeckThroughBorrowck.60/with/624384207)

r? jdonszelmann
…x, r=petrochenkov

Declare `SyntaxContext` through `rustc_index::newtype_index!`

`SyntaxContext` is basically an index type but it is not declared through `newtype_index`.

r? @petrochenkov
Avoid cloning CFG-related analysis data.

For perf. We can avoid cloning CFG-related data while mutating the body.
…ations_unions, r=PLeVasseur,traviscross

Add reference annotations for unions

Let's link the relevant UI tests to the Reference's rules for unions.
Allow `llm-assisted` label to be set without write access

I.e. allow contributors to set https://github.com/rust-lang/rust/labels/llm-assisted via triagebot as well.
Remove docs mentioning instability of wasm64

Memory64 is merged into the spec, from my reading since 2025-07-23 (and included as part of WebAssembly 3.0).

(It still isn't available in Safari and some other engines, but we shouldn't track that in our docs, see https://webassembly.org/features/ for that instead).

r? compiler

CC target maintainer @alexcrichton
Update LLVM PassBuilder constructor calls to pass a context

LLVM's llvm/llvm-project#233150 made the PassBuilder constructor take a LLVMContext argument.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Oct 22, 2026
@rustbot rustbot added A-CI Area: Our Github Actions CI A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Oct 22, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

Trying commonly failed jobs
@bors try jobs=dist-various-1,test-various,test-x86_64-gnu-aux,test-x86_64-msvc-1,test-aarch64-apple-1,test-aarch64-apple-2,test-x86_64-mingw-1,test-i686-msvc,test-armhf-gnu,test-x86_64-gnu-llvm-22-3

@rust-bors

rust-bors Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

📌 Commit dce705a has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 22, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 22, 2026
Rollup of 12 pull requests


try-job: dist-various-1
try-job: test-various
try-job: test-x86_64-gnu-aux
try-job: test-x86_64-msvc-1
try-job: test-aarch64-apple-1
try-job: test-aarch64-apple-2
try-job: test-x86_64-mingw-1
try-job: test-i686-msvc
try-job: test-armhf-gnu
try-job: test-x86_64-gnu-llvm-22-3
@rust-bors

rust-bors Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: c0ea344 (c0ea344c1a8a8a893cc1eec677b2abfa30571ef0)
Base parent: c303e41 (c303e414dd813ab090055754d0be647054fce70a)

@rust-bors

rust-bors Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

⌛ Testing commit dce705a with merge b8fa1fb...

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Our Github Actions CI A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.