Remove Copy bound from some Cell trait impls

Contributes to #39264
This commit is contained in:
Ralf Jung 2017-02-14 09:46:03 +01:00
parent 51a2e2fd82
commit 044ed10fee
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}