Skip to content

Commit

Permalink
add new rval, pull deref early
Browse files Browse the repository at this point in the history
  • Loading branch information
ouz-a committed Jul 12, 2022
1 parent 1e033a9 commit 9d86ce6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_utils/src/qualify_min_const_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ fn check_rvalue<'tcx>(
Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place) => {
check_place(tcx, *place, span, body)
},
Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body),
Rvalue::Repeat(operand, _)
| Rvalue::Use(operand)
| Rvalue::Cast(
Expand Down

0 comments on commit 9d86ce6

Please sign in to comment.