about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-03-28 09:17:24 +0000
committerGitHub <noreply@github.com>2025-03-28 09:17:24 +0000
commitc2922d1213800157f013645d3dba6e8ed584b3a4 (patch)
tree08ac7c1c8b3f4a5ed1a19b501f3e35ea16d598d5 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent61b38e76b2df9346c4005464e15900a0e654e44a (diff)
parent79c69112dc1dd5803af4e2682552c1ad2dde14ca (diff)
downloadrust-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/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions