about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2025-09-18 05:00:41 +0000
committerGitHub <noreply@github.com>2025-09-18 05:00:41 +0000
commite1130b694af2c503a8ce36b786b69c5e40b1f1e6 (patch)
treeb9729fce31589819fd525e2b4e5d5c745fcdbe6c /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parenta67fe9c35de2a4cf2864e3b9c49e360af0f5e577 (diff)
parent15ce2093d53e3274e79d55858baa82ccc9c09b02 (diff)
downloadrust-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