rust/src/test/rustdoc-ui
Aaron Hill 1498608135
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-24 13:11:57 -04:00
..
coverage Replace abstract type with type alias impl Trait 2019-08-02 02:44:36 +01:00
.gitattributes
cfg-test.rs force single-threaded text execution 2019-07-06 21:41:11 -05:00
cfg-test.stdout force single-threaded text execution 2019-07-06 21:41:11 -05:00
deny-intra-link-resolution-failure.rs
deny-intra-link-resolution-failure.stderr compiletest: make path normalization smarter 2019-03-25 01:06:45 -04:00
deny-missing-docs-crate.rs
deny-missing-docs-crate.stderr
deny-missing-docs-macro.rs
deny-missing-docs-macro.stderr
deprecated-attrs.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
deprecated-attrs.stderr
doc-without-codeblock.rs Update rustdoc-ui tests 2019-05-18 12:45:29 +02:00
doc-without-codeblock.stderr Update rustdoc-ui tests 2019-05-18 12:45:29 +02:00
failed-doctest-compile-fail.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-compile-fail.stdout do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-missing-codes.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-missing-codes.stdout do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-output.rs Improve Rustdoc's handling of procedural macros 2019-08-24 13:11:57 -04:00
failed-doctest-output.stdout Improve Rustdoc's handling of procedural macros 2019-08-24 13:11:57 -04:00
failed-doctest-should-panic.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-should-panic.stdout do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
intra-doc-alias-ice.rs
intra-doc-alias-ice.stderr compiletest: make path normalization smarter 2019-03-25 01:06:45 -04:00
intra-link-span-ice-55723.rs Remove unnecessary tidy ignore directives 2019-04-23 11:42:15 +01:00
intra-link-span-ice-55723.stderr Remove unnecessary tidy ignore directives 2019-04-23 11:42:15 +01:00
intra-links-ambiguity.rs
intra-links-ambiguity.stderr
intra-links-warning-crlf.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
intra-links-warning-crlf.stderr normalize use of backticks in compiler messages for librustc/lint 2019-07-17 22:49:48 +02:00
intra-links-warning.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
intra-links-warning.stderr normalize use of backticks in compiler messages for librustc/lint 2019-07-17 22:49:48 +02:00
invalid-syntax.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
invalid-syntax.stderr adapt rustdoc to infailable lexer 2019-08-05 13:15:12 +03:00
issue-58473-2.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
issue-58473.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
lint-group.rs
lint-group.stderr normalize use of backticks in compiler messages for librustc/lint 2019-07-17 22:49:48 +02:00
lint-missing-doc-code-example.rs Update rustdoc-ui tests 2019-05-18 12:45:29 +02:00
lint-missing-doc-code-example.stderr Update rustdoc-ui tests 2019-05-18 12:45:29 +02:00
private-item-doc-test.rs
private-item-doc-test.stderr
unparseable-doc-test.rs report fatal errors during doctest parsing 2019-04-24 00:03:53 -04:00
unparseable-doc-test.stdout do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
unused.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00