rust/src/librustc_metadata
Alex Crichton 21f33dbf71 Rollup merge of #38418 - michaelwoerister:def_path_cleanup, r=eddyb
Cleanup refactoring around DefPath handling

This PR makes two big changes:
* All DefPaths of a crate are now stored in metadata in their own table (as opposed to `DefKey`s as part of metadata `Entry`s.
* The compiler will no longer allocate a pseudo-local DefId for inlined HIR nodes (because those are gross). Inlined HIR nodes will have a NodeId but they don't have there own DefId anymore. Turns out they were not needed anymore either. Hopefully HIR inlining will be gone completely one day but if until then we start needing to be able to map inlined NodeIds to original DefIds, we can add an additional table to metadata that allows for reconstructing this.

Overall this makes for some nice simplifications and removal of special cases.

r? @eddyb

cc @rust-lang/compiler
2016-12-20 12:59:05 -08:00
..
astencode.rs definitions: Don't allocate DefIds for inlined HIR 2016-12-16 19:14:16 -05:00
Cargo.toml
creader.rs definitions: Add some timing stats for DefPathTable decoding. 2016-12-16 19:14:16 -05:00
cstore_impl.rs Rollup merge of #38418 - michaelwoerister:def_path_cleanup, r=eddyb 2016-12-20 12:59:05 -08:00
cstore.rs definitions: Store DefPath data in separate table in metadata 2016-12-16 19:14:16 -05:00
decoder.rs No need to have tcx::opt_def_path() now that we store all DefPaths 2016-12-16 19:14:16 -05:00
diagnostics.rs
encoder.rs definitions: Store DefPath data in separate table in metadata 2016-12-16 19:14:16 -05:00
index_builder.rs
index.rs rustc_metadata: Fix unaligned loads 2016-12-14 00:59:59 +01:00
lib.rs Update the bootstrap compiler 2016-11-30 10:38:08 -08:00
locator.rs
schema.rs definitions: Store DefPath data in separate table in metadata 2016-12-16 19:14:16 -05:00