We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e24fffe commit 7a7d481Copy full SHA for 7a7d481
src/libcore/marker.rs
@@ -35,9 +35,9 @@ pub unsafe trait Send {
35
unsafe impl Send for .. { }
36
37
#[stable(feature = "rust1", since = "1.0.0")]
38
-impl<T> !Send for *const T { }
+impl<T: ?Sized> !Send for *const T { }
39
40
-impl<T> !Send for *mut T { }
+impl<T: ?Sized> !Send for *mut T { }
41
42
/// Types with a constant size known at compile-time.
43
///
@@ -230,9 +230,9 @@ pub unsafe trait Sync {
230
unsafe impl Sync for .. { }
231
232
233
-impl<T> !Sync for *const T { }
+impl<T: ?Sized> !Sync for *const T { }
234
235
-impl<T> !Sync for *mut T { }
+impl<T: ?Sized> !Sync for *mut T { }
236
237
macro_rules! impls{
238
($t: ident) => (
0 commit comments