about summary refs log tree commit diff
path: root/library/std/src/sys/unix/process/process_unix.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-12 19:17:30 +0100
committerGitHub <noreply@github.com>2021-11-12 19:17:30 +0100
commit70532c4503c91d308bf0a1b1b2e1a3e2f5635ced (patch)
treea4159487415698622b734751d6e90ca40aabdc40 /library/std/src/sys/unix/process/process_unix.rs
parent1fe15be34c472c32a8cd6f1d789592f096d2f50b (diff)
parenteeaa2f16aa4487d3e5fdaef7097b488d45b986d2 (diff)
downloadrust-70532c4503c91d308bf0a1b1b2e1a3e2f5635ced.tar.gz
rust-70532c4503c91d308bf0a1b1b2e1a3e2f5635ced.zip
Rollup merge of #90644 - est31:const_swap, r=Mark-Simulacrum
Extend the const swap feature

Adds the `const_swap` feature gate to three more swap functions. cc tracking issue #83163

```Rust
impl<T> [T] {
    pub const fn swap(&mut self, a: usize, b: usize);
    pub const unsafe fn swap_unchecked(&mut self, a: usize, b: usize);
}
impl<T: ?Sized> *mut T {
    pub const unsafe fn swap(self, with: *mut T);
}
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions