diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/lib.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/rc.rs | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 9d7f9ea8990..ab7030bee15 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -355,7 +355,6 @@ impl<T: Clone> Arc<T> { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl<T> Drop for Arc<T> { /// Drops the `Arc<T>`. @@ -489,7 +488,6 @@ impl<T> Clone for Weak<T> { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl<T> Drop for Weak<T> { /// Drops the `Weak<T>`. diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index a8be63d6373..c0974dcb2a0 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -73,7 +73,7 @@ #![feature(allocator)] #![feature(custom_attribute)] #![feature(fundamental)] -#![feature(lang_items, unsafe_destructor)] +#![feature(lang_items)] #![feature(box_syntax)] #![feature(optin_builtin_traits)] #![feature(unboxed_closures)] diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 2ee229ab1df..015d0330ed7 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -375,7 +375,6 @@ impl<T> Deref for Rc<T> { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl<T> Drop for Rc<T> { /// Drops the `Rc<T>`. @@ -693,7 +692,6 @@ impl<T> Weak<T> { } } -#[unsafe_destructor] #[stable(feature = "rust1", since = "1.0.0")] impl<T> Drop for Weak<T> { /// Drops the `Weak<T>`. |
