summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorOleg Nosov <olegnosov1@gmail.com>2019-11-05 23:34:54 +0300
committerOleg Nosov <olegnosov1@gmail.com>2019-11-05 23:36:54 +0300
commit45f281d46166fb90c7e9403ad814bebb67aa926d (patch)
tree235326eff9ee315c9b7cba7dcc5fb51db140b75a /src/libcore
parent3a54ab78efc66c17a6d2bb57463f5dac4696c7ed (diff)
downloadrust-45f281d46166fb90c7e9403ad814bebb67aa926d.tar.gz
rust-45f281d46166fb90c7e9403ad814bebb67aa926d.zip
Reverted PhantomData in LinkedList, fixed PhantomData markers in Rc and Arc
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/cell.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
index fda103a52d8..c381998d99a 100644
--- a/src/libcore/cell.rs
+++ b/src/libcore/cell.rs
@@ -137,9 +137,11 @@
 //! use std::cell::Cell;
 //! use std::ptr::NonNull;
 //! use std::intrinsics::abort;
+//! use std::marker::PhantomData;
 //!
 //! struct Rc<T: ?Sized> {
-//!     ptr: NonNull<RcBox<T>>
+//!     ptr: NonNull<RcBox<T>>,
+//!     phantom: PhantomData<RcBox<T>>,
 //! }
 //!
 //! struct RcBox<T: ?Sized> {