Trevor Gross 8a86f1dd8c
Rollup merge of #130954 - workingjubilee:stabilize-const-mut-fn, r=RalfJung
Stabilize const `ptr::write*` and `mem::replace`

Since `const_mut_refs` and `const_refs_to_cell` have been stabilized, we may now also stabilize the ability to write to places during const evaluation inside our library API. So, we now propose the `const fn` version of `ptr::write` and its variants. This allows us to also stabilize `mem::replace` and `ptr::replace`.
- const `mem::replace`: https://github.com/rust-lang/rust/issues/83164#issuecomment-2338660862
- const `ptr::write{,_bytes,_unaligned}`: https://github.com/rust-lang/rust/issues/86302#issuecomment-2330275266

Their implementation requires an additional internal stabilization of `const_intrinsic_forget`, which is required for `*::write*` and thus `*::replace`. Thus we const-stabilize the internal intrinsics `forget`, `write_bytes`, and `write_via_move`.
2024-10-12 11:08:42 -05:00
..
2024-10-10 16:18:56 -04:00
2024-10-09 00:38:01 -07:00
2024-09-28 11:29:02 +02:00
2024-10-10 16:33:27 +02:00
2024-09-25 17:03:20 -07:00
2024-10-06 20:37:10 +03:00
2024-10-12 00:02:38 -07:00
2024-10-12 00:02:38 -07:00
2024-10-09 00:38:01 -07:00
2024-10-02 14:09:19 -07:00
2024-09-26 09:54:00 +02:00
2024-09-29 09:32:03 +02:00
2024-10-11 18:34:28 +02:00
2024-10-11 18:23:30 +02:00