rust/src
Mazdak Farrokhzad 319064f469
Rollup merge of #66907 - eddyb:br-nicer-named, r=oli-obk
rustc: don't just show raw DefIndex's in BrNamed's fmt::Debug impl.

Context: these `fmt::Debug` impls only get used with `-Z verbose` (which some tests use).

I was going to print the path like in #66850 (or rather, use `DefId`'s `fmt::Debug`, which is close but not as nice), but then I realized that most of the `DefId`s were `crate0:DefIndex(0)`, i.e. the crate root.
As the crate root is not a lifetime, they're clearly dummies of some sort, and we don't have to print anything other than the name for them.

This means that out of all the tests, there's only 5 instances of `BrNamed` that now print the full path to the lifetime parameter, and everything else is shorter instead, which doesn't feel too bad.

cc @nikomatsakis
2019-12-02 04:09:04 +01:00
..
bootstrap Fix spelling typos 2019-11-26 22:19:54 -05:00
build_helper
ci Revert "DO NOT MERGE: enable windows try builder" 2019-11-26 08:06:13 -05:00
doc rustc_lint: Remove lint plugin_as_library 2019-12-01 20:53:25 +03:00
etc Make dec2flt_table compatible with rustfmt 2019-11-29 20:17:09 -08:00
liballoc Rollup merge of #66890 - dtolnay:fmt4, r=Dylan-DPC 2019-12-01 04:49:31 +01:00
libarena
libcore Rollup merge of #66894 - dtolnay:prelude, r=Centril 2019-11-30 16:56:56 +01:00
libfmt_macros Allow any identifier as format arg name 2019-11-28 11:24:51 -08:00
libgraphviz
libpanic_abort Revert "Auto merge of #65134 - davidtwco:issue-19834-improper-ctypes-in-extern-C-fn, r=rkruppe" 2019-11-13 17:00:47 +01:00
libpanic_unwind Rollup merge of #66766 - RalfJung:panic-comments, r=SimonSapin 2019-11-29 22:57:33 +01:00
libproc_macro Snap cfgs 2019-11-12 16:36:57 -05:00
libprofiler_builtins
librustc Rollup merge of #66907 - eddyb:br-nicer-named, r=oli-obk 2019-12-02 04:09:04 +01:00
librustc_apfloat
librustc_asan
librustc_codegen_llvm rustc_plugin: Remove support for plugins adding LLVM passes 2019-12-01 20:53:25 +03:00
librustc_codegen_ssa rustc_plugin: Remove support for plugins adding LLVM passes 2019-12-01 20:53:25 +03:00
librustc_codegen_utils Stabilize the never_type, written !. 2019-11-21 14:55:32 +01:00
librustc_data_structures Fix spelling typos 2019-11-26 22:19:54 -05:00
librustc_driver Rollup merge of #66896 - RalfJung:queries, r=Zoxc 2019-12-01 04:49:32 +01:00
librustc_error_codes Rollup merge of #66880 - aDotInTheVoid:add-E0203-long, r=GuillaumeGomez 2019-12-01 04:49:29 +01:00
librustc_errors Draw vertical lines in compiler error messages with multiline annotations correctly when non-1space unicode characters are to the left 2019-11-27 20:02:20 +01:00
librustc_feature rustc_plugin: Remove support for plugin arguments 2019-12-01 20:53:25 +03:00
librustc_fs_util
librustc_incremental
librustc_index
librustc_interface rustc_plugin: Some further cleanup 2019-12-01 20:53:25 +03:00
librustc_lexer move syntax::parse -> librustc_parse 2019-11-10 03:57:18 +01:00
librustc_lint rustc_lint: Remove lint plugin_as_library 2019-12-01 20:53:25 +03:00
librustc_llvm
librustc_lsan
librustc_macros Rename StableHashingContextLike to HashStableContext. 2019-11-23 17:57:00 +01:00
librustc_metadata Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
librustc_mir Rollup merge of #66789 - eddyb:mir-source-scope-local-data, r=oli-obk 2019-12-02 04:09:00 +01:00
librustc_msan
librustc_parse derive(Default) for Features 2019-11-30 07:44:50 +01:00
librustc_passes move GateIssue to rustc_feature & simplify emit_feature_err 2019-11-30 07:40:28 +01:00
librustc_plugin_impl rustc_plugin: Some further cleanup 2019-12-01 20:53:25 +03:00
librustc_privacy allow customising ty::TraitRef's printing behavior 2019-11-29 17:30:21 +03:00
librustc_resolve Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
librustc_save_analysis ast: Keep extern qualifiers in functions more precisely 2019-11-16 21:21:37 +03:00
librustc_target Auto merge of #66645 - RalfJung:dereferenceable, r=pnkfelix 2019-11-29 11:35:03 +00:00
librustc_traits Retire BraceStructLiftImpl. 2019-11-18 08:41:28 +01:00
librustc_tsan
librustc_typeck Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
librustdoc Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
libserialize Stabilize the never_type, written !. 2019-11-21 14:55:32 +01:00
libstd Rollup merge of #66346 - linkmauve:try-in-docstring, r=Dylan-DPC 2019-12-02 04:08:55 +01:00
libsyntax Rollup merge of #66895 - Centril:rustc_feature, r=oli-obk 2019-11-30 16:56:58 +01:00
libsyntax_expand move GateIssue to rustc_feature & simplify emit_feature_err 2019-11-30 07:40:28 +01:00
libsyntax_ext builtin_attrs.rs -> rustc_feature 2019-11-30 02:34:18 +01:00
libsyntax_pos Auto merge of #66279 - cjgillot:hashstable, r=Zoxc 2019-11-25 09:28:59 +00:00
libterm
libtest Simplify if else as suggested in PR feedback 2019-11-19 21:44:45 +01:00
libunwind
llvm-project@de1a7dbf6c Update src/llvm-project to include rust-lang/llvm-project#27. 2019-11-15 22:56:40 +02:00
rtstartup
rustc
rustllvm Use LLVMAddAnalysisPasses instead of Rust's wrapper 2019-11-29 14:31:09 +11:00
stdarch@e0ab2c165a
test Rollup merge of #66907 - eddyb:br-nicer-named, r=oli-obk 2019-12-02 04:09:04 +01:00
tools tidy: adjust feature gating path 2019-11-30 06:32:49 +01:00
README.md
stage0.txt Bump version to 1.41 2019-11-12 16:36:57 -05: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.