diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-04 05:42:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-04 05:42:07 +0100 |
| commit | 68f8a53f124642c8c1e810b7efe40e31718732b0 (patch) | |
| tree | 3d185937d3046d93c3dcb742a227363455aa284e /compiler/rustc_interface/src | |
| parent | 3b382642aba7cffbb2f47829b24635fad87bcf5c (diff) | |
| parent | 7afce4f06a56dc1344f54e179a0785b95700df5f (diff) | |
| download | rust-68f8a53f124642c8c1e810b7efe40e31718732b0.tar.gz rust-68f8a53f124642c8c1e810b7efe40e31718732b0.zip | |
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.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
