mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
std: Remove the Freeze kind and the NoFreeze marker
This commit is contained in:
@@ -26,12 +26,6 @@ pub trait Send {
|
||||
// empty.
|
||||
}
|
||||
|
||||
/// Types that are either immutable or have inherited mutability.
|
||||
#[lang="freeze"]
|
||||
pub trait Freeze {
|
||||
// empty.
|
||||
}
|
||||
|
||||
/// Types with a constant size known at compile-time.
|
||||
#[lang="sized"]
|
||||
pub trait Sized {
|
||||
@@ -225,14 +219,6 @@ pub mod marker {
|
||||
#[deriving(Eq,Clone)]
|
||||
pub struct InvariantLifetime<'a>;
|
||||
|
||||
/// A type which is considered "not freezable", meaning that
|
||||
/// its contents could change even if stored in an immutable
|
||||
/// context or it is the referent of an `&T` pointer. This is
|
||||
/// typically embedded in other types, such as `Cell`.
|
||||
#[lang="no_freeze_bound"]
|
||||
#[deriving(Eq,Clone)]
|
||||
pub struct NoFreeze;
|
||||
|
||||
/// A type which is considered "not sendable", meaning that it cannot
|
||||
/// be safely sent between tasks, even if it is owned. This is
|
||||
/// typically embedded in other types, such as `Gc`, to ensure that
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
// Reexported core operators
|
||||
pub use kinds::{Freeze, Pod, Send, Sized, Share};
|
||||
pub use kinds::{Pod, Send, Sized, Share};
|
||||
pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
|
||||
pub use ops::{BitAnd, BitOr, BitXor};
|
||||
pub use ops::{Drop, Deref, DerefMut};
|
||||
|
||||
Reference in New Issue
Block a user