Skip to content

Commit b40fefd

Browse files
committed
Rollup merge of #29213 - apasel422:unsafe-cell, r=Gankro
r? @alexcrichton
2 parents 2f5f5ac + f657e13 commit b40fefd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libcore/cell.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -784,9 +784,6 @@ impl<'b, T: ?Sized> DerefMut for RefMut<'b, T> {
784784
///
785785
/// unsafe impl<T> Sync for NotThreadSafe<T> {}
786786
/// ```
787-
///
788-
/// **NOTE:** `UnsafeCell<T>`'s fields are public to allow static initializers. It is not
789-
/// recommended to access its fields directly, `get` should be used instead.
790787
#[lang = "unsafe_cell"]
791788
#[stable(feature = "rust1", since = "1.0.0")]
792789
pub struct UnsafeCell<T: ?Sized> {
@@ -799,8 +796,7 @@ impl<T> UnsafeCell<T> {
799796
/// Constructs a new instance of `UnsafeCell` which will wrap the specified
800797
/// value.
801798
///
802-
/// All access to the inner value through methods is `unsafe`, and it is highly discouraged to
803-
/// access the fields directly.
799+
/// All access to the inner value through methods is `unsafe`.
804800
///
805801
/// # Examples
806802
///

0 commit comments

Comments
 (0)