Skip to content

Commit c6da31f

Browse files
committed
Make Rc and Arc #[fundamenatal]
1 parent c9bb68f commit c6da31f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/liballoc/rc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ struct RcBox<T: ?Sized> {
283283
/// [get_mut]: #method.get_mut
284284
#[cfg_attr(not(test), lang = "rc")]
285285
#[stable(feature = "rust1", since = "1.0.0")]
286+
#[fundamental]
286287
pub struct Rc<T: ?Sized> {
287288
ptr: NonNull<RcBox<T>>,
288289
phantom: PhantomData<T>,

src/liballoc/sync.rs

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
200200
/// [rc_examples]: ../../std/rc/index.html#examples
201201
#[cfg_attr(not(test), lang = "arc")]
202202
#[stable(feature = "rust1", since = "1.0.0")]
203+
#[fundamental]
203204
pub struct Arc<T: ?Sized> {
204205
ptr: NonNull<ArcInner<T>>,
205206
phantom: PhantomData<T>,

0 commit comments

Comments
 (0)