about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-29 09:54:51 +0000
committerbors <bors@rust-lang.org>2023-06-29 09:54:51 +0000
commit9020937bbe0b8baa4183b481949c09cca52936c8 (patch)
treea81a5a782884547644997b430a2749580c5767dd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent10ce1a6d5e7c36cf9b3cae12baf8344726e6de93 (diff)
parentbb42b1808156194c9293621a8a1647ac957133ea (diff)
downloadrust-9020937bbe0b8baa4183b481949c09cca52936c8.tar.gz
rust-9020937bbe0b8baa4183b481949c09cca52936c8.zip
Auto merge of #11030 - darklyspaced:master, r=Centri3,xFrednet
suggests `is_some_and` over `map().unwrap`

changelog: Enhancement: [`option_map_unwrap_or`] now considers the [`msrv`] config when creating the suggestion.

 * modified option_map_unwrap_or lint to recognise when an `Option<T>` is mapped to an `Option<bool>` with false being used when `None` is detected; suggests the use of `is_some_and` instead
 * msrv is set to 1.70.0 for this lint; when `is_some_and` was stabilised

fixes #9125
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions