Skip to content
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

Use step_unchecked more liberally in range iter impls #73490

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

CAD97
Copy link
Contributor

@CAD97 CAD97 commented Jun 19, 2020

Without these _unchecked, these operations on iterators of char fail to optimize out the unreachable panicking condition on overflow.

cc @cuviper rayon-rs/rayon#771 where this was discovered.

@rust-highfive
Copy link
Collaborator

r? @withoutboats

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 19, 2020
@dtolnay dtolnay added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Jun 19, 2020
@Elinvynia Elinvynia added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 2, 2020
@Dylan-DPC-zz
Copy link

r? @Amanieu

@rust-highfive rust-highfive assigned Amanieu and unassigned withoutboats Jul 3, 2020
@Amanieu
Copy link
Member

Amanieu commented Jul 11, 2020

@bors r+ rollup=never

Disabling rollup for perf

@bors
Copy link
Contributor

bors commented Jul 11, 2020

📌 Commit 7779a11 has been approved by Amanieu

@bors bors 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 Jul 11, 2020
@bors
Copy link
Contributor

bors commented Jul 14, 2020

⌛ Testing commit 7779a11 with merge c724b67...

@bors
Copy link
Contributor

bors commented Jul 14, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: Amanieu
Pushing c724b67 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 14, 2020
@bors bors merged commit c724b67 into rust-lang:master Jul 14, 2020
@CAD97 CAD97 deleted the range-unchecked-stepping branch July 22, 2020 00:02
@cuviper cuviper added this to the 1.46 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants