diff options
| author | Trevor Gross <tmgross@umich.edu> | 2023-09-29 02:40:30 -0400 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2023-11-04 15:27:29 -0400 |
| commit | 5e5f3341e3749f18a6d6fbb2228a9d3b42c0b280 (patch) | |
| tree | 64cbd019661c2c073fa91c3b256d95ebbfcef7db /compiler/rustc_parse/src/parser/expr.rs | |
| parent | f6ce646d3f840181dcc3f5d9edc4e4cff0051b78 (diff) | |
| download | rust-5e5f3341e3749f18a6d6fbb2228a9d3b42c0b280.tar.gz rust-5e5f3341e3749f18a6d6fbb2228a9d3b42c0b280.zip | |
Stabilize `const_mem_zeroed`
Make `core::mem::zeroed` const stable. Newly stable API:
// core::mem
pub const unsafe fn zeroed<T>() -> T;
This is stabilized with `const_maybe_uninit_zeroed` since it is a simple
wrapper.
In order to make this possible, intrinsics `assert_zero_valid` was made
const stable under `const_assert_type2`.
`assert_mem_uninitialized_valid` was also made const stable since it is
under the same gate.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
