Skip to content

Commit b4ddee6

Browse files
committed
std: Remove the Freeze kind and the NoFreeze marker
1 parent 034e138 commit b4ddee6

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/libstd/kinds.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ pub trait Send {
2626
// empty.
2727
}
2828

29-
/// Types that are either immutable or have inherited mutability.
30-
#[lang="freeze"]
31-
pub trait Freeze {
32-
// empty.
33-
}
34-
3529
/// Types with a constant size known at compile-time.
3630
#[lang="sized"]
3731
pub trait Sized {
@@ -225,14 +219,6 @@ pub mod marker {
225219
#[deriving(Eq,Clone)]
226220
pub struct InvariantLifetime<'a>;
227221

228-
/// A type which is considered "not freezable", meaning that
229-
/// its contents could change even if stored in an immutable
230-
/// context or it is the referent of an `&T` pointer. This is
231-
/// typically embedded in other types, such as `Cell`.
232-
#[lang="no_freeze_bound"]
233-
#[deriving(Eq,Clone)]
234-
pub struct NoFreeze;
235-
236222
/// A type which is considered "not sendable", meaning that it cannot
237223
/// be safely sent between tasks, even if it is owned. This is
238224
/// typically embedded in other types, such as `Gc`, to ensure that

src/libstd/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ generally useful to many Rust programs.
2020
*/
2121

2222
// Reexported core operators
23-
pub use kinds::{Freeze, Pod, Send, Sized, Share};
23+
pub use kinds::{Pod, Send, Sized, Share};
2424
pub use ops::{Add, Sub, Mul, Div, Rem, Neg, Not};
2525
pub use ops::{BitAnd, BitOr, BitXor};
2626
pub use ops::{Drop, Deref, DerefMut};

0 commit comments

Comments
 (0)