about summary refs log tree commit diff
path: root/library/std/src/os/linux/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-05 14:15:19 +0000
committerbors <bors@rust-lang.org>2021-05-05 14:15:19 +0000
commit342db70ae4ecc3cd17e4fa6497f0a8d9534ccfeb (patch)
treee18b3678cfc15269ce32a88a453f6c810a3c5194 /library/std/src/os/linux/mod.rs
parent24acc388da2cdbe1ec79b6933402941b6fffb26b (diff)
parent2173d8dbe67790e0054876de99fcbfafdb4f8ecd (diff)
downloadrust-342db70ae4ecc3cd17e4fa6497f0a8d9534ccfeb.tar.gz
rust-342db70ae4ecc3cd17e4fa6497f0a8d9534ccfeb.zip
Auto merge of #84200 - CDirkx:os, r=m-ou-se
Move all `sys::ext` modules to `os`

This PR moves all `sys::ext` modules to `os`, centralizing the location of all `os` code and simplifying the dependencies between `os` and `sys`.

Because this also removes all uses `cfg_if!` on publicly exported items, where after #81969 there were still a few left, this should properly work around https://github.com/rust-analyzer/rust-analyzer/issues/6038.

`@rustbot` label: +T-libs-impl
Diffstat (limited to 'library/std/src/os/linux/mod.rs')
-rw-r--r--library/std/src/os/linux/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/os/linux/mod.rs b/library/std/src/os/linux/mod.rs
index f179a524336..94438defc22 100644
--- a/library/std/src/os/linux/mod.rs
+++ b/library/std/src/os/linux/mod.rs
@@ -1,6 +1,7 @@
 //! Linux-specific definitions.
 
 #![stable(feature = "raw_ext", since = "1.1.0")]
+#![doc(cfg(target_os = "linux"))]
 
 pub mod fs;
 pub mod raw;