Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#133061 - scottmcm:dedup-rc, r=<try>
[DRAFT] `Rc`: allow deduping both `deref` and `clone` across types This works by *always* putting the counts *just* before the value, rather than using an `RcInner` type at all. By doing that, the offset to the counts are exactly the same for all types -- small or large, low alignment or high -- so `Rc::clone` can be polymorphized, and `Rc::deref` is always just a no-op. r? ghost
- Loading branch information