diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2015-03-11 18:53:55 -0500 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-03-20 16:43:11 +0100 |
| commit | 38dbcb2e3718eab4bac9f5a3ec8226d7ee4f40a7 (patch) | |
| tree | f315ac84816c98b0251edcf98e1f3f92ff182fed /src/libcore | |
| parent | 01d24297eb6fe16abdf7869c60519650e3490faf (diff) | |
| download | rust-38dbcb2e3718eab4bac9f5a3ec8226d7ee4f40a7.tar.gz rust-38dbcb2e3718eab4bac9f5a3ec8226d7ee4f40a7.zip | |
Check trait unsafety for defaulted traits
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/marker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index e980858c443..0197ee82c77 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -39,7 +39,7 @@ pub unsafe trait Send : MarkerTrait { // empty. } -impl Send for .. { } +unsafe impl Send for .. { } impl<T> !Send for *const T { } impl<T> !Send for *mut T { } @@ -205,7 +205,7 @@ pub unsafe trait Sync : MarkerTrait { // Empty } -impl Sync for .. { } +unsafe impl Sync for .. { } impl<T> !Sync for *const T { } impl<T> !Sync for *mut T { } |
