about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2016-09-22 01:30:30 +0000
committerBrian Anderson <banderson@mozilla.com>2016-10-02 14:52:15 -0700
commit29e0235415a42299e4a7467c5edb09a159ec680e (patch)
treea23455cc0251918edc2fe61d76da9da9ac5a7a07 /src/test/run-pass/thinlto
parent0fb8379ed86f15943e87721f73165138598d19cc (diff)
downloadrust-29e0235415a42299e4a7467c5edb09a159ec680e.tar.gz
rust-29e0235415a42299e4a7467c5edb09a159ec680e.zip
Add a platform-abstraction tidy script
This is intended to maintain existing standards of code organization
in hopes that the standard library will continue to be refactored to
isolate platform-specific bits, making porting easier; where "standard
library" roughly means "all the dependencies of the std and test
crates".

This generally means placing restrictions on where `cfg(unix)`,
`cfg(windows)`, `cfg(target_os)` and `cfg(target_env)` may appear,
the basic objective being to isolate platform-specific code to the
platform-specific `std::sys` modules, and to the allocation,
unwinding, and libc crates.

Following are the basic rules, though there are currently
exceptions:

- core may not have platform-specific code
- liballoc_system may have platform-specific code
- liballoc_jemalloc may have platform-specific code
- libpanic_abort may have platform-specific code
- libpanic_unwind may have platform-specific code
- other crates in the std facade may not
- std may have platform-specific code in the following places
  - sys/unix/
  - sys/windows/
  - os/

There are plenty of exceptions today though, noted in the whitelist.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions