-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Remove bounds check when array is indexed by enum #103584
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do some manual rustfmting since rustfmt is broken on this file
Formatted some more, let me know if it's still bad. |
This comment has been minimized.
This comment has been minimized.
it is you can just copy your added code into the playground and rustfmt it there and copy it back, I think that should work |
0f6652d
to
97c9365
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the comments have been addressed, squash all commits
@bors delegate+ r=me with commits squashed |
✌️ @ouz-a can now approve this pull request |
@bors r=oli-obk |
📌 Commit 689d9d4b426661a2df66ccab014bd2fe76e5cfe0 has been approved by It is now in the queue for this repository. |
☔ The latest upstream changes (presumably #103787) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r=oli-obk |
Rollup of 6 pull requests Successful merges: - rust-lang#103061 (Rewrite implementation of `#[alloc_error_handler]`) - rust-lang#103584 (Remove bounds check when array is indexed by enum) - rust-lang#103706 (Fix E0433 No Typo Suggestions) - rust-lang#103729 (interpret: fix align_of_val on packed types) - rust-lang#103759 (Use `adt_def` during type collection.) - rust-lang#103809 (Fix a typo in std::net mod doc comment) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
As the title says, this reverts the behavior introduced with 1.64.
Fixes #102303
r? @oli-obk