From f657e134cb66844b2dc476c5b276c1be9788caf2 Mon Sep 17 00:00:00 2001 From: Andrew Paseltiner Date: Wed, 21 Oct 2015 14:15:43 -0400 Subject: [PATCH] Remove obsolete note about `UnsafeCell`'s fields --- src/libcore/cell.rs | 6 +----- 1 file changed, 1 insertion(+), 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 Sync for NotThreadSafe {} /// ``` -/// -/// **NOTE:** `UnsafeCell`'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 { @@ -799,8 +796,7 @@ impl UnsafeCell { /// 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 ///