Skip to content

Rollup of 4 pull requests - #160382

Closed
JonathanBrouwer wants to merge 53 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-eB0I442
Closed

Rollup of 4 pull requests#160382
JonathanBrouwer wants to merge 53 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-eB0I442

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Contributor

Successful merges:

r? @ghost

Create a similar rollup

moabo3li and others added 30 commits July 24, 2026 13:19
Add UI coverage for source-shaped local values before changing the renderer.

The new cases exercise structs, enum variants, tuples, arrays, slices, and
fallback leaf values so later commits can bless one behavior change at a time.
This updates the rust-version file to dfbea5b.
…e-buffer

skip weak memory buffer handling when there is only one thread
Route local value rendering through a source-shaped renderer helper.

At this step the helper still delegates leaves and unsupported shapes back to
the existing raw byte renderer, so the behavioral changes can land in focused
follow-up commits.
Render struct and struct-like ADT operands using their source field names.

Fields are projected from the operand and each leaf still uses the existing raw
renderer, producing output such as `Point { x: [..], y: [..] }` without relying
on user Debug or Display implementations.
Extend source-shaped ADT rendering to enum operands.

The renderer reads the runtime discriminant, downcasts to the active variant,
and then renders the payload fields with the same raw-leaf fallback used for
struct fields. Unit, tuple, and struct variants keep their Rust-like spelling.
Render tuple operands as positional source-shaped values.

Tuple elements are projected in source order and rendered through the existing
leaf renderer, including the trailing comma for one-element tuples.
Render array and slice operands as ordered source-shaped elements.

Fixed arrays use their layout count while slices use the runtime metadata length,
then `project_array_fields` supplies the element operands for raw-leaf rendering.
This updates the rust-version file to d3ea035.
…t-comment

fix `ptr_from_addr_cast` comment
…s-and-types-handling

[Priroda] Render projected locals with source-shaped values
Implement shims for vsha256hq_u32, vsha256h2q_u32, vsha256su0q_u32 and vsha256su1q_u32
Matches the naming already used in
the aarch64 SHA256 shims.
…ntrinsics

aarch64: implement SHA256 intrinsic shims
This updates the rust-version file to 701a651.
This updates the rust-version file to cb9d1b0.
CoCo-Japan-pan and others added 14 commits August 1, 2026 17:02
show clear error when encountering an argfile
… it from there

`rustc_borrowck` uses `type_op_prove_predicate_with_cause` from
`rustc_traits`, but is a simple helper that can live in
`rustc_trait_selection` instead. Move it there.
`rustc_borrowck` now only uses `rustc_traits` for one helper that it
re-exports from `rustc_trait_selection`. Use the helper directly from
`rustc_trait_selection`, and eliminate the dependency.
This updates the rust-version file to 73dc916.
…ck, r=jhpratt,Urgau

Semantic check of `mut` restrictions

This PR implements semantic checks for `mut` restrictions proposed in [RFC 3323](https://rust-lang.github.io/rfcs/3323-restrictions.html), as part of the related [GSoC project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Implementing.20impl.20and.20mut.20restrictions/with/592352432).
It lowers field restriction information from HIR into `rustc_middle::ty::FieldDef` and adds a MIR-level lint that rejects restricted field mutations and struct expressions. As parsing (rust-lang#156824) and path resolution (rust-lang#159125) have already been implemented, this PR provides a working implementation of `mut` restrictions.

Tracking issue: rust-lang#105077
r? @Urgau
cc @jhpratt
…s, r=mejrs

borrowck: Simplify deps to build compiler 30s faster

`rustc_borrowck` uses two helpers from `rustc_traits`. One of them is re-exported from `rustc_trait_selection`, and the other can easily move to `rustc_trait_selection`.

Making `rustc_borrowck` use these helpers from `rustc_trait_selection` directly, and eliminating the `rustc_traits` dependency, allows starting to build `rustc_borrowck` earlier, which substantially speeds up building the compiler because `rustc_borrowck` is one of the last things to build.

On my system, this speeds up the rustc build by a little over 30s.
tests: prefer max-llvm-major-version over open LLVM ranges

Per review, take option 3: replace open `ignore-llvm-version` ranges with `max-llvm-major-version`. Left gdb `X - 99.0` ranges alone so CI's older gdb still runs those tests.

Fixes rust-lang#159338.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Aug 2, 2026
@rustbot rustbot added F-explicit_tail_calls `#![feature(explicit_tail_calls)]` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Aug 2, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Contributor Author

@bors r+ rollup=never p=5

@rust-bors

rust-bors Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 23e299c 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 Aug 2, 2026
@rust-bors

rust-bors Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

⌛ Testing commit 23e299c with merge 34f93ec...

Workflow: https://github.com/rust-lang/rust/actions/runs/30746536316

rust-bors Bot pushed a commit that referenced this pull request Aug 2, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - #159906 (Semantic check of `mut` restrictions)
 - #160358 (borrowck: Simplify deps to build compiler 30s faster)
 - #160375 (miri subtree update)
 - #159499 (tests: prefer max-llvm-major-version over open LLVM ranges)
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 2, 2026
@rust-bors

rust-bors Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved due to being closed.

Auto build was cancelled due to the PR being closed. Cancelled workflows:

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

Labels

F-explicit_tail_calls `#![feature(explicit_tail_calls)]` rollup A PR which is a rollup S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants