Skip to content

Commit 0bdb018

Browse files
committed
Make Rc<T>::deref and Arc<T>::deref zero-cost
1 parent 446649d commit 0bdb018

File tree

12 files changed

+3372
-2418
lines changed

12 files changed

+3372
-2418
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.rs

+2,470
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)