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-07-21 12:05:02 -05:00
2024-02-07 16:46:28 +01:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2023-06-29 01:55:03 +02:00
2023-04-26 02:10:22 -04:00
2023-04-16 11:38:52 +00:00
2024-01-11 15:04:48 +03:00
2023-12-10 10:56:22 +08:00
2024-07-29 20:33:11 +03:00
2024-07-29 08:26:52 +10:00
2023-04-16 11:38:52 +00:00
2024-05-01 22:19:11 -04:00
2024-09-13 15:18:30 -03:00
2023-07-12 21:38:55 -04:00
2024-09-09 16:17:34 +02:00
2024-06-19 21:44:47 +01:00
2024-07-31 17:10:55 +08:00
2024-07-29 08:26:52 +10:00
2023-11-26 08:50:39 -05:00
2024-04-24 15:27:47 -07:00
2024-01-24 14:24:57 +01:00