rust/compiler/rustc_mir/src
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
..
borrow_check Auto merge of #87628 - estebank:unmet-explicit-lifetime-bound, r=oli-obk 2021-08-02 23:16:40 +00:00
const_eval Improve comments about const panic handling 2021-07-28 16:18:38 +02:00
dataflow re-export SwitchIntEdgeEffects 2021-07-04 13:33:22 +02:00
interpret Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis 2021-08-04 21:09:53 +00:00
monomorphize clippy:: append_instead_of_extend 2021-07-25 12:26:02 +02:00
transform Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis 2021-08-04 21:09:53 +00:00
util clippy::useless_format 2021-07-25 12:26:03 +02:00
lib.rs Auto merge of #87408 - kornelski:try_reserve_error, r=yaahc 2021-08-07 01:26:15 +00:00
shim.rs rustc: Fill out remaining parts of C-unwind ABI 2021-08-03 07:06:19 -07:00