diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-03-28 09:17:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-28 09:17:24 +0000 |
| commit | c2922d1213800157f013645d3dba6e8ed584b3a4 (patch) | |
| tree | 08ac7c1c8b3f4a5ed1a19b501f3e35ea16d598d5 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 61b38e76b2df9346c4005464e15900a0e654e44a (diff) | |
| parent | 79c69112dc1dd5803af4e2682552c1ad2dde14ca (diff) | |
| download | rust-c2922d1213800157f013645d3dba6e8ed584b3a4.tar.gz rust-c2922d1213800157f013645d3dba6e8ed584b3a4.zip | |
Make `collapsible_if` recognize the `let_chains` feature (#14481)
Until `if let` chains are stabilized, we do not collapse them together or with other `if` expressions unless the `let_chains` feature is enabled. This is the case for example in Clippy sources. This was made possible by converting the `collapsible_if` to a late lint to get access to the set of enabled features. This allows this PR to supersede #14455 and no longer require an additional configuration option. The three commits are, in order: - a conversion of the existing early lint to a late lint, with no new feature or tests changes - the addition of the `let_chains` feature detection and action, and tests - the application of the enhanced lint to Clippy sources (136 files modified) changelog: [`collapsible_if`]: recognize the rust compiler `let_chains` feature r? @flip1995
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
