diff options
| author | bors <bors@rust-lang.org> | 2023-06-29 09:54:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-29 09:54:51 +0000 |
| commit | 9020937bbe0b8baa4183b481949c09cca52936c8 (patch) | |
| tree | a81a5a782884547644997b430a2749580c5767dd /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 10ce1a6d5e7c36cf9b3cae12baf8344726e6de93 (diff) | |
| parent | bb42b1808156194c9293621a8a1647ac957133ea (diff) | |
| download | rust-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_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
