Skip to content

Commit 4e3a7bf

Browse files
committed
Auto merge of rust-lang#98145 - ouz-a:some_branch, r=oli-obk
Pull Derefer before ElaborateDrops _Follow up work to rust-lang#97025 rust-lang#96549 rust-lang#96116 rust-lang#95887 #95649_ This moves `Derefer` before `ElaborateDrops` and creates a new `Rvalue` called `VirtualRef` that allows us to bypass many constraints for `DerefTemp`. r? `@oli-obk`
2 parents 9e2f689 + 9d86ce6 commit 4e3a7bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/qualify_min_const_fn.rs

+1
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)