Rustdoc render public underscore_imports as Re-exports

Fixes #61592
This commit is contained in:
bors
2020-12-31 09:07:51 +00:00
parent 11c94a1977
commit cb4553bdae
11 changed files with 109 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
Cannot use `doc(inline)` with anonymous imports
Erroneous code example:
```ignore (cannot-doctest-multicrate-project)
#[doc(inline)] // error: invalid doc argument
pub use foo::Foo as _;
```
Anonymous imports are always rendered with `#[doc(no_inline)]`. To fix this
error, remove the `#[doc(inline)]` attribute.
Example:
```ignore (cannot-doctest-multicrate-project)
pub use foo::Foo as _;
```