rust/library/alloc/src
Matthias Krüger 1ff247c404
Rollup merge of #124593 - GKFX:cstr-literals-in-api-docs, r=workingjubilee
Describe and use CStr literals in CStr and CString docs

Mention CStr literals in the description of both types, and use them in some of the code samples for CStr. This is intended to make C string literals more discoverable.

Additionally, I don't think the orange "This example is not tested" warnings are very encouraging, so I have made the examples on `CStr` build.
2024-05-03 20:33:46 +02:00
..
alloc run alloc benchmarks in Miri and fix UB 2022-11-07 10:34:04 +01:00
boxed Do not allocate for ZST ThinBox attempt 2 (using const_allocate) 2024-04-05 19:55:00 +01:00
collections fix typo in binary_heap docs 2024-04-24 22:59:39 +02:00
ffi Describe and use CStr literals in CStr and CString docs 2024-05-01 19:59:00 +01:00
raw_vec try_with_capacity for RawVec 2024-03-01 18:20:48 +00:00
rc remove redundant imports 2023-12-10 10:56:22 +08:00
slice ignore core, alloc and test tests that require unwinding on panic=abort 2023-06-13 15:53:24 +02:00
sync Fix some Arc allocator leaks 2024-01-28 18:33:34 +01:00
testing Share testing utilities with non-btree test cases 2022-05-02 10:07:50 +02:00
vec Avoid reloading Vec::len across grow_one in push 2024-04-20 21:07:00 -04:00
alloc.rs step cfgs 2024-03-20 08:49:13 -04:00
borrow.rs Impl DerefPure for more std types 2024-04-05 00:02:42 +02:00
boxed.rs Rollup merge of #122201 - coolreader18:doc-clone_from, r=dtolnay 2024-04-17 18:01:37 +02:00
fmt.rs docs: use correct link, use secondary example 2024-02-12 20:17:47 -05:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
macros.rs Update doc for alloc::format! and core::concat! 2023-09-06 15:11:21 +02:00
raw_vec.rs Avoid more NonNull-raw-NonNull roundtrips in Vec 2024-04-12 18:14:29 -04:00
rc.rs Relax A: Clone bound for rc::Weak::into_raw_and_alloc 2024-04-27 12:21:23 +03:00
slice.rs lib: fix some unnecessary_cast clippy lint 2024-03-25 23:19:40 +03:00
str.rs Replace version placeholders for 1.79 2024-05-01 21:01:51 -04:00
string.rs WS fix. 2024-04-27 17:18:25 +02:00
sync.rs Auto merge of #120092 - zetanumbers:pin_in_static_allocator, r=Amanieu 2024-04-12 00:03:43 +00:00
task.rs lib: fix some unnecessary_cast clippy lint 2024-03-25 23:19:40 +03:00
tests.rs remove redundant imports 2023-12-10 10:56:22 +08:00