Skip to content

Commit b0b2f91

Browse files
committed
Make Rc<T>::deref and Arc<T>::deref zero-cost
1 parent 8dac72b commit b0b2f91

File tree

13 files changed

+3333
-2426
lines changed

13 files changed

+3333
-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,424
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)