Skip to content

Commit 585da62

Browse files
Auto merge of #132553 - EFanZh:zero-cost-rc-arc-deref, r=<try>
Make `Rc<T>::deref` and `Arc<T>::deref` zero-cost
2 parents 1ae7c49 + fc33db3 commit 585da62

File tree

18 files changed

+3703
-2504
lines changed

18 files changed

+3703
-2504
lines changed

library/alloc/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@
204204
#[macro_use]
205205
mod macros;
206206

207+
#[cfg(not(no_rc))]
208+
mod raw_rc;
207209
mod raw_vec;
208210

209211
// Heaps provided for low-level allocation strategies

library/alloc/src/raw_rc/mod.rs

Lines changed: 547 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)