about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-10-22 12:43:49 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-10-22 12:43:49 -0400
commit7b608dfacd024c27039ffbded5c7951ab30ece15 (patch)
tree92ed9f2ac8b1bc6a47bd08bad0e9363b3acd8e6c
parent58fed892c5afc5c9b162be4f42533b32e690736b (diff)
parentf657e134cb66844b2dc476c5b276c1be9788caf2 (diff)
Rollup merge of #29213 - apasel422:unsafe-cell, r=Gankro
r? @alexcrichton 
-rw-r--r--src/libcore/cell.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
index 1b4af44da46..0d717992ce8 100644
--- a/src/libcore/cell.rs
+++ b/src/libcore/cell.rs
@@ -784,9 +784,6 @@ impl<'b, T: ?Sized> DerefMut for RefMut<'b, T> {
 ///
 /// unsafe impl<T> Sync for NotThreadSafe<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_cell"]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct UnsafeCell<T: ?Sized> {
@@ -799,8 +796,7 @@ impl<T> UnsafeCell<T> {
     /// Constructs a new instance of `UnsafeCell` which will wrap the specified
     /// value.
     ///
-    /// All access to the inner value through methods is `unsafe`, and it is highly discouraged to
-    /// access the fields directly.
+    /// All access to the inner value through methods is `unsafe`.
     ///
     /// # Examples
     ///