about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2023-09-29 02:40:30 -0400
committerTrevor Gross <tmgross@umich.edu>2023-11-04 15:27:29 -0400
commit5e5f3341e3749f18a6d6fbb2228a9d3b42c0b280 (patch)
tree64cbd019661c2c073fa91c3b256d95ebbfcef7db /compiler/rustc_parse/src/parser/expr.rs
parentf6ce646d3f840181dcc3f5d9edc4e4cff0051b78 (diff)
downloadrust-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