about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-01-31 02:04:10 +0000
committerMichael Goulet <michael@errs.io>2025-01-31 17:40:28 +0000
commita9434c08e242e0fb404edcc2b672bb5f3e687dc0 (patch)
tree81378aa71a99d02b7895c87d2e41b8746b8142b2
parent62c68e15b8c41d0e42c62bb59f7ab7aa5c5130ea (diff)
downloadrust-a9434c08e242e0fb404edcc2b672bb5f3e687dc0.tar.gz
rust-a9434c08e242e0fb404edcc2b672bb5f3e687dc0.zip
Enforce unsafe binders must be Copy (for now)
-rw-r--r--clippy_utils/src/qualify_min_const_fn.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_utils/src/qualify_min_const_fn.rs b/clippy_utils/src/qualify_min_const_fn.rs
index 916017b09dd..0aaef91e48a 100644
--- a/clippy_utils/src/qualify_min_const_fn.rs
+++ b/clippy_utils/src/qualify_min_const_fn.rs
@@ -116,6 +116,7 @@ fn check_rvalue<'tcx>(
         Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body, msrv),
         Rvalue::Repeat(operand, _)
         | Rvalue::Use(operand)
+        | Rvalue::WrapUnsafeBinder(operand, _)
         | Rvalue::Cast(
             CastKind::PointerWithExposedProvenance
             | CastKind::IntToInt