about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorWilliam Throwe <wtt6@cornell.edu>2015-11-24 23:39:11 -0500
committerWilliam Throwe <wtt6@cornell.edu>2015-11-26 00:36:09 -0500
commit7a7d48127046dd651d75dfc68c6202221edebc57 (patch)
tree5801cefd23fd004e98d886524e3cbde45de47223 /src/libcore
parente24fffef8a560ddf968a866db8da96bc461f4038 (diff)
downloadrust-7a7d48127046dd651d75dfc68c6202221edebc57.tar.gz
rust-7a7d48127046dd651d75dfc68c6202221edebc57.zip
Mark raw pointer Send and Sync impls ?Sized
I'm pretty sure this code isn't actually used by the compiler, so this
is effectively a documentation change.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/marker.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs
index e41d63c7e6e..b584e59a825 100644
--- a/src/libcore/marker.rs
+++ b/src/libcore/marker.rs
@@ -35,9 +35,9 @@ pub unsafe trait Send {
 unsafe impl Send for .. { }
 
 #[stable(feature = "rust1", since = "1.0.0")]
-impl<T> !Send for *const T { }
+impl<T: ?Sized> !Send for *const T { }
 #[stable(feature = "rust1", since = "1.0.0")]
-impl<T> !Send for *mut T { }
+impl<T: ?Sized> !Send for *mut T { }
 
 /// Types with a constant size known at compile-time.
 ///
@@ -230,9 +230,9 @@ pub unsafe trait Sync {
 unsafe impl Sync for .. { }
 
 #[stable(feature = "rust1", since = "1.0.0")]
-impl<T> !Sync for *const T { }
+impl<T: ?Sized> !Sync for *const T { }
 #[stable(feature = "rust1", since = "1.0.0")]
-impl<T> !Sync for *mut T { }
+impl<T: ?Sized> !Sync for *mut T { }
 
 macro_rules! impls{
     ($t: ident) => (