about summary refs log tree commit diff
path: root/src/test/rustdoc/inline_cross/auxiliary
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-387/+0
2022-11-04rustdoc: add test for cross-crate trait-object typesLeón Orell Valerian Liehr-0/+17
as well as some FIXMEs
2022-11-04rustdoc: move cross-crate lifetime/outlives bounds on GAT params from ↵León Orell Valerian Liehr-1/+1
where-clause to param declaration site I've overlooked this in #103190.
2022-10-23Rollup merge of #103254 - fmease:fix-24183, r=GuillaumeGomezMichael Howell-0/+14
rustdoc: do not filter out cross-crate `Self: Sized` bounds All type parameters **except `Self`** are implicitly `Sized` ([via](https://doc.rust-lang.org/nightly/std/marker/trait.Sized.html)). Previously, we disregarded the exception of `Self` and omitted cross-crate `Sized` bounds of *any* type parameter *including* `Self` when rendering. From now on, we *do* render cross-crate `Self: Sized` bounds. Most notably, in `std` we now finally properly render the `Sized` bound of the `Clone` trait as well as the `Self: Sized` bound on `Iterator::map`. Fixes #24183. ``@rustbot`` label T-rustdoc A-cross-crate-reexports r? rustdoc
2022-10-19rustdoc: render bounds of cross-crate GAT paramsLeón Orell Valerian Liehr-0/+1
2022-10-19rustdoc: Do not filter out `Self: Sized` boundsLeón Orell Valerian Liehr-0/+14
2022-10-05rustdoc: render more cross-crate hrtbs properlyLeón Orell Valerian Liehr-0/+18
2022-10-03rustdoc: re-sugar more cross-crate trait boundsLeón Orell Valerian Liehr-0/+40
2022-05-27rustdoc: add test case for the implementors JS file placementMichael Howell-0/+18
2022-04-14Remove use of `#[rustc_deprecated]`Jacob Pratt-3/+2
2020-02-15Record proc macro harness order for use during metadata deserializationAaron Hill-0/+13
Fixes #68690 When we generate the proc macro harness, we now explicitly recorder the order in which we generate entries. We then use this ordering data to deserialize the correct proc-macro-data from the crate metadata.
2019-12-21Require issue = "none" over issue = "0" in unstable attributesRoss MacArthur-1/+1
2019-09-21add rustdoc test for async fn reexportcsmoe-0/+10
2019-08-29Auto merge of #62855 - Aaron1011:feature/rustdoc-reexport-final, r=petrochenkovbors-0/+7
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-24Improve Rustdoc's handling of procedural macrosAaron Hill-0/+7
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-19Fix ICE with `impl Trait` in type boundsShotaro Yamada-0/+2
2019-08-19Fix tidyShotaro Yamada-1/+4
2019-08-19Support nested `impl Trait`Shotaro Yamada-0/+2
2019-08-19Associated type bound for inlined impl Trait docShotaro Yamada-0/+4
2019-08-19Support `impl Trait` in inlined documentationShotaro Yamada-0/+7
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.