From 6271660ab3e8bd4bea4e890f1d2b1ab48b65450b Mon Sep 17 00:00:00 2001 From: soruh Date: Fri, 31 Jul 2026 03:21:25 +0200 Subject: [PATCH] Allow audited type-erased Send fields --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 06c0966..e6bf3f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,6 +34,11 @@ shadow_reuse = "deny" shadow_same = "deny" shadow_unrelated = "deny" +# The wrappers' private field is deliberately type-erased and therefore cannot +# express Send/Sync structurally. Their audited APIs preserve the element bounds +# documented on the corresponding unsafe implementations. +non_send_fields_in_send_ty = { level = "allow", priority = 1 } + # Force using expect and providing a reason allow_attributes = "deny" allow_attributes_without_reason = "deny"