Skip to content

Commit 7999ed8

Browse files
committed
Make Rc<T>::deref and Arc<T>::deref zero-cost
1 parent b45dd71 commit 7999ed8

18 files changed

+3681
-2506
lines changed

library/alloc/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@
204204
#[macro_use]
205205
mod macros;
206206

207+
#[cfg(not(no_rc))]
208+
mod raw_rc;
207209
mod raw_vec;
208210

209211
// Heaps provided for low-level allocation strategies

library/alloc/src/raw_rc/mod.rs

+539
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)