move slice::swap_unchecked constness to slice_swap_unchecked feature gate
This commit is contained in:
parent
76f3ff6059
commit
23d9741be3
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue