From f436f9ca2963e33cc41802370bb9c551c833970e Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Mon, 22 Dec 2014 00:49:42 +0100 Subject: Make Send and Sync traits unsafe --- src/liballoc/arc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index e060ecad974..4810e15d68b 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -129,9 +129,9 @@ pub struct Weak { _ptr: *mut ArcInner, } -impl Send for Arc { } +unsafe impl Send for Arc { } -impl Sync for Arc { } +unsafe impl Sync for Arc { } struct ArcInner { strong: atomic::AtomicUint, -- cgit 1.4.1-3-g733a5