Files
rust/library/core/src
Matthias Krüger 68f8a53f12 Rollup merge of #133651 - scottmcm:nonnull-nonzero-no-field-projection, r=oli-obk
Update `NonZero` and `NonNull` to not field-project (per MCP#807)

https://github.com/rust-lang/compiler-team/issues/807#issuecomment-2506098540 was accepted, so this is the first PR towards moving the library to not using field projections into `[rustc_layout_scalar_valid_range_*]` types.

`NonZero` was already using `transmute` nearly everywhere, so there are very few changes to it.

`NonNull` needed more changes, but they're mostly simple, changing `.pointer` to `.as_ptr()`.

r? libs

cc #133324, which will tidy up some of the MIR from this a bit more, but isn't a blocker.
2024-12-04 05:42:07 +01:00
..
2024-12-02 20:18:25 +01:00
2024-10-09 19:34:27 -04:00
2024-11-27 15:14:54 +00:00
2024-07-26 13:26:33 +01:00
2024-11-27 15:14:54 +00:00
2024-11-27 15:14:54 +00:00
2024-11-27 15:14:54 +00:00
2024-11-27 15:14:54 +00:00
2024-11-27 12:10:21 +00:00
2024-11-27 12:10:21 +00:00
2024-11-27 15:14:54 +00:00
2024-11-27 12:10:21 +00:00
2024-11-27 15:14:54 +00:00
2024-11-27 15:14:54 +00:00
2024-07-29 08:26:52 +10:00
2024-12-02 23:56:24 -08:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-11-12 15:08:41 -06:00
2024-09-05 17:24:01 +01:00
2024-06-11 15:47:00 +02:00
2024-10-09 17:17:50 -04:00
2024-11-27 15:14:54 +00:00
2024-07-26 13:26:33 +01:00
2024-11-25 17:27:41 +00:00
2024-11-27 15:14:54 +00:00
2024-11-27 15:14:54 +00:00
2024-11-27 15:14:54 +00:00
2024-08-07 20:43:05 -04:00
2024-11-27 15:14:54 +00:00
2024-09-05 17:24:01 +01:00
2024-11-27 15:14:54 +00:00