Skip to content

Commit 2ae47dd

Browse files
committed
Make Rc<T>::deref and Arc<T>::deref zero-cost
1 parent 85f518e commit 2ae47dd

18 files changed

+3661
-2511
lines changed

library/alloc/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@
201201
#[macro_use]
202202
mod macros;
203203

204+
#[cfg(not(no_rc))]
205+
mod raw_rc;
204206
mod raw_vec;
205207

206208
// 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)