Inhibit all-absent-variant optimization for all enum reprs that inhibit layout optimization, not just repr(C).#146989
Conversation
|
r? @SparrowLii rustbot has assigned @SparrowLii. Use |
|
Does this need a T-lang FCP? |
This comment has been minimized.
This comment has been minimized.
…it layout optimization, not just repr(C).
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
This looks fine to me. I'd like at least someone from t-lang to have a aware r? lang |
|
@nikomatsakis Friendly ping. Does this need a T-lang FCP? |
|
@rustbot label I-lang-nominated |
|
For context, |
|
@bors2 try |
|
Unknown command "2". Run |
This comment has been minimized.
This comment has been minimized.
Inhibit all-absent-variant optimization for all enum reprs that inhibit layout optimization, not just repr(C).
|
We talked about this in today's @rust-lang/lang meeting.
We'd like to evaluate making this change. It'll need relnotes (in the compatibility section), and we should also ping some of the folks who do creative serialization/deserialization stunts (e.g. |
|
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
|
Seems like all the retried regression results were the same as before. None seem related. regressionsCrates.io: Probably flaky
Unknown, but probaly flaky
Github regressions (all flaky or probably flaky):
@rustbot label I-lang-nominated |
|
@rfcbot resolve crater Thank you for the analysis! |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
|
This was approved and the FCP was completed successfully. I suppose it's time to merge it @bors r+ |
…uwer Rollup of 9 pull requests Successful merges: - #146989 (Inhibit all-absent-variant optimization for all enum reprs that inhibit layout optimization, not just repr(C).) - #151991 (std: sys: pal: uefi: os: Implement split_paths) - #152794 (Fix ICE in `try_to_raw_bytes` when array elements have mismatched) - #153052 (std random.rs: update link to RTEMS docs) - #153054 (docs: note env var influence on `temp_dir` and `env_clear` on Windows) - #153061 (cleanup `tests/ui/box`, part 2) - #153197 (style: Update doctests for `TryFrom<integer> for bool` and `From<bool> for float`) - #153210 (Fix ICE on empty file with -Zquery-dep-graph) - #153228 (Remove `TranslationError`)
|
Cc @rust-lang/lang-docs @rust-lang/fls |
Rollup merge of #146989 - zachs18:fix-146984, r=SparrowLii Inhibit all-absent-variant optimization for all enum reprs that inhibit layout optimization, not just repr(C). *[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/pull/146989)* Fixes #146984
View all comments
Fixes #146984