diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-15 20:19:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-15 20:19:53 +0100 |
| commit | 8ad8f29ae0cc512018249f93d2c3e40ea410f2ec (patch) | |
| tree | 1f8c0f8f5ed3c2dc5993b8930e5f0dab189dc91a /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | e6707df0de337976dce7577e68fc57adcd5e4842 (diff) | |
| parent | b863e9ba5791d860100fc458c790323707186249 (diff) | |
| download | rust-8ad8f29ae0cc512018249f93d2c3e40ea410f2ec.tar.gz rust-8ad8f29ae0cc512018249f93d2c3e40ea410f2ec.zip | |
Rollup merge of #117824 - WaffleLapkin:ptr_from_ref_stab, r=dtolnay
Stabilize `ptr::{from_ref, from_mut}`
I propose to stabilize the following APIs:
```rust
// mod core::ptr
pub const fn from_ref<T: ?Sized>(r: &T) -> *const T;
pub const fn from_mut<T: ?Sized>(r: &mut T) -> *mut T;
```
Tracking issue: https://github.com/rust-lang/rust/issues/106116
---
``@RalfJung`` what do you think we should do with `from_mut`? Stabilize it as const, given that you can't call it anyway (no way to get `&mut` in `const fn`)? Defer stabilizing it as const leaving the same issue/feature? Change issue/feature? Change issue/feature to the "`&mut` in const fn" one?
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
