std: Move sys_common to libstd/sys_common
Make the directory structure reflect the module structure. I've always found the existing structure confusing.
This commit is contained in:
parent
f3a709dc52
commit
ca30691813
@ -456,8 +456,7 @@ pub mod time;
|
||||
mod memchr;
|
||||
|
||||
#[macro_use]
|
||||
#[path = "sys/common/mod.rs"] mod sys_common;
|
||||
|
||||
mod sys_common;
|
||||
mod sys;
|
||||
|
||||
pub mod rt;
|
||||
|
@ -57,9 +57,8 @@ const EXCEPTION_PATHS: &'static [&'static str] = &[
|
||||
"src/libpanic_abort",
|
||||
"src/libpanic_unwind",
|
||||
"src/libunwind",
|
||||
"src/libstd/sys/unix", // This is where platform-specific code for unix
|
||||
"src/libstd/sys/windows", // Ditto for windows
|
||||
"src/libstd/sys/mod.rs", // This file chooses the platform
|
||||
"src/libstd/sys/", // Platform-specific code for std lives here.
|
||||
// This has the trailing slash so that sys_common is not excepted.
|
||||
"src/libstd/os", // Platform-specific public interfaces
|
||||
"src/rtstartup", // Not sure what to do about this. magic stuff for mingw
|
||||
|
||||
@ -68,8 +67,8 @@ const EXCEPTION_PATHS: &'static [&'static str] = &[
|
||||
"src/libstd/path.rs",
|
||||
"src/libstd/num/f32.rs",
|
||||
"src/libstd/num/f64.rs",
|
||||
"src/libstd/sys/common/mod.rs",
|
||||
"src/libstd/sys/common/net.rs",
|
||||
"src/libstd/sys_common/mod.rs",
|
||||
"src/libstd/sys_common/net.rs",
|
||||
"src/libterm", // Not sure how to make this crate portable, but test needs it
|
||||
"src/libtest", // Probably should defer to unstable std::sys APIs
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user