diff options
| author | Timo <30553356+y21@users.noreply.github.com> | 2025-06-30 18:46:11 +0000 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2025-08-02 07:46:08 -0400 |
| commit | 4c75f2749748453f06bdf65d547363c36fe5fd9e (patch) | |
| tree | ec7d0186b0d74e504f6fc4cc7400e11d9730d602 /tests/rustdoc-js-std/parser-errors.js | |
| parent | db83b3bf6b57ebc029a6e76a7ace3a9f2ae0551f (diff) | |
| download | rust-4c75f2749748453f06bdf65d547363c36fe5fd9e.tar.gz rust-4c75f2749748453f06bdf65d547363c36fe5fd9e.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 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
