about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-09-12 12:17:26 +0800
committerGitHub <noreply@github.com>2018-09-12 12:17:26 +0800
commitb365de94df941ae1bace2744620e453972560cdf (patch)
tree06aadbf161c53df19d3070e85d9d55affc0af365 /src/test/incremental/thinlto
parent4f62077a2c203a74363589db8c010de11ba5f5d7 (diff)
parent8bbe1789fae9c53be44c30159e47cf4ac6bc0f9e (diff)
downloadrust-b365de94df941ae1bace2744620e453972560cdf.tar.gz
rust-b365de94df941ae1bace2744620e453972560cdf.zip
Rollup merge of #54031 - ljedrz:cleanup_passes, r=oli-obk
A few cleanups and minor improvements to rustc_passes

- prefer `if let` to `match` when only one branch matters
- prefer equality checks to pattern matching
- prefer `is_empty` to `len() == 0`
- collapse a couple of `if` expressions
- rename `label` to `destination` when destructuring `hir::ExprKind::Continue`
- `derive Copy` for `Promotability`
- `impl BitAndAssign` for `Promotability`
- a few formatting fixes
- a few other minor cleanups
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions