From f87dd656bf126ccc9e7dd5215d43054b90451fe7 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Thu, 19 Oct 2023 19:59:34 +0000 Subject: [PATCH 1/2] Remove Sized requirement for Send/Sync on VolatileRef This requirement was unecessary, and VolatileRef better mirrors &T without it. --- src/volatile_ref.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/volatile_ref.rs b/src/volatile_ref.rs index 0dbe697..28b181f 100644 --- a/src/volatile_ref.rs +++ b/src/volatile_ref.rs @@ -234,8 +234,8 @@ where { } -unsafe impl Send for VolatileRef<'_, T, A> where T: Sync {} -unsafe impl Sync for VolatileRef<'_, T, A> where T: Sync {} +unsafe impl Send for VolatileRef<'_, T, A> where T: Sync + ?Sized {} +unsafe impl Sync for VolatileRef<'_, T, A> where T: Sync + ?Sized {} impl fmt::Debug for VolatileRef<'_, T, A> where From baca80b46582377f06e25d278a492b6f18d7eb22 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 22 Mar 2024 14:24:44 +0100 Subject: [PATCH 2/2] Update changelog for #42 --- Changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Changelog.md b/Changelog.md index a27b03a..6ba9fe6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,7 @@ - Add implementations for `fmt::Pointer`, `PartialEq`, `Eq`, `PartialOrd`, `Ord` and `Hash`. - Update `very_unstable` feature to latest nightly +- Remove `Sized` requirement for `Send` and `Sync` impls on `VolatileRef` # 0.5.1 – 2023-06-24