diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-05-31 23:11:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-31 23:11:37 +0200 |
| commit | 31fccd1a446fee1e67ac264589487188d1d9d5e7 (patch) | |
| tree | 7bd9e57234c4bb949e4b236fa17eea6d87412c43 | |
| parent | 1998aefc0a28e1f3f1d0592ffda5a50c6faedbd1 (diff) | |
| parent | 2aef6c5436d0d0b2f0800b1e870d467dafd4e505 (diff) | |
| download | rust-31fccd1a446fee1e67ac264589487188d1d9d5e7.tar.gz rust-31fccd1a446fee1e67ac264589487188d1d9d5e7.zip | |
Rollup merge of #97596 - WaffleLapkin:fixup_feature_name, r=compiler-errors
Fixup feature name to be more consistent with others `slice_from_mut_ptr_range_const` -> `const_slice_from_mut_ptr_range`, we usually have `const` in the front. I've made a typo in #97419
| -rw-r--r-- | library/core/src/slice/raw.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/raw.rs b/library/core/src/slice/raw.rs index 8ce1d18caae..fcafcbeafbc 100644 --- a/library/core/src/slice/raw.rs +++ b/library/core/src/slice/raw.rs @@ -264,7 +264,7 @@ pub const unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T] { /// /// [valid]: ptr#safety #[unstable(feature = "slice_from_ptr_range", issue = "89792")] -#[rustc_const_unstable(feature = "slice_from_mut_ptr_range_const", issue = "89792")] +#[rustc_const_unstable(feature = "const_slice_from_mut_ptr_range", issue = "89792")] pub const unsafe fn from_mut_ptr_range<'a, T>(range: Range<*mut T>) -> &'a mut [T] { // SAFETY: the caller must uphold the safety contract for `from_mut_ptr_range`. unsafe { from_raw_parts_mut(range.start, range.end.sub_ptr(range.start)) } |
