rust/src
Manish Goregaokar 6b57050b17
Rollup merge of #73449 - ehuss:duplicate-lang-item, r=matthewjasper
Provide more information on duplicate lang item error.

This gives some notes on the location of the files where the lang items were loaded from. Some duplicate lang item errors can be a little confusing, and this might help in diagnosing what has happened.

Here's an example when hitting a bug with Cargo's build-std:

```
error: duplicate lang item in crate `core` (which `rustc_std_workspace_core` depends on): `try`.
  |
  = note: the lang item is first defined in crate `core` (which `z10` depends on)
  = note: first definition in `core` loaded from /Users/eric/Proj/rust/cargo/scratch/z10/target/target/debug/deps/libcore-a764da499c7385f4.rmeta
  = note: second definition in `core` loaded from /Users/eric/Proj/rust/cargo/scratch/z10/target/target/debug/deps/libcore-5b082675aea34986.rmeta
```
2020-07-01 20:35:46 -07:00
..
bootstrap Rollup merge of #72569 - ChrisDenton:remove-innosetup, r=nikomatsakis 2020-07-01 20:35:41 -07:00
build_helper
ci Rollup merge of #72569 - ChrisDenton:remove-innosetup, r=nikomatsakis 2020-07-01 20:35:41 -07:00
doc Stabilize #[track_caller]. 2020-06-30 22:22:32 -07:00
etc Rollup merge of #72569 - ChrisDenton:remove-innosetup, r=nikomatsakis 2020-07-01 20:35:41 -07:00
liballoc Rollup merge of #73678 - Keno:patch-1, r=LukasKalbertodt 2020-07-01 07:42:42 -07:00
libcore Rollup merge of #73846 - pierwill:pierwill-patch-2, r=joshtriplett 2020-07-01 07:43:00 -07:00
libpanic_abort lints: add improper_ctypes_definitions 2020-06-24 12:09:35 +01:00
libpanic_unwind lints: add improper_ctypes_definitions 2020-06-24 12:09:35 +01:00
libproc_macro
libprofiler_builtins Prepare for LLVM 11 2020-06-25 18:52:41 -07:00
librustc_apfloat
librustc_arena
librustc_ast Add an issue number for the pretty_printing_compatibility_hack FIXME 2020-07-01 20:23:06 +03:00
librustc_ast_lowering Remove token::FlattenGroup 2020-07-01 13:40:46 +03:00
librustc_ast_passes Record span of const kw in GenericParamKind 2020-06-23 09:25:46 -07:00
librustc_ast_pretty Remove token::FlattenGroup 2020-07-01 13:40:46 +03:00
librustc_attr
librustc_builtin_macros Rename two Resolver traits 2020-06-27 23:51:28 +03:00
librustc_codegen_llvm Rollup merge of #73525 - cuviper:llvm11, r=nikic 2020-06-27 22:29:54 -07:00
librustc_codegen_ssa Rollup merge of #73525 - cuviper:llvm11, r=nikic 2020-06-27 22:29:54 -07:00
librustc_data_structures
librustc_driver
librustc_error_codes Rollup merge of #72445 - anp:stabilize-track-caller, r=oli-obk 2020-07-01 07:42:33 -07:00
librustc_errors Stabilize #[track_caller]. 2020-06-30 22:22:32 -07:00
librustc_expand Remove token::FlattenGroup 2020-07-01 13:40:46 +03:00
librustc_feature Stabilize #[track_caller]. 2020-06-30 22:22:32 -07:00
librustc_fs_util
librustc_graphviz
librustc_hir Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_hir_pretty
librustc_incremental
librustc_index Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_infer change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_interface Auto merge of #71858 - petrochenkov:env, r=Mark-Simulacrum 2020-06-25 22:52:59 +00:00
librustc_lexer Edit cursor.prev() method docs in lexer 2020-06-28 13:24:17 -07:00
librustc_lint change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_llvm Rollup merge of #73507 - mati865:cleanup-mingw-llvm-linkage, r=matthewjasper 2020-06-26 00:39:04 -07:00
librustc_macros
librustc_metadata Rollup merge of #73449 - ehuss:duplicate-lang-item, r=matthewjasper 2020-07-01 20:35:46 -07:00
librustc_middle Rollup merge of #73449 - ehuss:duplicate-lang-item, r=matthewjasper 2020-07-01 20:35:46 -07:00
librustc_mir Rollup merge of #73806 - Aaron1011:feature/approx-universal-upper, r=estebank 2020-07-01 07:42:56 -07:00
librustc_mir_build remove rustdoc warnings 2020-06-30 10:58:23 +02:00
librustc_parse Rollup merge of #73345 - petrochenkov:nointerp, r=Aaron1011 2020-07-01 20:35:44 -07:00
librustc_parse_format
librustc_passes Rollup merge of #73449 - ehuss:duplicate-lang-item, r=matthewjasper 2020-07-01 20:35:46 -07:00
librustc_plugin_impl
librustc_privacy change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_query_system Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_resolve Remove token::FlattenGroup 2020-07-01 13:40:46 +03:00
librustc_save_analysis
librustc_serialize
librustc_session errors: use -Z terminal-width in JSON emitter 2020-06-26 16:01:51 +01:00
librustc_span Rollup merge of #73345 - petrochenkov:nointerp, r=Aaron1011 2020-07-01 20:35:44 -07:00
librustc_symbol_mangling change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_target Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_trait_selection Rollup merge of #73306 - calebzulawski:target-feature-11-fn-trait-soundness, r=nikomatsakis 2020-07-01 20:35:43 -07:00
librustc_traits change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_ty
librustc_typeck change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustdoc change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
libstd Rollup merge of #73805 - poliorcetics:type-keyword, r=kennytm 2020-07-01 07:42:54 -07:00
libterm
libtest
libunwind Update libunwind build process for x86_64-fortanix-unknown-sgx target 2020-06-24 11:28:41 +02:00
llvm-project@6c040dd86e [AVR] Update the rust-lang/llvm-project submodule to include AVR fixes recently merged 2020-06-24 02:16:30 +12:00
rtstartup
rustc
rustllvm Prepare for LLVM 11 2020-06-25 18:52:41 -07:00
stdarch@45340c0e2f
test Rollup merge of #73449 - ehuss:duplicate-lang-item, r=matthewjasper 2020-07-01 20:35:46 -07:00
tools update Miri 2020-06-30 11:00:51 +02:00
README.md
stage0.txt

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.