about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-06-30 19:45:09 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-06-30 19:51:13 +0200
commitc69905a995dad100185ef38fffcb1ec3079ec66a (patch)
tree9eb0b418992c43526b812ccaae1106a0744cd2da /compiler/rustc_codegen_llvm/src
parentb57bf6b64d60b4ac925c07b9a46694a8259ba01e (diff)
downloadrust-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_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions