Skip to content

Commit 8725c3c

Browse files
committed
Make Rc<T>::deref and Arc<T>::deref zero-cost
1 parent bb2cc59 commit 8725c3c

File tree

13 files changed

+3377
-2426
lines changed

13 files changed

+3377
-2426
lines changed

library/alloc/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ mod testing;
212212
#[macro_use]
213213
mod macros;
214214

215+
#[cfg(not(no_rc))]
216+
mod raw_rc;
215217
mod raw_vec;
216218

217219
// Heaps provided for low-level allocation strategies

library/alloc/src/raw_rc.rs

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

0 commit comments

Comments
 (0)