Skip to content

Commit fd02c08

Browse files
committed
Make Rc<T>::deref and Arc<T>::deref zero-cost
1 parent f5a1ef7 commit fd02c08

File tree

13 files changed

+3381
-2426
lines changed

13 files changed

+3381
-2426
lines changed

library/alloc/src/lib.rs

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

216+
#[cfg(not(no_rc))]
217+
mod raw_rc;
216218
mod raw_vec;
217219

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