Skip to content

Rollup of 4 pull requests #34291

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

Merged
merged 8 commits into from
Jun 16, 2016
Merged

Rollup of 4 pull requests #34291

merged 8 commits into from
Jun 16, 2016

Conversation

petrochenkov and others added 5 commits June 11, 2016 00:12
Casual grepping revealed some places in the codebase (some of which
antedated `if let`'s December 2014 stabilization in c200ae5a) where we
were using a match with a `None => ()` arm where (in the present
author's opinion) an `if let` conditional would be more readable. (Other
places where matching to the unit value did seem to better express the
intent were left alone.)

It's likely that we don't care about making such trivial,
non-functional, sheerly æsthetic changes.

But if we do, this is a patch.
@Manishearth
Copy link
Member Author

@bors r+ p=10

@bors
Copy link
Collaborator

bors commented Jun 15, 2016

📌 Commit 22a96e0 has been approved by Manishearth

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

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

@bors
Copy link
Collaborator

bors commented Jun 15, 2016

⌛ Testing commit 22a96e0 with merge 2b2215b...

@bors
Copy link
Collaborator

bors commented Jun 16, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@Manishearth
Copy link
Member Author

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 16, 2016

📌 Commit e3d6bb1 has been approved by Manishearth

Remove last traces of identifier hygiene from HIR

rust-lang@e783a0a removed the [last](rust-lang#33654 (comment)) [use](rust-lang#33654 (comment)) of hygiene at post-resolve compilation stages, so we can avoid renaming during lowering to HIR and just keep original names.

r? @nrc
…m, r=jseyfried

prefer `if let` to match with `None => ()` arm in some places

Casual grepping revealed some places in the codebase (some of which
antedated `if let`'s December 2014 stabilization in c200ae5a) where we
were using a match with a `None => ()` arm where (in the present
author's opinion) an `if let` conditional would be more readable. (Other
places where matching to the unit value did seem to better express the
intent were left alone.)

It's likely that we don't care about making such trivial,
non-functional, sheerly æsthetic changes.

But if we do, this is a patch.
@bors
Copy link
Collaborator

bors commented Jun 16, 2016

⌛ Testing commit e3d6bb1 with merge 58adb07...

bors added a commit that referenced this pull request Jun 16, 2016
Rollup of 4 pull requests

- Successful merges: #34207, #34268, #34270, #34290
- Failed merges:
@bors bors merged commit e3d6bb1 into rust-lang:master Jun 16, 2016
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants