about summary refs log tree commit diff
path: root/library/core/src/slice
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-11-30 09:52:20 +0100
committerRalf Jung <post@ralfj.de>2024-11-30 09:52:20 +0100
commit23d9741be3bd6471689327ee4e58cd5d1967b760 (patch)
tree66e6272f8c3c603c6af96dc2cfb63d0072941bc5 /library/core/src/slice
parent76f3ff605962d7046bc1537597ceed5e12325f54 (diff)
downloadrust-23d9741be3bd6471689327ee4e58cd5d1967b760.tar.gz
rust-23d9741be3bd6471689327ee4e58cd5d1967b760.zip
move slice::swap_unchecked constness to slice_swap_unchecked feature gate
Diffstat (limited to 'library/core/src/slice')
-rw-r--r--library/core/src/slice/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index a24417dba8c..ec04852d44b 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -959,7 +959,7 @@ impl<T> [T] {
     /// [`swap`]: slice::swap
     /// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
     #[unstable(feature = "slice_swap_unchecked", issue = "88539")]
-    #[rustc_const_unstable(feature = "const_swap", issue = "83163")]
+    #[rustc_const_unstable(feature = "slice_swap_unchecked", issue = "88539")]
     pub const unsafe fn swap_unchecked(&mut self, a: usize, b: usize) {
         assert_unsafe_precondition!(
             check_library_ub,