diff options
| author | Michael Howell <michael@notriddle.com> | 2022-07-25 16:35:12 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-07-25 16:35:12 -0700 |
| commit | 225ac9efc10bfd4149fd6de3d09e70d6c2387a8b (patch) | |
| tree | 034895846a2b8e62690e2e4a17097aa10103b0ce /src/test/rustdoc | |
| parent | bdf520fd419cd4dea184332f57206f1cf5ca3e8f (diff) | |
| download | rust-225ac9efc10bfd4149fd6de3d09e70d6c2387a8b.tar.gz rust-225ac9efc10bfd4149fd6de3d09e70d6c2387a8b.zip | |
rustdoc: avoid inlining modules with duplicate names
Fixes rust-lang/rust#99734
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/auxiliary/issue-99734-aux.rs | 7 | ||||
| -rw-r--r-- | src/test/rustdoc/issue-99734-multiple-mods-w-same-name.rs | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/test/rustdoc/auxiliary/issue-99734-aux.rs b/src/test/rustdoc/auxiliary/issue-99734-aux.rs new file mode 100644 index 00000000000..8f1f1ec8967 --- /dev/null +++ b/src/test/rustdoc/auxiliary/issue-99734-aux.rs @@ -0,0 +1,7 @@ +pub struct Option; +impl Option { + pub fn unwrap(self) {} +} + +/// [`Option::unwrap`] +pub mod task {} diff --git a/src/test/rustdoc/issue-99734-multiple-mods-w-same-name.rs b/src/test/rustdoc/issue-99734-multiple-mods-w-same-name.rs new file mode 100644 index 00000000000..b2f9b8b4657 --- /dev/null +++ b/src/test/rustdoc/issue-99734-multiple-mods-w-same-name.rs @@ -0,0 +1,14 @@ +// aux-build:issue-99734-aux.rs +// build-aux-docs +// ignore-cross-compile + +#![crate_name = "foo"] + +#[macro_use] +extern crate issue_99734_aux; + +pub use issue_99734_aux::*; + +// @count foo/index.html '//a[@class="mod"][@title="foo::task mod"]' 1 + +pub mod task {} |
