about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorTimo <30553356+y21@users.noreply.github.com>2025-06-30 18:46:11 +0000
committerGitHub <noreply@github.com>2025-06-30 18:46:11 +0000
commit936baca0cd41e140d0351208657c1d52cdba86b1 (patch)
tree64c8259802d75e6fb3c8d9222289a37ed82159de /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parentb57bf6b64d60b4ac925c07b9a46694a8259ba01e (diff)
parentad7de948a871d7f11bcb62b4c301506de620085d (diff)
downloadrust-936baca0cd41e140d0351208657c1d52cdba86b1.tar.gz
rust-936baca0cd41e140d0351208657c1d52cdba86b1.zip
Consider deref'ed argument as non-temporary (#15172)
If there are more than one dereference (there is one corresponding
matched with a borrow in any case), consider that the argument might
point to a place expression, which is the safest choice.

Also, use an appropriate number of dereferences in suggestions involving
arguments using themselves multiple dereferences.

Fixes rust-lang/rust-clippy#15166

changelog: [`swap_with_temporary`]: fix false positive leading to
different semantics being suggested, and use the right number of
dereferences in suggestion

r? y21

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_SUMMARY_START -->

### Summary Notes

-
[beta-nomination](https://github.com/rust-lang/rust-clippy/pull/15172#issuecomment-3016752569)
by [samueltardieu](https://github.com/samueltardieu)

*Managed by `@rustbot`—see
[help](https://forge.rust-lang.org/triagebot/note.html) for details*

<!-- TRIAGEBOT_SUMMARY_END -->
<!-- TRIAGEBOT_END -->
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions