rust/library/alloc/src
Matthias Krüger 49d6594278
Rollup merge of #117563 - 0xalpharush:docs/into-raw, r=workingjubilee
docs: clarify explicitly freeing heap allocated memory

The documentation for `Box::into_raw` didn't mention `drop` and wondered if I was doing something wrong. Based off [this](https://stackoverflow.com/questions/75441199/rust-how-do-i-correctly-free-heap-allocated-memory), I think it's helpful to include the more concise yet explicit way to free heap allocated memory. This is my first rust PR and I went through https://std-dev-guide.rust-lang.org/development/, but let me know if I missed something :)
2023-12-06 17:21:57 +01:00
..
alloc run alloc benchmarks in Miri and fix UB 2022-11-07 10:34:04 +01:00
boxed Address unused tuple struct fields in the standard library 2023-11-28 12:00:54 -05:00
collections Rollup merge of #118398 - mu001999:std/add_cfgs, r=thomcc 2023-11-29 04:23:23 +01:00
ffi fixed documentation of from<CString> for Rc<CStr>: Arc -> Rc 2023-07-02 10:07:52 +06:00
raw_vec Add a unit test for zero-sized types in RawVec. 2021-11-26 19:30:45 +11:00
rc Introduce alloc::::UniqueRc 2023-06-19 12:24:06 -07:00
slice ignore core, alloc and test tests that require unwinding on panic=abort 2023-06-13 15:53:24 +02:00
sync Add Arc::into_inner for safely discarding Arcs without calling the destructor on the inner type. 2023-01-22 01:43:25 +09:00
testing Share testing utilities with non-btree test cases 2022-05-02 10:07:50 +02:00
vec Auto merge of #118460 - the8472:fix-vec-realloc, r=saethlin 2023-12-06 08:45:11 +00:00
alloc.rs Add proper cfgs 2023-11-28 09:02:34 +08:00
borrow.rs Add more diagnostic items for clippy 2023-10-05 18:21:47 -04:00
boxed.rs docs: clarify explicitly freeing heap allocated memory 2023-11-04 03:00:43 -05:00
fmt.rs Closure-consuming helper functions for fmt::Debug helpers 2023-11-10 07:50:11 +09:00
lib.rs Auto merge of #110353 - the8472:in-place-flatten-chunks, r=cuviper 2023-11-28 12:22:16 +00:00
macros.rs Update doc for alloc::format! and core::concat! 2023-09-06 15:11:21 +02:00
raw_vec.rs Auto merge of #117503 - kornelski:hint-try-reserved, r=workingjubilee 2023-11-05 00:03:41 +00:00
rc.rs Add proper cfgs 2023-11-28 09:02:34 +08:00
slice.rs Add suggestion for some #[deprecated] items 2023-08-21 12:51:51 +03:00
str.rs [nit] Fix a comment typo. 2023-08-15 14:26:14 -05:00
string.rs Rollup merge of #95967 - CAD97:from-utf16, r=dtolnay 2023-10-11 03:53:16 +03:00
sync.rs Add proper cfgs 2023-11-28 09:02:34 +08:00
task.rs Updating Wake example to use new 'pin!' macro 2023-04-25 13:50:50 +02:00
tests.rs fix an alloc test 2023-03-03 17:47:48 +00:00