Skip to content

Commit 7a7d481

Browse files
committed
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.
1 parent e24fffe commit 7a7d481

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/marker.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ pub unsafe trait Send {
3535
unsafe impl Send for .. { }
3636

3737
#[stable(feature = "rust1", since = "1.0.0")]
38-
impl<T> !Send for *const T { }
38+
impl<T: ?Sized> !Send for *const T { }
3939
#[stable(feature = "rust1", since = "1.0.0")]
40-
impl<T> !Send for *mut T { }
40+
impl<T: ?Sized> !Send for *mut T { }
4141

4242
/// Types with a constant size known at compile-time.
4343
///
@@ -230,9 +230,9 @@ pub unsafe trait Sync {
230230
unsafe impl Sync for .. { }
231231

232232
#[stable(feature = "rust1", since = "1.0.0")]
233-
impl<T> !Sync for *const T { }
233+
impl<T: ?Sized> !Sync for *const T { }
234234
#[stable(feature = "rust1", since = "1.0.0")]
235-
impl<T> !Sync for *mut T { }
235+
impl<T: ?Sized> !Sync for *mut T { }
236236

237237
macro_rules! impls{
238238
($t: ident) => (

0 commit comments

Comments
 (0)