diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2019-06-12 18:47:58 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2019-08-16 18:08:37 +0200 |
| commit | 59a340963fa5d8b5507d95cd015f7ca2855ba151 (patch) | |
| tree | 20ec73bf0c84a434d0d1192fc4216eb64e1d1161 /src/libstd/lib.rs | |
| parent | a92c29b2385f4999d4cd9ef7589f1fc07ef9cdfb (diff) | |
| download | rust-59a340963fa5d8b5507d95cd015f7ca2855ba151.tar.gz rust-59a340963fa5d8b5507d95cd015f7ca2855ba151.zip | |
Add the Layout of the failed allocation to TryReserveError::AllocError
… and add a separately-unstable field to force non-exhaustive matching (`#[non_exhaustive]` is no implemented yet on enum variants) so that we have the option to later expose the allocator’s error value. CC https://github.com/rust-lang/wg-allocators/issues/23
Diffstat (limited to 'src/libstd/lib.rs')
| -rw-r--r-- | src/libstd/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 1f48315d3f8..760d92f1d7b 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -251,6 +251,7 @@ #![feature(concat_idents)] #![feature(const_cstr_unchecked)] #![feature(const_raw_ptr_deref)] +#![feature(container_error_extra)] #![feature(core_intrinsics)] #![feature(custom_test_frameworks)] #![feature(doc_alias)] |
