Skip to content

Commit 7809e76

Browse files
committed
Auto merge of #26464 - Gankro:send, r=alexcrichton
Vec contains `Unique<T>` and some usizes, this is already derived.
2 parents 5d3b0f1 + 3f56e9a commit 7809e76

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/libcollections/vec.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ pub struct Vec<T> {
157157
cap: usize,
158158
}
159159

160-
unsafe impl<T: Send> Send for Vec<T> { }
161-
unsafe impl<T: Sync> Sync for Vec<T> { }
162-
163160
////////////////////////////////////////////////////////////////////////////////
164161
// Inherent methods
165162
////////////////////////////////////////////////////////////////////////////////

src/test/compile-fail/coherence-orphan.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,5 @@ impl TheTrait<isize> for TheType { }
2727

2828
impl !Send for Vec<isize> { }
2929
//~^ ERROR E0117
30-
//~| ERROR E0119
3130

3231
fn main() { }

0 commit comments

Comments
 (0)