Clippy demands you violate ownership to satisfy assigning_clones
#12757
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
I believe this isn't checking to see if it's in any kind of looping structure which makes this kind of lint extremely fallible:
Reproducer
The source is here:
https://github.com/pgcentralfoundation/pgrx/blob/beb79011a377bb96c34fcc50ae2d652aa1419eb5/pgrx-sql-entity-graph/src/pg_extern/returning.rs#L107-L120
Version
Additional Labels
@rustbot label: +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: