Remove Managed

Leftovers from @-pointer times.
This commit is contained in:
Simonas Kazlauskas
2015-04-24 20:07:01 +03:00
parent 5c710b593b
commit a23d7e10c7
7 changed files with 6 additions and 43 deletions

View File

@@ -267,9 +267,6 @@ extern "rust-intrinsic" {
/// `Copy`, then may return `true` or `false`.
pub fn needs_drop<T>() -> bool;
/// Returns `true` if a type is managed (will be allocated on the local heap)
pub fn owns_managed<T>() -> bool;
/// Calculates the offset from a pointer.
///
/// This is implemented as an intrinsic to avoid converting to and from an

View File

@@ -43,7 +43,6 @@ unsafe impl Send for .. { }
impl<T> !Send for *const T { }
impl<T> !Send for *mut T { }
impl !Send for Managed { }
/// Types with a constant size known at compile-time.
#[stable(feature = "rust1", since = "1.0.0")]
@@ -212,7 +211,6 @@ unsafe impl Sync for .. { }
impl<T> !Sync for *const T { }
impl<T> !Sync for *mut T { }
impl !Sync for Managed { }
/// A type which is considered "not POD", meaning that it is not
/// implicitly copyable. This is typically embedded in other types to
@@ -223,14 +221,6 @@ impl !Sync for Managed { }
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct NoCopy;
/// A type which is considered managed by the GC. This is typically
/// embedded in other types.
#[unstable(feature = "core",
reason = "likely to change with new variance strategy")]
#[lang="managed_bound"]
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Managed;
macro_rules! impls{
($t: ident) => (
impl<T:?Sized> Hash for $t<T> {