Skip to content

Rollup of 4 pull requests#159757

Closed
jhpratt wants to merge 12 commits into
rust-lang:mainfrom
jhpratt:rollup-qVfLydt
Closed

Rollup of 4 pull requests#159757
jhpratt wants to merge 12 commits into
rust-lang:mainfrom
jhpratt:rollup-qVfLydt

Conversation

@jhpratt

@jhpratt jhpratt commented Jul 23, 2026

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

zachs18 and others added 12 commits July 7, 2026 20:53
…d ZST struct/enums.

Also add tests for the guaranteed types.
… r=davidtwco

Update comments and add tests for `-Zrandomize-layout` for some guaranteed ZSTs

See rust-lang/reference#2262 . T-lang wants to make some additional guarantees about zero-sized `repr(Rust)` structs and enums, that changes to `-Zrandomize-layout` could theoretically break in the future. This PR adds comments to `-Zrandomize-layout`'s implementation and tests to `tests/ui/layout/randomize.rs` to prevent breaking those guarantees.

First commit is the guarantees that T-lang already FCP'd in rust-lang/reference#2262 .
Second commit is an additional guarantee (that zero-variant repr(Rust) enums are ZSTs) that's at rust-lang/reference#2293 (FCP now completed)
…=davidtwco

doc: document wasm import symbol mangling

Document that foreign items from wasm_import_module extern blocks are mangled even with #[no_mangle] or #[link_name], so same-named imports from different WebAssembly modules remain distinct.
…dtwco

early_otherwise: Don't hoist dereferences when the otherwise branch is reachable

Fixes rust-lang#159591.

A place may contain a dereference that cannot be safely hoisted when the otherwise branch is reachable.
…=davidtwco

run `tests/assembly-llvm/asm/aarch64-types.rs` for `aarch64_be`

We may as well, tangentially related to rust-lang#154342.

r? davidtwco
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Jul 23, 2026
@rustbot rustbot added 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. labels Jul 23, 2026
@jhpratt

jhpratt commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

@bors r+ rollup=never p=5

@rust-bors

rust-bors Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

📌 Commit bea0f25 has been approved by jhpratt

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 Jul 23, 2026
@jhpratt jhpratt closed this Jul 23, 2026
@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 Jul 23, 2026
@rust-bors

rust-bors Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved due to being closed.

@jhpratt
jhpratt deleted the rollup-qVfLydt branch July 23, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants