Reverted PhantomData in LinkedList, fixed PhantomData markers in Rc and Arc

This commit is contained in:
Oleg Nosov
2019-11-05 23:34:54 +03:00
parent 3a54ab78ef
commit 45f281d461
4 changed files with 7 additions and 5 deletions

View File

@@ -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> {