Matthias Krüger
1817de609b
Rollup merge of #130822 - bjoernager:non-null-from-ref, r=dtolnay
...
Add `from_ref` and `from_mut` constructors to `core::ptr::NonNull`.
Relevant tracking issue: #130823
The `core::ptr::NonNull` type should have the convenience constructors `from_ref` and `from_mut` for parity with `core::ptr::from_ref` and `core::ptr::from_mut`.
Although the type in question already implements `From<&T>` and `From<&mut T>`, these new functions also carry the ability to be used in constant expressions (due to not being behind a trait).
2024-10-16 19:18:30 +02:00
..
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-09-14 13:30:35 +08:00
2024-09-14 13:30:35 +08:00
2024-09-14 13:30:35 +08:00
2024-08-18 16:07:33 -07:00
2024-06-03 14:17:16 +10:00
2024-09-24 23:12:02 +02:00
2024-08-18 16:07:33 -07:00
2024-09-24 23:12:02 +02:00
2024-08-18 16:07:33 -07:00
2024-08-31 23:56:45 +02:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-07-29 18:14:35 +08:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-09-14 13:30:35 +08:00
2024-07-29 18:14:35 +08:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-06-26 15:05:01 -07:00
2024-10-07 11:18:37 -04:00
2024-10-07 11:18:37 -04:00
2024-10-07 11:18:37 -04:00
2024-10-07 11:18:37 -04:00
2024-04-21 11:08:36 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 15:52:23 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-10-07 11:18:37 -04:00
2024-10-07 11:18:37 -04:00
2024-10-07 11:18:37 -04:00
2024-10-07 11:18:37 -04:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-10-07 11:18:37 -04:00
2024-10-07 11:18:37 -04:00
2024-10-07 12:23:27 -04:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-07-01 05:17:13 -07:00
2024-07-01 05:17:13 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-08-18 16:07:33 -07:00
2024-09-14 13:30:35 +08:00
2024-06-03 14:17:16 +10:00
2024-10-06 19:58:35 -04:00
2024-10-06 19:58:35 -04:00