Skip to content

Commit 9d86ce6

Browse files
committed
add new rval, pull deref early
1 parent 1e033a9 commit 9d86ce6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ fn check_rvalue<'tcx>(
124124
Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place) => {
125125
check_place(tcx, *place, span, body)
126126
},
127+
Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body),
127128
Rvalue::Repeat(operand, _)
128129
| Rvalue::Use(operand)
129130
| Rvalue::Cast(

0 commit comments

Comments
 (0)