1498608135
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. |
||
---|---|---|
.. | ||
coverage | ||
.gitattributes | ||
cfg-test.rs | ||
cfg-test.stdout | ||
deny-intra-link-resolution-failure.rs | ||
deny-intra-link-resolution-failure.stderr | ||
deny-missing-docs-crate.rs | ||
deny-missing-docs-crate.stderr | ||
deny-missing-docs-macro.rs | ||
deny-missing-docs-macro.stderr | ||
deprecated-attrs.rs | ||
deprecated-attrs.stderr | ||
doc-without-codeblock.rs | ||
doc-without-codeblock.stderr | ||
failed-doctest-compile-fail.rs | ||
failed-doctest-compile-fail.stdout | ||
failed-doctest-missing-codes.rs | ||
failed-doctest-missing-codes.stdout | ||
failed-doctest-output.rs | ||
failed-doctest-output.stdout | ||
failed-doctest-should-panic.rs | ||
failed-doctest-should-panic.stdout | ||
intra-doc-alias-ice.rs | ||
intra-doc-alias-ice.stderr | ||
intra-link-span-ice-55723.rs | ||
intra-link-span-ice-55723.stderr | ||
intra-links-ambiguity.rs | ||
intra-links-ambiguity.stderr | ||
intra-links-warning-crlf.rs | ||
intra-links-warning-crlf.stderr | ||
intra-links-warning.rs | ||
intra-links-warning.stderr | ||
invalid-syntax.rs | ||
invalid-syntax.stderr | ||
issue-58473-2.rs | ||
issue-58473.rs | ||
lint-group.rs | ||
lint-group.stderr | ||
lint-missing-doc-code-example.rs | ||
lint-missing-doc-code-example.stderr | ||
private-item-doc-test.rs | ||
private-item-doc-test.stderr | ||
unparseable-doc-test.rs | ||
unparseable-doc-test.stdout | ||
unused.rs |