rust/src
Luca Barbieri 3dd500de37 Don't emit rerun-if-changed on llvm-config if using system LLVM
The code was broken because it printed "llvm-config" instead of the
absolute path to the llvm-config executable, causing Cargo to always
rebuild librustc_llvm if using system LLVM.

Also, it's not the build system's job to rebuild when a system library
changes, so we simply don't emit "rerun-if-changed" if a path to LLVM
was not explicitly provided.
2020-04-11 17:49:16 -04:00
..
bootstrap Require compiler-rt root at ../src/llvm-project/compiler-rt 2020-04-11 17:49:16 -04:00
build_helper
ci Auto merge of #66605 - GuillaumeGomez:drop-python2, r=Mark-Simulacrum 2020-04-10 16:13:20 +00:00
doc Fix JSON file_name documentation for macros. 2020-04-09 18:54:53 -07:00
etc Enforce Python 3 as much as possible 2020-04-10 09:09:58 -04:00
liballoc Rollup merge of #70981 - ssomers:btreemap_into_into_iter, r=Mark-Simulacrum 2020-04-10 18:15:24 +02:00
libarena separate out an arena for HIR 2020-03-21 22:18:57 +01:00
libcore Rollup merge of #70896 - cuviper:optional-chain, r=scottmcm 2020-04-09 05:29:43 +02:00
libfmt_macros
libgraphviz
libpanic_abort
libpanic_unwind Make panic unwind the default for aarch64-*-windows-msvc targets 2020-04-03 09:41:58 -07:00
libproc_macro introduce negative_impls feature gate and document 2020-03-26 06:52:55 -04:00
libprofiler_builtins Require compiler-rt root at ../src/llvm-project/compiler-rt 2020-04-11 17:49:16 -04:00
librustc_apfloat
librustc_ast Rollup merge of #70519 - estebank:constraints-before-args-spans, r=Centril 2020-04-06 04:24:15 +02:00
librustc_ast_lowering librustc_hir: return LocalDefId instead of DefId in local_def_id 2020-04-08 00:43:56 +01:00
librustc_ast_passes Rollup merge of #70519 - estebank:constraints-before-args-spans, r=Centril 2020-04-06 04:24:15 +02:00
librustc_ast_pretty Rollup merge of #70519 - estebank:constraints-before-args-spans, r=Centril 2020-04-06 04:24:15 +02:00
librustc_attr rustc -> rustc_middle part 2 2020-03-30 07:16:56 +02:00
librustc_builtin_macros Use if let instead of match when only matching a single variant (clippy::single_match) 2020-03-30 10:52:29 +02:00
librustc_codegen_llvm fix abuses of tykind::err 2020-04-07 22:47:25 -05:00
librustc_codegen_ssa fix rustc-dev-guide url in src/librustc_codegen_ssa 2020-04-10 22:48:34 +08:00
librustc_data_structures Depend on libc from crates.io 2020-04-11 11:07:04 -04:00
librustc_driver Depend on getopts from crates.io 2020-04-11 17:49:16 -04:00
librustc_error_codes Rollup merge of #70985 - GuillaumeGomez:cleanup-e0512, r=Dylan-DPC 2020-04-10 18:15:26 +02:00
librustc_errors Use assoc integer constants in librustc_* 2020-04-07 00:43:16 +02:00
librustc_expand macro_rules: NtLifetime cannot start with an identifier 2020-04-04 16:23:43 +03:00
librustc_feature #[link]: mention wasm_import_module instead of cfg 2020-03-29 17:40:04 +02:00
librustc_fs_util
librustc_hir Rollup merge of #70913 - eddyb:rc-arc-diagnostic-items, r=matthewjasper 2020-04-10 12:48:45 +02:00
librustc_hir_pretty Use if let instead of match when only matching a single variant (clippy::single_match) 2020-03-30 10:52:29 +02:00
librustc_incremental rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00
librustc_index Use assoc integer constants in librustc_* 2020-04-07 00:43:16 +02:00
librustc_infer Auto merge of #70986 - marmeladema:issue70853/librustc_middle-local-def-id, r=eddyb 2020-04-10 23:13:13 +00:00
librustc_interface Depend on getopts from crates.io 2020-04-11 17:49:16 -04:00
librustc_lexer Handle unterminated raw strings with no #s properly 2020-04-02 01:02:55 -04:00
librustc_lint librustc_middle: return LocalDefId instead of DefId in body_owner_def_id 2020-04-10 12:13:54 +01:00
librustc_llvm Don't emit rerun-if-changed on llvm-config if using system LLVM 2020-04-11 17:49:16 -04:00
librustc_macros Rollup merge of #70081 - lcnr:issue68387, r=varkor 2020-04-01 00:27:20 +02:00
librustc_metadata Depend on libc from crates.io 2020-04-11 11:07:04 -04:00
librustc_middle Auto merge of #70986 - marmeladema:issue70853/librustc_middle-local-def-id, r=eddyb 2020-04-10 23:13:13 +00:00
librustc_mir Auto merge of #70986 - marmeladema:issue70853/librustc_middle-local-def-id, r=eddyb 2020-04-10 23:13:13 +00:00
librustc_mir_build Use tri-color search for unconditional recursion lint 2020-04-09 21:07:48 -07:00
librustc_parse .unwrap() less on .span_to_snippet() 2020-04-03 03:17:40 +02:00
librustc_passes librustc_middle: return LocalDefId instead of DefId in get_parent_did 2020-04-10 12:13:54 +01:00
librustc_plugin_impl rustc -> rustc_middle part 3 (rustfmt) 2020-03-30 07:19:55 +02:00
librustc_privacy librustc_middle: return LocalDefId instead of DefId in get_parent_did 2020-04-10 12:13:54 +01:00
librustc_query_system Add inline attributes for functions used in the query system 2020-03-30 14:37:44 +02:00
librustc_resolve Auto merge of #70909 - marmeladema:issue70853/librustc_hir-local-def-id, r=eddyb 2020-04-09 23:22:23 +00:00
librustc_save_analysis librustc_middle: return LocalDefId instead of DefId in local_def_id_from_node_id 2020-04-10 12:13:54 +01:00
librustc_session Depend on getopts from crates.io 2020-04-11 17:49:16 -04:00
librustc_span Auto merge of #70986 - marmeladema:issue70853/librustc_middle-local-def-id, r=eddyb 2020-04-10 23:13:13 +00:00
librustc_symbol_mangling Use if let instead of match when only matching a single variant (clippy::single_match) 2020-03-30 10:52:29 +02:00
librustc_target Rollup merge of #70704 - danielframpton:aarch64-windows-panic-unwind-default, r=alexcrichton 2020-04-06 04:24:16 +02:00
librustc_trait_selection Auto merge of #70986 - marmeladema:issue70853/librustc_middle-local-def-id, r=eddyb 2020-04-10 23:13:13 +00:00
librustc_traits ty: switch Ty::walk from Ty to GenericArg. 2020-04-06 21:55:50 +03:00
librustc_ty Query-ify Instance::resolve 2020-04-05 01:21:36 -04:00
librustc_typeck Auto merge of #70986 - marmeladema:issue70853/librustc_middle-local-def-id, r=eddyb 2020-04-10 23:13:13 +00:00
librustdoc Depend on getopts from crates.io 2020-04-11 17:49:16 -04:00
libserialize Use assoc integer constants in libserialize 2020-04-07 00:43:15 +02:00
libstd Rollup merge of #67705 - lzutao:wmemchr, r=wesleywiser 2020-04-09 05:29:36 +02:00
libterm
libtest Stop importing float module in libtest 2020-04-06 22:45:44 +02:00
libunwind
llvm-project@027e428197 Make panic unwind the default for aarch64-*-windows-msvc targets 2020-04-03 09:41:58 -07:00
rtstartup
rustc
rustllvm Add hash of source files in debug info 2020-04-02 14:13:19 -07:00
stdarch@1a577bd78e Bump stdarch submodule 2020-04-06 22:16:09 +02:00
test Auto merge of #69573 - pnkfelix:issue-53114-add-tests, r=Centril 2020-04-11 06:44:47 +00:00
tools Auto merge of #70994 - Centril:rollup-lftv0a3, r=Centril 2020-04-10 19:28:38 +00:00
README.md
stage0.txt Bump the bootstrap compiler 2020-03-15 19:43:25 +01: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 dev guide.