Skip to content

remove EnumSizeOpt - #162384

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:EnumSizeOpt
Sep 7, 2026
Merged

remove EnumSizeOpt#162384
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:EnumSizeOpt

Conversation

@RalfJung

@RalfJung RalfJung commented Sep 6, 2026

Copy link
Copy Markdown
Member

This was landed years ago but has never been enabled due to odd issues that came up when merging it. The issues never got investigated (or at least, not with any conclusions). The author of the pass said they don't have time to work on it and recommend removing it.

So... let's do that.
r? @saethlin
Fixes #154413

@rustbot

rustbot commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

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 Sep 6, 2026
@saethlin

saethlin commented Sep 6, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup (removing an off-by-default MIR opt shouldn't have any collateral impact or conflict much with other PRs)

@rust-bors

rust-bors Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

📌 Commit eb7a027 has been approved by saethlin

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 Sep 6, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Sep 7, 2026
remove EnumSizeOpt

This was landed years ago but has never been enabled due to odd issues that came up when merging it. The issues never got investigated (or at least, not with any conclusions). The author of the pass [said](rust-lang#154413 (comment)) they don't have time to work on it and recommend removing it.

So... let's do that.
r? @saethlin
Fixes rust-lang#154413
rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
Rollup of 4 pull requests

Successful merges:

 - #162367 (Use `reason` for tracked item diagnostics from `cfg_select!`)
 - #162319 (docs(core): correct ARMv8-M Baseline atomic CAS support)
 - #162383 (Add a hint for using `nolimit` to the limiting error message)
 - #162384 (remove EnumSizeOpt)
rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
Rollup of 14 pull requests

Successful merges:

 - #162404 (`rust-analyzer` subtree update)
 - #161624 (diagnostics: Point closure trait errors at captured values)
 - #161697 (make `Complex` ABI-compatible on sparc64 and powerpc64)
 - #162182 (delay unexpected successful goal during ambiguity reporting)
 - #162328 (Allow overriding filecheck even if LLVM is built or downloaded)
 - #162367 (Use `reason` for tracked item diagnostics from `cfg_select!`)
 - #162381 (fix bare urls split text)
 - #162388 (std: fix set_permissions_nofollow on espidf and horizon)
 - #162319 (docs(core): correct ARMv8-M Baseline atomic CAS support)
 - #162341 (add regression test for packus_epi16 issue)
 - #162383 (Add a hint for using `nolimit` to the limiting error message)
 - #162384 (remove EnumSizeOpt)
 - #162390 (remove outdated comment in `UnsafeCell::raw_get` source)
 - #162397 (docs: Ask for ABI documentation in the platform support template)
@rust-bors
rust-bors Bot merged commit f86d0cf into rust-lang:main Sep 7, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 7, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
Rollup merge of #162384 - RalfJung:EnumSizeOpt, r=saethlin

remove EnumSizeOpt

This was landed years ago but has never been enabled due to odd issues that came up when merging it. The issues never got investigated (or at least, not with any conclusions). The author of the pass [said](#154413 (comment)) they don't have time to work on it and recommend removing it.

So... let's do that.
r? @saethlin
Fixes #154413
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.

large_enums (EnumSizeOpt) MIR pass is unsound

3 participants