Skip to content

Commit a9434c0

Browse files
Enforce unsafe binders must be Copy (for now)
1 parent 62c68e1 commit a9434c0

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
@@ -116,6 +116,7 @@ fn check_rvalue<'tcx>(
116116
Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body, msrv),
117117
Rvalue::Repeat(operand, _)
118118
| Rvalue::Use(operand)
119+
| Rvalue::WrapUnsafeBinder(operand, _)
119120
| Rvalue::Cast(
120121
CastKind::PointerWithExposedProvenance
121122
| CastKind::IntToInt

0 commit comments

Comments
 (0)