summary refs log tree commit diff
path: root/src/test/rustdoc/inline_cross/auxiliary
AgeCommit message (Collapse)AuthorLines
2019-07-27Use doc comments from 'pub use' statementsAaron Hill-0/+4
Split off from #62855 Currently, rustdoc ignores any doc comments found on 'pub use' statements. As described in issue #58700, this makes it impossible to properly document procedural macros. Any doc comments must be written on the procedural macro definition, which must occur in a dedicated proc-macro crate. This means that any doc comments or doc tests cannot reference items defined in re-exporting crate, despite the fact that such items may be required to use the procedural macro. To solve this issue, this commit allows doc comments to be written on 'pub use' statements. For consistency, this applies to *all* 'pub use' statements, not just those importing procedural macros. When inlining documentation, documentation on 'pub use' statements will be prepended to the documentation of the inlined item. For example, the following items: ```rust mod other_mod { /// Doc comment from definition pub struct MyStruct; } /// Doc comment from 'pub use' /// pub use other_mod::MyStruct; ``` will caues the documentation for the re-export of 'MyStruct' to be rendered as: ``` Doc comment from 'pub use' Doc comment from definition ``` Note the empty line in the 'pub use' doc comments - because doc comments are concatenated as-is, this ensure that the doc comments on the definition start on a new line.
2019-04-22Remove double trailing newlinesvarkor-2/+0
2019-04-14rustdoc: Remove default keyword from re-exported trait methodsOliver Middleton-0/+16
2018-12-25Remove licensesMark Rousskov-150/+0
2018-11-30tests: use `force-host` and `no-prefer-dynamic` in all proc_macro tests.Eduard-Mihai Burtescu-0/+1
2018-11-09don't inline `pub use some_crate` unless directly asked toQuietMisdreavus-0/+26
2018-09-25add test for proc-macro re-exportQuietMisdreavus-0/+37
2018-09-20add more tests for traits-in-non-module-scopeQuietMisdreavus-0/+23
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-06-17rustdoc: import cross-crate macros alongside everything elseQuietMisdreavus-0/+35
2018-06-15process cross-crate glob re-exportsQuietMisdreavus-0/+15
2018-06-06rustdoc: Fix missing stability and src links for inlined external macrosOliver Middleton-0/+21
2018-01-17Rollup merge of #47313 - ollie27:rustdoc_record_extern_trait, r=QuietMisdreavusGuillaume Gomez-0/+18
rustdoc: Populate external_traits with traits only seen in impls This means default methods can always be found and "Important traits" will include all spotlight traits.
2018-01-15Reexport -> re-export in prose and documentation commentsCarol (Nichols || Goulding)-1/+1
2018-01-10rustdoc: Populate external_traits with traits only seen in implsOliver Middleton-0/+18
This means default methods can always be found and "Important traits" will include all spotlight traits.
2017-11-29rustdoc: Fix issues with cross-crate inlined associated itemsOliver Middleton-0/+48
* Visibility was missing from impl items. * Attributes and docs were missing from consts and types in impls. * Const default values were missing from traits. This unifies the code that handles associated items from impls and traits.
2017-05-22rustdoc: Fix names of items in cross crate reexported modulesOliver Middleton-0/+19
For renamed reexports the new name should be used.
2016-05-06s/aux/auxiliary, because windowsNiko Matsakis-0/+121
For legacy reasons (presumably), Windows does not permit files name aux.