diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-05-20 14:16:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-20 14:16:36 +0000 |
commit | ae6699940e8fc75008f94312f189892efdcfb2f0 (patch) | |
tree | dcd38426830109db44cad09d48bdfc856fd011f4 /src/sys | |
parent | b13b7d18e0d2f4a8c05e41576c7ebf26d6dbfb28 (diff) | |
parent | 2f60820c3d11e773826705b7204216aebbad5a6c (diff) | |
download | nix-ae6699940e8fc75008f94312f189892efdcfb2f0.zip |
Merge #2029
2029: Remove 'static mut' usage in features::os::kernel_version. r=asomers a=zachs18
Resolves #2028
Note that this is (AFAICT) the first use of `Atomic*` types in `nix` (other than tests). However, this shouldn't be a portability issue, since `nix` is not `#![no_std]`, and (IIUC) [`std` requires](https://doc.rust-lang.org/std/sync/atomic/#portability) at least loads and stores of pointer-sized atomics (i.e. `AtomicUsize`), which is all this PR uses.
Co-authored-by: Zachary S <zasample18+github@gmail.com>
Diffstat (limited to 'src/sys')
0 files changed, 0 insertions, 0 deletions