Skip to content

Commit ae9240c

Browse files
committed
Make Rc<T>::deref and Arc<T>::deref zero-cost
1 parent 1805b33 commit ae9240c

File tree

13 files changed

+3379
-2426
lines changed

13 files changed

+3379
-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)