Skip to content

Commit df30b6e

Browse files
RalfJunggitbot
authored and
gitbot
committed
move slice::swap_unchecked constness to slice_swap_unchecked feature gate
1 parent 8c93111 commit df30b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ impl<T> [T] {
959959
/// [`swap`]: slice::swap
960960
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
961961
#[unstable(feature = "slice_swap_unchecked", issue = "88539")]
962-
#[rustc_const_unstable(feature = "const_swap", issue = "83163")]
962+
#[rustc_const_unstable(feature = "slice_swap_unchecked", issue = "88539")]
963963
pub const unsafe fn swap_unchecked(&mut self, a: usize, b: usize) {
964964
assert_unsafe_precondition!(
965965
check_library_ub,

0 commit comments

Comments
 (0)