Files
rust/library/core/src
Matthias Krüger af0cf34787 Rollup merge of #90896 - jhpratt:stabilize_const_maybe_uninit, r=oli-obk
Stabilize some `MaybeUninit` behavior as const

This stabilizes the `MaybeUninit::as_ptr`, `MaybeUninit::assume_init`, and `MaybeUninit::assume_init_ref` as `const fn`. `MaybeUninit::as_mut_ptr` has been moved to a new flag: `const_maybe_uninit_as_mut_ptr`, which is blocked on #57349. `MaybeUninit::slice_assume_init_ref` can be `const fn` when the method is stabilized in general.

The relevant intrinsic has been stabilized as `const` as well, though this isn't user-visible. Due to the seemingly unrelated feature name I performed `rg const_assert_type` and found no other instances of it being used.

r? `@oli-obk`

`@rustbot` label: +A-const-fn +S-waiting-on-review +T-libs-api
2021-11-28 10:42:38 +01:00
..
2021-11-26 19:30:35 +11:00
2021-11-10 11:57:14 -08:00
2021-11-23 23:55:05 +01:00
2021-11-27 13:13:04 -08:00
2021-11-23 10:34:16 -08:00
2021-09-25 20:04:35 +02:00
2021-09-12 02:23:08 +00:00
2021-03-03 11:23:29 +01:00
2021-10-03 20:59:54 -07:00
2021-11-10 08:35:42 -08:00
2021-10-18 19:19:28 +09:00
2021-11-08 17:06:00 -05:00
2021-11-19 19:13:53 +03:00
2020-07-27 19:51:13 -05:00
2021-11-22 13:09:08 -05:00
2020-07-27 19:51:13 -05:00
2020-07-27 19:51:13 -05:00