diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-06-30 19:45:09 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-06-30 19:51:13 +0200 |
| commit | c69905a995dad100185ef38fffcb1ec3079ec66a (patch) | |
| tree | 9eb0b418992c43526b812ccaae1106a0744cd2da /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | |
| parent | b57bf6b64d60b4ac925c07b9a46694a8259ba01e (diff) | |
| download | rust-c69905a995dad100185ef38fffcb1ec3079ec66a.tar.gz rust-c69905a995dad100185ef38fffcb1ec3079ec66a.zip | |
Do not remove method call if type is adjusted
Propose to replace `x.map_or(false, |y| y == z)` by `x == Some(z)` only if `x` is not adjusted. Otherwise, the type of `x` in the comparaison may not be the expected one, as it may be the product of an auto-deref.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
