about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-15 20:19:53 +0100
committerGitHub <noreply@github.com>2023-12-15 20:19:53 +0100
commit8ad8f29ae0cc512018249f93d2c3e40ea410f2ec (patch)
tree1f8c0f8f5ed3c2dc5993b8930e5f0dab189dc91a /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parente6707df0de337976dce7577e68fc57adcd5e4842 (diff)
parentb863e9ba5791d860100fc458c790323707186249 (diff)
downloadrust-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