diff options
| author | bors <bors@rust-lang.org> | 2015-11-26 20:07:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-11-26 20:07:05 +0000 |
| commit | 8baaf0ad0792697b35a4fcf6c42a4137b35167de (patch) | |
| tree | b7fd38f43a8890af3703cd9460d05d46476a630c | |
| parent | 6ef02eff89e3d2a29eab3346bff393821df6e033 (diff) | |
| parent | 7a7d48127046dd651d75dfc68c6202221edebc57 (diff) | |
| download | rust-8baaf0ad0792697b35a4fcf6c42a4137b35167de.tar.gz rust-8baaf0ad0792697b35a4fcf6c42a4137b35167de.zip | |
Auto merge of #30068 - wthrowe:unsized-pointer-impls, r=alexcrichton
I'm pretty sure this code isn't actually used by the compiler, so this is effectively a documentation change.
| -rw-r--r-- | src/libcore/marker.rs | 8 |
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) => ( |
