Skip to content

Clean up const-hack PRs now that const if / match exist.#67657

Merged
bors merged 4 commits intorust-lang:masterfrom
jumbatm:cleanup-const-hack
Dec 30, 2019
Merged

Clean up const-hack PRs now that const if / match exist.#67657
bors merged 4 commits intorust-lang:masterfrom
jumbatm:cleanup-const-hack

Conversation

@jumbatm
Copy link
Contributor

@jumbatm jumbatm commented Dec 27, 2019

Closes #67627.

Cleans up these merged PRs tagged with const-hack:

reverting their contents to have the match or if expressions they originally contained.

r? @oli-obk

There's one more PR in those tagged with const-hack that originally wasn't merged (#65107). Reading the thread, it looks like it was originally closed because the const-hack for the checked arithmetic non-negligibly hurt performance, and because there was no way to manipulate the returned Option at compile time anyway (with neither const if nor const match). Would you like me to add these changes to the changes from this PR here too, now that we have the necessary features?

Loading
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up "const_hack" PRs now that const if/match exists

5 participants