diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-30 09:52:20 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-11-30 09:52:20 +0100 |
| commit | 23d9741be3bd6471689327ee4e58cd5d1967b760 (patch) | |
| tree | 66e6272f8c3c603c6af96dc2cfb63d0072941bc5 /library/core/src/slice | |
| parent | 76f3ff605962d7046bc1537597ceed5e12325f54 (diff) | |
| download | rust-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.rs | 2 |
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, |
