We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NotSendSyncAcrossAllPlatforms
1 parent e226b65 commit 735077cCopy full SHA for 735077c
1 file changed
src/platform/mod.rs
@@ -747,19 +747,3 @@ mod platform_impl {
747
.into()
748
}
749
750
-
751
-// The following zero-sized types are for applying Send/Sync restrictions to ensure
752
-// consistent behaviour across different platforms. These verbosely named types are used
753
-// (rather than using the markers directly) in the hope of making the compile errors
754
-// slightly more helpful.
755
-//
756
-// TODO: Remove these in favour of using negative trait bounds if they stabilise.
757
758
-// A marker used to remove the `Send` and `Sync` traits.
759
-struct NotSendSyncAcrossAllPlatforms(std::marker::PhantomData<*mut ()>);
760
761
-impl Default for NotSendSyncAcrossAllPlatforms {
762
- fn default() -> Self {
763
- NotSendSyncAcrossAllPlatforms(std::marker::PhantomData)
764
- }
765
-}
0 commit comments