rust/library/alloc/tests
bors 996ff2e0a0 Auto merge of #87408 - kornelski:try_reserve_error, r=yaahc
Hide allocator details from TryReserveError

I think there's [no need for TryReserveError to carry detailed information](https://github.com/rust-lang/rust/issues/48043#issuecomment-825139280), but I wouldn't want that issue to delay stabilization of the `try_reserve` feature.

So I'm proposing to stabilize `try_reserve` with a `TryReserveError` as an opaque structure, and if needed, expose error details later.

This PR moves the `enum` to an unstable inner `TryReserveErrorKind` that lives under a separate feature flag. `TryReserveErrorKind` could possibly be left as an implementation detail forever, and the `TryReserveError` get methods such as `allocation_size() -> Option<usize>` or `layout() -> Option<Layout>` instead, or the details could be dropped completely to make try-reserve errors just a unit struct, and thus smaller and cheaper.
2021-08-07 01:26:15 +00:00
..
arc.rs Add Weak may_dangle tests 2021-05-20 19:42:29 -07:00
binary_heap.rs Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
borrow.rs
boxed.rs
btree_set_hash.rs
cow_str.rs
fmt.rs Auto merge of #78618 - workingjubilee:ieee754-fmt, r=m-ou-se 2021-03-27 10:40:16 +00:00
heap.rs Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
lib.rs Hide allocator details from TryReserveError 2021-07-24 22:25:08 +01:00
linked_list.rs
rc.rs Add Weak may_dangle tests 2021-05-20 19:42:29 -07:00
slice.rs Update the bootstrap compiler 2021-02-20 17:19:30 -05:00
str.rs Add test for the fix 2021-07-11 17:47:57 +02:00
string.rs Hide allocator details from TryReserveError 2021-07-24 22:25:08 +01:00
vec.rs Hide allocator details from TryReserveError 2021-07-24 22:25:08 +01:00
vec_deque.rs Hide allocator details from TryReserveError 2021-07-24 22:25:08 +01:00