diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-11-12 19:17:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-12 19:17:30 +0100 |
| commit | 70532c4503c91d308bf0a1b1b2e1a3e2f5635ced (patch) | |
| tree | a4159487415698622b734751d6e90ca40aabdc40 /library/std/src/os/unix/process.rs | |
| parent | 1fe15be34c472c32a8cd6f1d789592f096d2f50b (diff) | |
| parent | eeaa2f16aa4487d3e5fdaef7097b488d45b986d2 (diff) | |
| download | rust-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/os/unix/process.rs')
0 files changed, 0 insertions, 0 deletions
