fix: redundant_clone FP on enum cast
This commit is contained in:
parent
714c64c7a1
commit
1066ee09ed
3 changed files with 31 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ impl<'tcx> Visitor<'tcx> for V<'_> {
|
|||
}
|
||||
if matches!(
|
||||
ctx,
|
||||
PlaceContext::NonMutatingUse(NonMutatingUseContext::Move)
|
||||
PlaceContext::NonMutatingUse(NonMutatingUseContext::Move | NonMutatingUseContext::Inspect)
|
||||
| PlaceContext::MutatingUse(MutatingUseContext::Borrow)
|
||||
) {
|
||||
self.results[i].local_consume_or_mutate_locs.push(loc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue