rust/src/librustdoc
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
..
clean Don't try get local DefId of imported macro in rustdoc. 2016-12-19 14:24:33 -05:00
html Rollup merge of #38264 - ollie27:rustdoc_src_macro, r=brson 2016-12-12 14:10:33 -05:00
passes rustdoc: use libsyntax ast::Attribute instead of "cleaning" them. 2016-11-24 01:40:52 +02:00
build.rs
Cargo.toml
core.rs rustdoc: link to cross-crate sources directly. 2016-11-30 04:48:56 +02:00
doctree.rs Don't try get local DefId of imported macro in rustdoc. 2016-12-19 14:24:33 -05:00
externalfiles.rs
fold.rs
lib.rs rustdoc: a formatting nit 2016-12-15 20:43:57 +02:00
markdown.rs feat(rustdoc): harmonise error messages 2016-12-12 15:26:28 +01:00
plugins.rs
test.rs Auto merge of #38049 - frewsxcv:libunicode, r=alexcrichton 2016-12-12 13:19:33 +00:00
visit_ast.rs Rollup merge of #38418 - michaelwoerister:def_path_cleanup, r=eddyb 2016-12-20 12:59:05 -08:00
visit_lib.rs rustdoc: we can now assume DocContext always has a TyCtxt. 2016-11-24 01:40:56 +02:00