diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2025-09-18 05:00:41 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 05:00:41 +0000 |
| commit | e1130b694af2c503a8ce36b786b69c5e40b1f1e6 (patch) | |
| tree | b9729fce31589819fd525e2b4e5d5c745fcdbe6c /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | a67fe9c35de2a4cf2864e3b9c49e360af0f5e577 (diff) | |
| parent | 15ce2093d53e3274e79d55858baa82ccc9c09b02 (diff) | |
| download | rust-e1130b694af2c503a8ce36b786b69c5e40b1f1e6.tar.gz rust-e1130b694af2c503a8ce36b786b69c5e40b1f1e6.zip | |
fix `option_if_let_else` when `Err` variant is ignored (#14429)
This fixes an issue where clippy suggests passing a function that takes no arguments as the first argument of `Result::map_or_else`. The function needs to take one argument. Example that triggers the issue: [Playground link](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=0b6f9bc7b6ab4dcd26745065544e0b8a) Fixes #10335. changelog: [`option_if_let_else`]: fix incorrect suggestion when the contents of an `Err` variant are ignored
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
