diff options
| author | bors <bors@rust-lang.org> | 2024-04-14 19:27:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-14 19:27:42 +0000 |
| commit | 7063e3435c0b446e87f64232e6a825787f9db787 (patch) | |
| tree | 1a5675f3d25e19455078e8f0c117f37971f92b9b /compiler/rustc_codegen_llvm/src | |
| parent | 832fdb6d30632d275b5a82c4e99f29267e8fac32 (diff) | |
| parent | b89fa5364f3de5fe17e65f6b42865e5b95f1ad9a (diff) | |
| download | rust-7063e3435c0b446e87f64232e6a825787f9db787.tar.gz rust-7063e3435c0b446e87f64232e6a825787f9db787.zip | |
Auto merge of #12094 - yuxqiu:search_is_some, r=xFrednet,ARandomDev99
fix: incorrect suggestions when `.then` and `.then_some` is used fixes #11910 In the current implementation of `search_is_some`, if a `.is_none` call is followed by a `.then` or `.then_some` call, the generated `!` will incorrectly negate the values returned by the `then` and `.then_some` calls. To fix this, we need to add parentheses to the generated suggestions when appropriate. changelog: [`search_is_some`]: add parenthesis to suggestions when appropriate
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
