diff options
| author | bors <bors@rust-lang.org> | 2022-05-31 14:55:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-31 14:55:33 +0000 |
| commit | 0a43923a86c3b8f11d005884871b152f59b746f7 (patch) | |
| tree | fff7b234e4c977228aba495c311308de7036e7f9 /compiler/rustc_codegen_llvm | |
| parent | 16a0d03698bfc9f93250490797f9a1a870f8bcfe (diff) | |
| parent | 3a2bb782289a9cc34d4b4f7ed8e0b7a5c3bbf486 (diff) | |
| download | rust-0a43923a86c3b8f11d005884871b152f59b746f7.tar.gz rust-0a43923a86c3b8f11d005884871b152f59b746f7.zip | |
Auto merge of #97419 - WaffleLapkin:const_from_ptr_range, r=oli-obk
Make `from{,_mut}_ptr_range` const
This PR makes the following APIs `const`:
```rust
// core::slice
pub const unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T];
pub const unsafe fn from_mut_ptr_range<'a, T>(range: Range<*mut T>) -> &'a mut [T];
```
Tracking issue: #89792.
Feature for `from_ptr_range` as a `const fn`: `slice_from_ptr_range_const`.
Feature for `from_mut_ptr_range` as a `const fn`: `slice_from_mut_ptr_range_const`.
r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions
