diff options
| author | bors <bors@rust-lang.org> | 2021-03-31 21:57:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-31 21:57:48 +0000 |
| commit | 8cf7d9b037bbdf5cd970b2f133ddd7d39acc1588 (patch) | |
| tree | 8feaa3043bd6d70bb470d559eb8c2274351ef84f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 459bca84b72ea92a8b7cfffb53a14d9cb3de0a4b (diff) | |
| parent | 827d6aaad4a7ec24dd3191160cefe0c1e0b654b9 (diff) | |
| download | rust-8cf7d9b037bbdf5cd970b2f133ddd7d39acc1588.tar.gz rust-8cf7d9b037bbdf5cd970b2f133ddd7d39acc1588.zip | |
Auto merge of #7010 - camsteffen:if-chain-lint, r=llogiq
Internal `if_chain!` lints
changelog: none
We use `if_chain!` a lot. So this enforces some style rules around it, internal only.
Lints when...
* Nested `if`/`if_chain!` can be collapsed
* An `if_chain!` starts with `let` or ends with `let ..; then {..}`
* An `if_chain!` has only one `if`
* An `if_chain!` contains `if .. && ..;` that spans multiple lines
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
