rust/library/alloc/src
Matthias Krüger b08837f180
Rollup merge of #122018 - RalfJung:box-custom-alloc, r=oli-obk
only set noalias on Box with the global allocator

As discovered in https://github.com/rust-lang/miri/issues/3341, `noalias` and custom allocators don't go well together.

rustc can now check whether a Box uses the global allocator. This replaces the previous ad-hoc and rather unprincipled check for a zero-sized allocator.

This is the rustc part of fixing that; Miri will also need a patch.
2024-03-05 22:10:02 +01:00
..
alloc run alloc benchmarks in Miri and fix UB 2022-11-07 10:34:04 +01:00
boxed library: use addr_of! 2024-02-24 16:02:17 +03:00
collections remove hidden use of Global 2024-03-01 11:51:28 +00:00
ffi Use generic NonZero everywhere in alloc. 2024-02-22 15:17:34 +01:00
raw_vec add more niches to rawvec 2023-12-11 23:38:48 +01: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 Rollup merge of #121262 - 20jasper:add-vector-time-complexity, r=cuviper 2024-03-05 06:40:29 +01:00
alloc.rs Rollup merge of #122018 - RalfJung:box-custom-alloc, r=oli-obk 2024-03-05 22:10:02 +01:00
borrow.rs Add more diagnostic items for clippy 2023-10-05 18:21:47 -04:00
boxed.rs only set noalias on Box with the global allocator 2024-03-05 15:03:33 +01:00
fmt.rs docs: use correct link, use secondary example 2024-02-12 20:17:47 -05:00
lib.rs have String use SliceIndex impls from str 2024-02-27 09:41:32 -07:00
macros.rs Update doc for alloc::format! and core::concat! 2023-09-06 15:11:21 +02:00
raw_vec.rs Remove unnecessary unit binding 2024-02-17 16:20:09 +08:00
rc.rs Rollup merge of #121287 - zachs18:rc-into-raw-must-use, r=cuviper 2024-03-05 06:40:30 +01:00
slice.rs Bump version placeholders 2024-02-08 07:43:38 -05:00
str.rs Export core::str::from_raw_parts{,_mut} into alloc::str and std::str 2024-01-25 18:11:54 -08:00
string.rs Rollup merge of #120291 - pitaj:string-sliceindex, r=Amanieu 2024-02-29 05:25:26 -05:00
sync.rs Rollup merge of #121287 - zachs18:rc-into-raw-must-use, r=cuviper 2024-03-05 06:40:30 +01:00
task.rs Generate original vtable and clone's vtable in the same CGU 2024-02-26 20:56:44 -08:00
tests.rs remove redundant imports 2023-12-10 10:56:22 +08:00