Skip to content

Commit

Permalink
Remove Copy bound from some Cell trait impls
Browse files Browse the repository at this point in the history
Contributes to rust-lang#39264
  • Loading branch information
RalfJung committed Feb 14, 2017
1 parent 51a2e2f commit 044ed10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/cell.rs
Expand Up @@ -229,7 +229,7 @@ impl<T:Copy> Clone for Cell<T> {
}

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

#[stable(feature = "cell_from", since = "1.12.0")]
impl<T: Copy> From<T> for Cell<T> {
impl<T> From<T> for Cell<T> {
fn from(t: T) -> Cell<T> {
Cell::new(t)
}
Expand Down

0 comments on commit 044ed10

Please sign in to comment.