rust/src
Mazdak Farrokhzad fe807fcf3e
Rollup merge of #62213 - QuietMisdreavus:cfg-doctest, r=GuillaumeGomez
rustdoc: set cfg(doctest) when collecting doctests

Note: This PR builds on top of https://github.com/rust-lang/rust/pull/61199; only the last commit is specific to this PR.

As discussed in https://github.com/rust-lang/rust/pull/61199, we want the ability to isolate items to only when rustdoc is collecting doctests, but we can't use `cfg(test)` because of libcore's `#![cfg(not(test))]`. This PR proposes a new cfg flag, `cfg(doctest)`, specific to this situation, rather than reusing an existing flag. I've isolated it behind a feature gate so that we can contain the effects to nightly only. (A stable workaround that can be used in lieu of `#[cfg(doctest)]` is `#[cfg(rustdoc)] #[doc(hidden)]`, at least once https://github.com/rust-lang/rust/pull/61351 lands.)

Tracking issue: https://github.com/rust-lang/rust/issues/62210
2019-07-07 17:00:18 +02:00
..
bootstrap Rollup merge of #62438 - petrochenkov:buildwarn, r=Mark-Simulacrum 2019-07-07 05:11:55 +02:00
build_helper Bump compiler-builtins to 0.1.15 2019-05-22 07:46:36 -07:00
ci cfg: linkcheck only on x86-64 linux 2019-07-06 11:05:22 -03:00
doc rustdoc: set cfg(doctest) when collecting doctests 2019-07-06 21:37:17 -05:00
etc Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton 2019-07-04 01:38:59 +02:00
grammar
liballoc Rollup merge of #61862 - vorner:weak-into-raw-methods, r=sfackler 2019-07-06 22:14:35 +02:00
libarena rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
libcore Rollup merge of #62379 - GuillaumeGomez:option-doc-links, r=QuietMisdreavus 2019-07-07 05:11:53 +02:00
libfmt_macros rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
libgraphviz rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
libpanic_abort
libpanic_unwind Make use of ptr::null(_mut) instead of casting zero 2019-06-17 10:52:46 +00:00
libproc_macro Rollup merge of #62249 - czipperz:use-mem-take-instead-of-replace-default, r=dtolnay,Centril 2019-07-04 01:38:46 +02:00
libprofiler_builtins Ship profiler with windows-gnu 2019-05-23 13:32:30 +02:00
librustc Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasper 2019-07-07 17:00:17 +02:00
librustc_allocator rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_apfloat rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_asan
librustc_borrowck rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_codegen_llvm Remove some dummy dependencies 2019-07-07 03:23:00 +02:00
librustc_codegen_ssa rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_codegen_utils rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_data_structures rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_driver Rollup merge of #62168 - ljedrz:the_culmination_of_hiridification, r=Zoxc 2019-07-05 20:26:56 +02:00
librustc_errors rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_fs_util rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_incremental rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_interface rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_lint Rollup merge of #61883 - zackmdavis:non_ascii_idents_lint, r=Manishearth 2019-07-07 17:00:15 +02:00
librustc_llvm rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_lsan
librustc_macros Rollup merge of #61545 - flip1995:internal_lints, r=oli-obk 2019-07-05 20:26:51 +02:00
librustc_metadata rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_mir rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_msan
librustc_passes rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_plugin Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasper 2019-07-07 17:00:17 +02:00
librustc_privacy rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_resolve Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasper 2019-07-07 17:00:17 +02:00
librustc_save_analysis rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_target Auto merge of #59800 - Zoxc:less-dylibs, r=alexcrichton 2019-07-07 11:32:58 +00:00
librustc_traits rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
librustc_tsan
librustc_typeck Auto merge of #59800 - Zoxc:less-dylibs, r=alexcrichton 2019-07-07 11:32:58 +00:00
librustdoc rustdoc: set cfg(doctest) when collecting doctests 2019-07-06 21:37:17 -05:00
libserialize Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasper 2019-07-07 17:00:17 +02:00
libstd #[rustc_doc_only_macro] -> #[rustc_builtin_macro] 2019-07-06 16:59:08 +03:00
libsyntax Rollup merge of #62213 - QuietMisdreavus:cfg-doctest, r=GuillaumeGomez 2019-07-07 17:00:18 +02:00
libsyntax_ext Rollup merge of #62042 - petrochenkov:macstab, r=matthewjasper 2019-07-07 17:00:17 +02:00
libsyntax_pos Rollup merge of #62213 - QuietMisdreavus:cfg-doctest, r=GuillaumeGomez 2019-07-07 17:00:18 +02:00
libterm Remove use of mem::uninitialized in libterm crate 2019-07-06 03:27:05 +00:00
libtest Separate libtest module 2019-06-16 14:17:01 +03:00
libunwind Switch master to 1.38 2019-07-04 11:26:57 -04:00
llvm-emscripten@7f23313edf
llvm-project@8538d56b2d Update LLVM: apply patches for pc-relative addressing on 64-bit RISC-V 2019-07-01 23:52:04 +03:00
rtstartup
rustc Remove leading newlines 2019-04-22 17:01:33 +01:00
rustllvm Limit internalization in LLVM 8 ThinLTO 2019-04-26 08:58:14 -07:00
stdsimd@4bf456c35e
test Rollup merge of #62213 - QuietMisdreavus:cfg-doctest, r=GuillaumeGomez 2019-07-07 17:00:18 +02:00
tools Auto merge of #62434 - Manishearth:clippyup, r=Manishearth 2019-07-07 08:07:54 +00:00
.gitignore
README.md
stage0.txt Switch master to 1.38 2019-07-04 11:26:57 -04:00

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

  • rustc and its tests
  • libstd
  • Various submodules for tools, like rustdoc, rls, etc.

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

There is also useful content in the following READMEs, which are gradually being moved over to the guide: