summary refs log tree commit diff
path: root/library/alloc/src/rc.rs
AgeCommit message (Expand)AuthorLines
2024-07-13Rollup merge of #127446 - zachs18:miri-stdlib-leaks-core-alloc, r=Mark-Simula...Jubilee-0/+6
2024-07-12Rollup merge of #124980 - zachs18:rc-allocator, r=AmanieuMatthias Krüger-10/+18
2024-07-06Remove non-focused memory leaks in `alloc` doctests for Miri.Zachary S-0/+6
2024-06-22Generalize `{Rc,Arc}::make_mut()` to unsized types.Kevin Reid-13/+99
2024-06-22Replace `WriteCloneIntoRaw` with `CloneToUninit`.Kevin Reid-3/+3
2024-06-14Rollup merge of #126285 - kpreid:unique-rc, r=dtolnayMatthias Krüger-30/+65
2024-06-11`UniqueRc`: support allocators and `T: ?Sized`.Kevin Reid-30/+65
2024-06-11replace version placeholderPietro Albini-2/+2
2024-06-05Rollup merge of #123168 - joshtriplett:size-of-prelude, r=AmanieuJubilee-2/+0
2024-05-20Rollup merge of #125093 - zachs18:rc-into-raw-with-allocator-only, r=Mark-Sim...Matthias Krüger-10/+40
2024-05-16Access alloc field directly in Arc/Rc::into_raw_with_allocator.Zachary S-2/+2
2024-05-13Add fn into_raw_with_allocator to Rc/Arc/Weak.Zachary S-10/+40
2024-05-13Add `size_of`, `size_of_val`, `align_of`, and `align_of_val` to the preludeJosh Triplett-2/+0
2024-05-12Add note about possible allocation-sharing to Arc/Rc<str/[T]/CStr>::default.Zachary S-0/+4
2024-05-12added Default implsBilly Sheppard-0/+21
2024-05-10Relax A: Clone requirement on Rc/Arc::unwrap_or_clone.Zachary S-0/+2
2024-05-10Relax allocator requirements on some Rc APIs.Zachary S-25/+22
2024-05-10Add fn allocator method to rc/sync::Weak. Relax Rc<T>/Arc<T>::allocator to al...Zachary S-10/+18
2024-04-27Relax `A: Clone` bound for `rc::Weak::into_raw_and_alloc`Daria Sukhonina-7/+4
2024-04-12Auto merge of #120092 - zetanumbers:pin_in_static_allocator, r=Amanieubors-1/+4
2024-03-25Require DerefPure for patternsMichael Goulet-1/+4
2024-03-05Rollup merge of #121287 - zachs18:rc-into-raw-must-use, r=cuviperMatthias Krüger-1/+2
2024-03-05Rollup merge of #121213 - Takashiidobe:takashi/example-for-rc-into-inner, r=c...Matthias Krüger-0/+15
2024-02-24library: use `addr_of!`Pavel Grigorenko-2/+2
2024-02-21rename ptr::invalid -> ptr::without_provenanceRalf Jung-2/+6
2024-02-18Clarify/add `must_use` message for Rc/Arc/Weak::into_raw.Zachary S-1/+2
2024-02-16Add an example to demonstrate how Rc::into_inner worksTakashiidobe-0/+15
2024-02-15Rollup merge of #120449 - udoprog:document-unsized-rc-arc-from-raw, r=m-ou-seGuillaume Gomez-13/+61
2024-01-29Rollup merge of #120266 - steffahn:a_rc_into_inner_docs, r=Mark-SimulacrumDylan DPC-2/+5
2024-01-28Fix doctestJohn-John Tedro-2/+3
2024-01-28Replicate documentation in {Rc,Arc}::from_raw_inJohn-John Tedro-9/+34
2024-01-28Fix doctestJohn-John Tedro-2/+2
2024-01-28Tidy upJohn-John Tedro-1/+1
2024-01-28Add examples for unsized {Rc,Arc}::from_rawJohn-John Tedro-0/+14
2024-01-28Document requirements for unsized {Rc,Arc}::from_rawJohn-John Tedro-6/+14
2024-01-23Auto merge of #119433 - taiki-e:rc-uninit-ref, r=Nilstriebbors-11/+16
2024-01-23Improve documentation for [A]Rc::into_innerFrank Steffahn-2/+5
2024-01-23Auto merge of #119892 - joboet:libs_use_assert_unchecked, r=Nilstrieb,cuviperbors-2/+3
2024-01-18Add `A: 'static` bound for `Arc/Rc::pin_in`zetanumbers-1/+4
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-2/+3
2024-01-10Fix deallocation with wrong allocator in (A)Rc::from_box_inzachs18-1/+1
2024-01-08rc,sync: Do not create references to uninitialized valuesTaiki Endo-11/+16
2023-12-30rc: Take *const T in is_danglingTaiki Endo-2/+2
2023-12-22update version placeholdersPietro Albini-1/+1
2023-12-10Auto merge of #116949 - hamza1311:stablize-arc_unwrap_or_clone, r=dtolnaybors-2/+1
2023-11-28Add proper cfgsr0cky-0/+1
2023-10-19Stablize arc_unwrap_or_cloneMuhammad Hamza-2/+1
2023-10-14Auto merge of #116407 - Mark-Simulacrum:bootstrap-bump, r=onur-ozkanbors-3/+3
2023-10-08Bump to latest betaMark Rousskov-2/+2
2023-10-05Add more diagnostic items for clippyJason Newcomb-0/+1