diff options
| author | bors <bors@rust-lang.org> | 2019-05-20 15:05:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-05-20 15:05:04 +0000 |
| commit | d35181ad8785fa958e43580a29a982afe02c728f (patch) | |
| tree | b069d7b91879da1f58f1fd61c7a9f14896ec6915 /src/libsyntax/parse | |
| parent | 589beb979c0f1a9736e02e578913db88398c3ba5 (diff) | |
| parent | 1916391ea8b97389a9ed690b4df614a2b96069fd (diff) | |
| download | rust-d35181ad8785fa958e43580a29a982afe02c728f.tar.gz rust-d35181ad8785fa958e43580a29a982afe02c728f.zip | |
Auto merge of #60445 - RalfJung:maybe-uninit, r=Centril
stabilize core parts of MaybeUninit and deprecate mem::uninitialized in the future (1.40.0). This is part of implementing https://github.com/rust-lang/rfcs/pull/1892. Also expand the documentation a bit. This type is currently primarily useful when dealing with partially initialized arrays. In libstd, it is used e.g. in `BTreeMap` (with some unstable APIs that however can all be replaced, less ergonomically, by stable ones). What we stabilize should also be enough for `SmallVec` (Cc @bluss). Making this useful for structs requires https://github.com/rust-lang/rfcs/pull/2582 or a commitment that references to uninitialized data are not insta-UB.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
