-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rollup of 4 pull requests #70775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 4 pull requests #70775
Conversation
The field are always re-ordered to minimize padding, regardless of the alignment of the discriminant
This commit changes some usage of mem::forget into mem::ManuallyDrop in some Vec, VecDeque, BTreeMap and Box methods. Before the commit, the generated IR for some of the methods was longer, and even after optimization, some unwinding artifacts were still present.
rustc_target: Some cleanup to `no_default_libraries`
Do not disable field reordering on enums with big discriminant The field are always re-ordered to minimize padding, regardless of the alignment of the discriminant (spinoff from rust-lang#70477)
Match options directly in the Fuse implementation Rather than using `as_ref()`, `as_mut()`, and `?`, we can use `match` directly to save a lot of generated code. This was mentioned as a possibility in rust-lang#70366 (comment), and I found that it had a very large impact on rust-lang#70332 using `Fuse` within `Chain`. Let's evaluate this change on its own first.
…Mark-Simulacrum,RalfJung use ManuallyDrop instead of forget inside collections This PR changes some usage of `mem::forget` into `mem::ManuallyDrop` in some `Vec`, `VecDeque`, `BTreeMap` and `Box` methods. Before the commit, the generated IR for some of the methods was longer, and even after optimization, some unwinding artifacts were still present.
@bors r+ p=4 rollup=never |
📌 Commit 55680e4 has been approved by |
@bors retry |
⌛ Testing commit 55680e4 with merge 257b52bbb224052467d91a491a9c75b83e486660... |
@bors retry |
⌛ Testing commit 55680e4 with merge 7f86ddf5fbcef31d71a6526b9d9ed408873d2c68... |
💔 Test failed - checks-azure |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
will reroll later |
Successful merges:
no_default_libraries
#70635 (rustc_target: Some cleanup tono_default_libraries
)Failed merges:
r? @ghost