Skip to content

Commit 044ed10

Browse files
committed
Remove Copy bound from some Cell trait impls
Contributes to #39264
1 parent 51a2e2f commit 044ed10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/cell.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl<T:Copy> Clone for Cell<T> {
229229
}
230230

231231
#[stable(feature = "rust1", since = "1.0.0")]
232-
impl<T:Default + Copy> Default for Cell<T> {
232+
impl<T:Default> Default for Cell<T> {
233233
/// Creates a `Cell<T>`, with the `Default` value for T.
234234
#[inline]
235235
fn default() -> Cell<T> {
@@ -285,7 +285,7 @@ impl<T:Ord + Copy> Ord for Cell<T> {
285285
}
286286

287287
#[stable(feature = "cell_from", since = "1.12.0")]
288-
impl<T: Copy> From<T> for Cell<T> {
288+
impl<T> From<T> for Cell<T> {
289289
fn from(t: T) -> Cell<T> {
290290
Cell::new(t)
291291
}

0 commit comments

Comments
 (0)