rust/src/librustdoc
bors 347654324d Auto merge of #62855 - Aaron1011:feature/rustdoc-reexport-final, r=petrochenkov
Improve Rustdoc's handling of procedural macros

Fixes #58700
Fixes #58696
Fixes #49553
Fixes #52210

This commit removes the special rustdoc handling for proc macros, as we can now
retrieve their span and attributes just like any other item.

A new command-line option is added to rustdoc: `--crate-type`. This takes the same options as rustc's `--crate-type` option. However, all values other than `proc-macro` are treated the same. This allows Rustdoc to enable 'proc macro mode' when handling a proc macro crate.

In compiletest, a new 'rustdoc-flags' option is added. This allows us to
pass in the '--proc-macro-crate' flag in the absence of Cargo.

I've opened [an additional PR to Cargo](https://github.com/rust-lang/cargo/pull/7159) to support passing in this flag.
These two PRS can be merged in any order - the Cargo changes will not
take effect until the 'cargo' submodule is updated in this repository.
2019-08-29 01:22:11 +00:00
..
clean Auto merge of #62855 - Aaron1011:feature/rustdoc-reexport-final, r=petrochenkov 2019-08-29 01:22:11 +00:00
html Auto merge of #62941 - GuillaumeGomez:save-crate-filter, r=Mark-Simulacrum 2019-08-28 21:42:52 +00:00
passes resolve: ParentScope::default -> ParentScope::module 2019-08-15 20:47:15 +03:00
test Separate librustcdoc module 2019-06-16 14:17:01 +03:00
theme librustdoc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
Cargo.toml Remove ReentrantMutex 2019-08-11 10:36:46 -04:00
config.rs Improve Rustdoc's handling of procedural macros 2019-08-24 13:11:57 -04:00
core.rs Auto merge of #62855 - Aaron1011:feature/rustdoc-reexport-final, r=petrochenkov 2019-08-29 01:22:11 +00:00
docfs.rs Better handling of the sender channel part in rustdoc file writing 2019-06-21 12:00:49 +02:00
doctree.rs rustdoc: Replace HirVec with slices in doctree 2019-08-11 10:36:46 -04:00
externalfiles.rs Reduce nesting in externalfiles implementation 2019-08-11 10:47:58 -04:00
fold.rs Remove ReentrantMutex 2019-08-11 10:36:46 -04:00
lib.rs Auto merge of #62855 - Aaron1011:feature/rustdoc-reexport-final, r=petrochenkov 2019-08-29 01:22:11 +00:00
markdown.rs Rollup merge of #62600 - emmericp:libtest-add-show-output, r=gnzlbg 2019-08-27 08:17:48 +02:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
test.rs Auto merge of #62855 - Aaron1011:feature/rustdoc-reexport-final, r=petrochenkov 2019-08-29 01:22:11 +00:00
theme.rs librustdoc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
visit_ast.rs Mutate DocContext from LibEmbargoVisitor and RustdocVisitor 2019-08-26 18:51:34 -04:00
visit_lib.rs Mutate DocContext from LibEmbargoVisitor and RustdocVisitor 2019-08-26 18:51:34 -04:00

For more information about how librustdoc works, see the rustc guide.