diff options
| author | Ralf Jung <post@ralfj.de> | 2017-02-14 09:46:03 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2017-02-14 09:46:06 +0100 |
| commit | 044ed10fee3351da2315d5d8e26949929ad918ce (patch) | |
| tree | a476eb2b227bf240913b8eecba81ceccd7bd1eb4 | |
| parent | 51a2e2fd826c82252d101ad1e1904319699e417e (diff) | |
| download | rust-044ed10fee3351da2315d5d8e26949929ad918ce.tar.gz rust-044ed10fee3351da2315d5d8e26949929ad918ce.zip | |
Remove Copy bound from some Cell trait impls
Contributes to #39264
| -rw-r--r-- | src/libcore/cell.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 1570428cf18..2b4ce3a35fc 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -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> { @@ -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) } |
