rust/src
bors 45f638bd86 Auto merge of #75979 - lzutao:seprate-tests, r=Mark-Simulacrum
Move `#[cfg(test)]` modules into separate files to save recompiling the `std` crate

Implements an accepted proposal: https://github.com/rust-lang/compiler-team/issues/344

Some notes for reviewers:
* `mod tests` nested in `mod foo` in `mod bar`, I move `foo` to a new file, `tests` is a new file in foo: For example library/std/src/sys/sgx/abi/tls.rs
* `mod test` (not `mod tests`) also is moved.
* `mod benches` are moved.
* `mod tests` is placed before any `use` statements: The topic is discussed in https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Code.20Style.20process
* Some files in cloudabi was changed too. But I notice copyright banners in those files, should we ping cloudabi people?
* I formatted files after moving tests around. I think that may make it easier to review :p .
* Some files don't need `ignore-tidy-filelength` anymore.
2020-08-31 20:03:33 +00:00
..
bootstrap Rollup merge of #76127 - petrochenkov:lld, r=Mark-Simulacrum 2020-08-31 15:22:45 +02:00
build_helper cleanup: Remove duplicate library names from Cargo.tomls 2020-08-30 22:57:54 +03:00
ci Auto merge of #74922 - joshtriplett:ninja-by-default, r=Mark-Simulacrum 2020-08-29 06:08:37 +00:00
doc Auto merge of #75919 - rust-lang:jonas-schievink-patch-1, r=ehuss 2020-08-30 06:32:12 +00:00
etc Fix loading pretty-printers in rust-lldb script 2020-08-28 09:29:45 +03:00
librustc_llvm cleanup: Remove duplicate library names from Cargo.tomls 2020-08-30 22:57:54 +03:00
librustdoc Rollup merge of #76052 - aszenz:GH-66816_removes_disable_attribute_before_return, r=GuillaumeGomez 2020-08-31 12:51:46 +02:00
llvm-project@45790d7949 Upgrade to LLVM 11 (rc2) 2020-08-22 13:44:54 -07:00
rustllvm Write coverage filenames in Version3 format 2020-08-22 13:44:54 -07:00
test Rollup merge of #75938 - Amjad50:min_const_generics-tests-revisions, r=lcnr 2020-08-31 15:22:38 +02:00
tools tidy: add new exceptions and remove std from skip list 2020-08-31 02:56:58 +00:00
README.md Update README.md 2020-08-30 13:40:11 -05:00
stage0.txt bump version to 1.48 2020-08-26 10:16:59 +02:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.