Skip to content

EnumSizeOpt: use Allocation::write_scalar instead of manual endianess logic#154500

Merged
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
RalfJung:enum-opt-endianess
Mar 28, 2026
Merged

EnumSizeOpt: use Allocation::write_scalar instead of manual endianess logic#154500
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
RalfJung:enum-opt-endianess

Conversation

@RalfJung
Copy link
Copy Markdown
Member

The first commits makes the test actually show the bytes of the newly generated allocation, so we'd notice if something goes wrong.

The 2nd commit replaces manual endianess handling with use of proper Allocation methods.

r? @oli-obk

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 28, 2026

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@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 Mar 28, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 28, 2026

oli-obk is not on the review rotation at the moment.
They may take a while to respond.

@oli-obk
Copy link
Copy Markdown
Contributor

oli-obk commented Mar 28, 2026

Oh nice!

@bors r+ rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Mar 28, 2026

📌 Commit 1dfbb89 has been approved by oli-obk

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 Mar 28, 2026
rust-bors bot pushed a commit that referenced this pull request Mar 28, 2026
Rollup of 11 pull requests

Successful merges:

 - #152880 (Tweak incorrect assoc item note)
 - #153526 (Fix LegacyKeyValueFormat report from docker build: i686)
 - #153613 (interpreter error reporting: remove arguments that are always the same)
 - #154029 (Replace `truncate(0)` with `clear()`)
 - #154125 (Inline and remove `DepGraphData::try_mark_parent_green`.)
 - #154185 (Prevent no_threads RwLock's write() impl from setting mode to -1 when it is locked for reading)
 - #154394 (Normalize rustc path prefix when testing `-Z track-diagnostics`)
 - #154450 (Use the normal arg-parsing machinery for `-Zassert-incr-state`)
 - #154475 (Emit a pre-expansion feature gate warning for `box`'ed struct field patterns)
 - #154500 (EnumSizeOpt: use Allocation::write_scalar instead of manual endianess logic)
 - #154502 (interpret: ensure that untupled arguments are actually tuples)
@rust-bors rust-bors bot merged commit 2645f0d into rust-lang:main Mar 28, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 28, 2026
rust-timer added a commit that referenced this pull request Mar 28, 2026
Rollup merge of #154500 - RalfJung:enum-opt-endianess, r=oli-obk

EnumSizeOpt: use Allocation::write_scalar instead of manual endianess logic

The first commits makes the test actually show the bytes of the newly generated allocation, so we'd notice if something goes wrong.

The 2nd commit replaces manual endianess handling with use of proper `Allocation` methods.

r? @oli-obk
@RalfJung RalfJung deleted the enum-opt-endianess branch March 28, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

3 participants