diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index 129213fde7491..d571f1d51add5 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -209,6 +209,10 @@ pub use once::OnceCell; /// A mutable memory location. /// +/// # Memory layout +/// +/// `Cell` shares the same memory layout and caveats as `UnsafeCell`. +/// /// # Examples /// /// In this example, you can see that `Cell` enables mutation inside an