Skip to content

Commit cee99e8

Browse files
committed
Implement alloc::rc::{Rc,Weak,UniqueRc} with alloc::raw_rc types
1 parent 8bc9dea commit cee99e8

File tree

10 files changed

+460
-1180
lines changed

10 files changed

+460
-1180
lines changed

library/alloc/src/raw_rc/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
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::alloc::{AllocError, Allocator};
6664
use core::cell::UnsafeCell;
6765
use core::mem;
@@ -71,6 +69,9 @@ use core::sync::atomic::Atomic;
7169

7270
#[cfg(not(no_global_oom_handling))]
7371
use crate::alloc;
72+
pub(crate) use crate::raw_rc::raw_rc::RawRc;
73+
pub(crate) use crate::raw_rc::raw_unique_rc::RawUniqueRc;
74+
pub(crate) use crate::raw_rc::raw_weak::RawWeak;
7475
use crate::raw_rc::rc_layout::RcLayout;
7576
use crate::raw_rc::rc_value_pointer::RcValuePointer;
7677

0 commit comments

Comments
 (0)