Skip to content

Commit c5bf6a3

Browse files
committed
Implement alloc::rc::{Rc,Weak,UniqueRc} with alloc::raw_rc types
1 parent 874025a commit c5bf6a3

File tree

10 files changed

+493
-1324
lines changed

10 files changed

+493
-1324
lines changed

library/alloc/src/raw_rc/mod.rs

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

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

0 commit comments

Comments
 (0)