about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2016-10-17 19:00:20 -0700
committerZack M. Davis <code@zackmdavis.net>2016-10-17 19:00:20 -0700
commit1e7cd5edcca6598720e6a6cb7b7a2c103018028d (patch)
tree194e5412e103d318657d737d9d67caf27b46820e /src/test/run-pass/thinlto
parente0111758eb4f215db4ec26f809ef3edf5dfb66f5 (diff)
downloadrust-1e7cd5edcca6598720e6a6cb7b7a2c103018028d.tar.gz
rust-1e7cd5edcca6598720e6a6cb7b7a2c103018028d.zip
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