Skip to content

Commit ca30691

Browse files
committed
std: Move sys_common to libstd/sys_common
Make the directory structure reflect the module structure. I've always found the existing structure confusing.
1 parent f3a709d commit ca30691

File tree

20 files changed

+5
-7
lines changed

20 files changed

+5
-7
lines changed

src/libstd/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,7 @@ pub mod time;
456456
mod memchr;
457457

458458
#[macro_use]
459-
#[path = "sys/common/mod.rs"] mod sys_common;
460-
459+
mod sys_common;
461460
mod sys;
462461

463462
pub mod rt;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/tools/tidy/src/pal.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ const EXCEPTION_PATHS: &'static [&'static str] = &[
5757
"src/libpanic_abort",
5858
"src/libpanic_unwind",
5959
"src/libunwind",
60-
"src/libstd/sys/unix", // This is where platform-specific code for unix
61-
"src/libstd/sys/windows", // Ditto for windows
62-
"src/libstd/sys/mod.rs", // This file chooses the platform
60+
"src/libstd/sys/", // Platform-specific code for std lives here.
61+
// This has the trailing slash so that sys_common is not excepted.
6362
"src/libstd/os", // Platform-specific public interfaces
6463
"src/rtstartup", // Not sure what to do about this. magic stuff for mingw
6564

@@ -68,8 +67,8 @@ const EXCEPTION_PATHS: &'static [&'static str] = &[
6867
"src/libstd/path.rs",
6968
"src/libstd/num/f32.rs",
7069
"src/libstd/num/f64.rs",
71-
"src/libstd/sys/common/mod.rs",
72-
"src/libstd/sys/common/net.rs",
70+
"src/libstd/sys_common/mod.rs",
71+
"src/libstd/sys_common/net.rs",
7372
"src/libterm", // Not sure how to make this crate portable, but test needs it
7473
"src/libtest", // Probably should defer to unstable std::sys APIs
7574

0 commit comments

Comments
 (0)