Skip to content

Commit 1dd28dc

Browse files
committed
Implement alloc::rc::{Rc,Weak,UniqueRc} with alloc::raw_rc types
1 parent c68950e commit 1dd28dc

File tree

10 files changed

+461
-1182
lines changed

10 files changed

+461
-1182
lines changed

library/alloc/src/raw_rc/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@
6060
//! - Converting `Option<Rc<T>>` to `Option<&T>` without checking for `None` values.
6161
//! - Converting `&[Rc<T>]` to `&[&T]` with zero cost.
6262
63-
#![allow(dead_code)]
64-
6563
use core::cell::UnsafeCell;
6664
use core::mem;
6765
use core::sync::atomic::Atomic;
6866

67+
pub(crate) use crate::raw_rc::raw_rc::RawRc;
68+
pub(crate) use crate::raw_rc::raw_unique_rc::RawUniqueRc;
69+
pub(crate) use crate::raw_rc::raw_weak::RawWeak;
70+
6971
mod raw_rc;
7072
mod raw_unique_rc;
7173
mod raw_weak;

0 commit comments

Comments
 (0)