about summary refs log tree commit diff
path: root/library/alloc/tests/arc.rs
AgeCommit message (Collapse)AuthorLines
2025-03-07Move all alloc integration tests to a new alloctests cratebjorn3-278/+0
2025-03-06library: Use size_of from the prelude instead of importedThalia Archibald-3/+2
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2024-10-27add test for panicking drop in Box/Rc/ArcLukas Markeffsky-2/+38
2024-07-31PinCoerceUnsized trait into coreXiangfei Ding-0/+14
2024-06-22Generalize `{Rc,Arc}::make_mut()` to unsized types.Kevin Reid-0/+18
This requires introducing a new internal type `RcUninit` (and `ArcUninit`), which can own an `RcBox<T>` without requiring it to be initialized, sized, or a slice. This is similar to `UniqueRc`, but `UniqueRc` doesn't support the allocator parameter, and there is no `UniqueArc`.
2023-12-10remove redundant importssurechen-1/+0
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2022-11-18Remove Vec/Rc storage reuse optclubby789-15/+0
2022-11-14Add `Vec` storage optimization to `Arc` and add testsclubby789-0/+15
2021-05-20Add Weak may_dangle testsDavid Tolnay-0/+15
2020-07-27mv std libs to library/mark-0/+197