Skip to content

Commit ffc20e4

Browse files
committed
Move std::sys::windows::ext to std::os::windows
1 parent 7024bff commit ffc20e4

File tree

10 files changed

+5
-16
lines changed

10 files changed

+5
-16
lines changed

library/std/src/os/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ cfg_if::cfg_if! {
2323
#[stable(feature = "wasi_ext_doc", since = "1.35.0")]
2424
pub use crate::sys::wasi_ext as wasi;
2525

26-
#[stable(feature = "rust1", since = "1.0.0")]
27-
pub use crate::sys::windows_ext as windows;
26+
pub mod windows;
2827
} else if #[cfg(doc)] {
2928
// On certain platforms right now the "main modules" modules that are
3029
// documented don't compile (missing things in `libc` which is empty),
@@ -94,7 +93,6 @@ cfg_if::cfg_if! {
9493
pub mod wasi;
9594

9695
#[cfg(windows)]
97-
#[stable(feature = "rust1", since = "1.0.0")]
98-
pub use crate::sys::ext as windows;
96+
pub mod windows;
9997
}
10098
}

library/std/src/sys/windows/ext/mod.rs renamed to library/std/src/os/windows/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
#![stable(feature = "rust1", since = "1.0.0")]
1010
#![doc(cfg(windows))]
11-
#![allow(missing_docs)]
1211

1312
pub mod ffi;
1413
pub mod fs;

library/std/src/sys/mod.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,16 @@ cfg_if::cfg_if! {
7878
all(target_vendor = "fortanix", target_env = "sgx")
7979
)))]
8080
cfg_if::cfg_if! {
81-
if #[cfg(windows)] {
82-
#[allow(missing_docs)]
83-
#[stable(feature = "rust1", since = "1.0.0")]
84-
pub use self::ext as windows_ext;
85-
} else {
81+
if #[cfg(not(windows))] {
8682
// On non-Windows platforms (aka linux/osx/etc) pull in a "minimal"
8783
// amount of windows goop which ends up compiling
8884

8985
#[macro_use]
9086
#[path = "windows/compat.rs"]
91-
mod compat;
87+
pub mod compat;
9288

9389
#[path = "windows/c.rs"]
94-
mod c;
95-
96-
#[path = "windows/ext/mod.rs"]
97-
pub mod windows_ext;
90+
pub mod c;
9891
}
9992
}
10093

library/std/src/sys/windows/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub mod c;
1818
pub mod cmath;
1919
pub mod condvar;
2020
pub mod env;
21-
pub mod ext;
2221
pub mod fs;
2322
pub mod handle;
2423
pub mod io;

0 commit comments

Comments
 (0)