diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2023-11-29 19:22:28 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2023-11-29 19:38:02 +0100 |
| commit | e3c73f17ecda066052409c0023c38eb7ffb6990a (patch) | |
| tree | fae1985d16f1ef6f66e5f99bed5c2da3fb1541c9 /compiler/rustc_codegen_llvm/src | |
| parent | 8b0bf6423dfaf5545014db85fcba7bc745beed4c (diff) | |
| download | rust-e3c73f17ecda066052409c0023c38eb7ffb6990a.tar.gz rust-e3c73f17ecda066052409c0023c38eb7ffb6990a.zip | |
`option_if_let_else`: do not trigger on expressions returning `()`
Fix #11893 Trigerring on expressions returning `()` uses the arguments of the `map_or_else()` rewrite only for their side effects. This does lead to code which is harder to read than the original.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
