about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-30 14:37:01 +0200
committerGitHub <noreply@github.com>2021-10-30 14:37:01 +0200
commitb531364a1a8af28ad78e52cf0a9bf657640aa17c (patch)
treef6130bda729f492fd78c958250ab4bc0d0122482 /src/test/codegen/src-hash-algorithm
parenta213740abeb2c4248633b1e3836b38473d2b01ec (diff)
parentafaa54a99d75bc6287d835b1ee33e1b15bda462e (diff)
downloadrust-b531364a1a8af28ad78e52cf0a9bf657640aa17c.tar.gz
rust-b531364a1a8af28ad78e52cf0a9bf657640aa17c.zip
Rollup merge of #90377 - WaffleLapkin:const_slice_from_raw_parts, r=oli-obk
Make `core::slice::from_raw_parts[_mut]` const

Responses to #90012 seem to allow ``@rust-lang/wg-const-eval`` to decide on use of `const_eval_select`, so we can make `core::slice::from_raw_parts[_mut]` const :)

---
This PR marks the following APIs as const:
```rust
// core::slice
pub const unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T];
pub const unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T];
```
---

Resolves #90011
r? ``@oli-obk``
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions