Files
rust/library/core/src
Jubilee 6b6b698988 Rollup merge of #125995 - kpreid:const-uninit-stable, r=Nilstrieb
Use inline const blocks to create arrays of `MaybeUninit`.

This PR contains 2 changes enabled by the fact that [`inline_const` is now stable](https://github.com/rust-lang/rust/pull/104087), and was split out of #125082.

1. Use inline const instead of `unsafe` to construct arrays in `MaybeUninit` examples.

   Rationale: Demonstrate good practice of avoiding `unsafe` code where it is not strictly necessary.

4. Use inline const instead of `unsafe` to implement `MaybeUninit::uninit_array()`.

    This is arguably giving the compiler more work to do, in exchange for eliminating just one single internal unsafe block, so it's less certain that this is good on net.

r​? `@Nilstrieb`
2024-06-05 01:14:33 -07:00
..
2024-05-20 19:21:30 -04:00
2024-02-13 12:04:44 +01:00
2024-05-09 17:04:30 +02:00
2024-05-04 22:56:35 +01:00
2024-05-20 22:46:13 +09:00
2024-03-29 17:10:17 +01:00
2024-06-04 10:51:05 +02:00
2024-05-25 15:00:59 -04:00
2024-06-02 18:15:50 +02:00
2024-05-21 19:05:37 -07:00
2024-03-29 10:10:52 -07:00
2024-03-07 07:49:22 +01:00
2024-05-09 17:04:30 +02:00
2023-04-16 07:20:26 +00:00
2023-07-28 14:46:17 +02:00
2024-05-23 18:45:03 +02:00
2024-05-01 22:19:11 -04:00
2023-09-06 09:47:22 -07:00
2024-03-02 16:03:23 +08:00
2024-05-09 17:04:30 +02:00
2024-05-01 22:19:11 -04:00
2024-04-08 11:57:17 +00:00