rust/src
Aaron Hill 96e2d03d4b
Store idents for DefPathData into crate metadata
Previously, we threw away the `Span` associated with a definition's
identifier when we encoded crate metadata, causing us to lose location
and hygiene information.

We now store the identifier's `Span` in the crate metadata.
When we decode items from the metadata, we combine
the name and span back into an `Ident`.

This improves the output of several tests, which previously had messages
suppressed due to dummy spans.

This is a prerequisite for #68686, since throwing away a `Span` means
that we lose hygiene information.
2020-03-22 23:40:19 -04:00
..
bootstrap Remove CARGO_BUILD_TARGET from bootstrap.py 2020-03-21 21:54:01 +07:00
build_helper
ci Rollup merge of #70054 - rojamd:android-pgo, r=michaelwoerister 2020-03-21 08:51:15 +01:00
doc
etc Test pretty printing more and fix overzealous type substitution 2020-03-21 14:03:09 +00:00
liballoc Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril 2020-03-22 15:48:41 +01:00
libarena
libcore Auto merge of #69079 - CAD97:layout-of-ptr, r=RalfJung 2020-03-22 18:37:19 +00:00
libfmt_macros
libgraphviz
libpanic_abort
libpanic_unwind
libproc_macro
libprofiler_builtins
librustc Auto merge of #69778 - Marwes:dep_graph, r=davidtwco 2020-03-22 22:36:44 +00:00
librustc_apfloat
librustc_ast ast: Compress AttrId from usize to u32 2020-03-21 11:29:07 +03:00
librustc_ast_lowering Rollup merge of #69033 - jonas-schievink:resume-with-context, r=tmandry 2020-03-21 05:33:15 +01:00
librustc_ast_passes Rollup merge of #70032 - lcnr:issue69970, r=varkor 2020-03-21 13:06:40 +01:00
librustc_ast_pretty
librustc_attr
librustc_builtin_macros Rollup merge of #70266 - petrochenkov:prochead, r=varkor 2020-03-22 15:48:43 +01:00
librustc_codegen_llvm Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddyb 2020-03-21 08:51:14 +01:00
librustc_codegen_ssa Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril 2020-03-22 15:48:41 +01:00
librustc_data_structures Return NonZeroU64 from ThreadId::as_u64. 2020-03-21 19:48:23 +01:00
librustc_driver Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddyb 2020-03-21 08:51:14 +01:00
librustc_error_codes Add explanation message for E0224 2020-03-21 15:43:12 +00:00
librustc_errors
librustc_expand Rollup merge of #69497 - Zoxc:ast-fragment-error, r=petrochenkov 2020-03-21 13:06:33 +01:00
librustc_feature
librustc_fs_util
librustc_hir
librustc_incremental Rollup merge of #70092 - eddyb:hir-items-are-just-nodes, r=Zoxc 2020-03-21 08:51:19 +01:00
librustc_index
librustc_infer Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril 2020-03-22 15:48:41 +01:00
librustc_interface Rollup merge of #69497 - Zoxc:ast-fragment-error, r=petrochenkov 2020-03-21 13:06:33 +01:00
librustc_lexer remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
librustc_lint remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
librustc_llvm
librustc_macros
librustc_metadata Store idents for DefPathData into crate metadata 2020-03-22 23:40:19 -04:00
librustc_mir Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril 2020-03-22 15:48:41 +01:00
librustc_mir_build remove unused unit values (clippy::unused_unit) 2020-03-21 20:45:19 +01:00
librustc_parse Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril 2020-03-22 15:48:41 +01:00
librustc_passes Rollup merge of #69901 - RalfJung:rustc_layout, r=eddyb 2020-03-21 13:06:35 +01:00
librustc_plugin_impl
librustc_privacy remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
librustc_resolve Store idents for DefPathData into crate metadata 2020-03-22 23:40:19 -04:00
librustc_save_analysis Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddyb 2020-03-21 08:51:14 +01:00
librustc_session Rollup merge of #69965 - mark-i-m:codegen-utils, r=eddyb 2020-03-21 08:51:14 +01:00
librustc_span Rollup merge of #70229 - matthiaskrgr:cl3ppy, r=Mark-Simulacrum 2020-03-22 15:48:35 +01:00
librustc_symbol_mangling symbol_names: treat ReifyShim like VtableShim. 2020-03-21 14:51:58 +02:00
librustc_target remove unused unit values (clippy::unused_unit) 2020-03-21 20:45:19 +01:00
librustc_trait_selection Rollup merge of #70229 - matthiaskrgr:cl3ppy, r=Mark-Simulacrum 2020-03-22 15:48:35 +01:00
librustc_traits clarify when we pass () to functions (clippy::unit_arg) 2020-03-21 20:45:14 +01:00
librustc_ty remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
librustc_typeck Auto merge of #69079 - CAD97:layout-of-ptr, r=RalfJung 2020-03-22 18:37:19 +00:00
librustdoc Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril 2020-03-22 15:48:41 +01:00
libserialize
libstd Rollup merge of #70240 - brain0:thread_id, r=Mark-Simulacrum 2020-03-22 15:48:37 +01:00
libterm
libtest
libunwind
llvm-project@9f65ad0573
rtstartup
rustc
rustllvm
stdarch@abe96ca3b8
test Store idents for DefPathData into crate metadata 2020-03-22 23:40:19 -04:00
tools Auto merge of #70153 - flip1995:clippyup, r=Dylan-DPC 2020-03-22 00:57:57 +00: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.