summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorChris Wong <lambda.fairy@gmail.com>2015-02-13 19:23:28 +1300
committerChris Wong <lambda.fairy@gmail.com>2015-02-13 19:40:22 +1300
commitb4a286144dfbc587604353be2fb3c9e27d405f9e (patch)
tree1ec273c698a9aca695a6a929f80ae58ec72d5b3f /src/libcore
parentba2efe96aeada34c1e2dc267a1a35948bdda91f8 (diff)
downloadrust-b4a286144dfbc587604353be2fb3c9e27d405f9e.tar.gz
rust-b4a286144dfbc587604353be2fb3c9e27d405f9e.zip
Rename the "unsafe" lang item to "unsafe_cell"
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/cell.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
index 050b34508ff..cf293ded13f 100644
--- a/src/libcore/cell.rs
+++ b/src/libcore/cell.rs
@@ -649,7 +649,8 @@ impl<'b, T> DerefMut for RefMut<'b, T> {
 ///
 /// **NOTE:** `UnsafeCell<T>`'s fields are public to allow static initializers. It is not
 /// recommended to access its fields directly, `get` should be used instead.
-#[lang="unsafe"]
+#[cfg_attr(stage0, lang="unsafe")]  // NOTE: remove after next snapshot
+#[cfg_attr(not(stage0), lang="unsafe_cell")]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct UnsafeCell<T> {
     /// Wrapped value