about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-10-19 23:15:00 +0200
committerGitHub <noreply@github.com>2016-10-19 23:15:00 +0200
commit123a6ef25cdd5463eef183d0113e3166cdd7b800 (patch)
tree62a81a2af818ae4dc089b1bdf5ea3ea37fa0d20e /src/test/run-pass/thinlto
parentce369bfa1120b1293933c8e12a1c18e62a2a153e (diff)
parent1e7cd5edcca6598720e6a6cb7b7a2c103018028d (diff)
downloadrust-123a6ef25cdd5463eef183d0113e3166cdd7b800.tar.gz
rust-123a6ef25cdd5463eef183d0113e3166cdd7b800.zip
Rollup merge of #37241 - zackmdavis:if_let_over_none_spaced_empty_block_arm, r=nikomatsakis
prefer `if let` to match with `None => { }` arm in some places

In #34268 (8531d581), we replaced matches of None to the unit value `()`
with `if let`s in places where it was deemed that this made the code
unambiguously clearer and more idiomatic. In #34638 (d37edef9), we did
the same for matches of None to the empty block `{}`.

A casual observer, upon seeing these commits fly by, might suppose that
the matter was then settled, that no further pull requests on this
utterly trivial point of style could or would be made. Unless ...

It turns out that sometimes people write the empty block with a space in
between the braces. Who knew?
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions