From 73b2a849a09a936d92be71fcbf0e08c31a44d8c2 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 3 Oct 2026 17:16:02 +0200 Subject: [PATCH 1/2] Move `rustdoc-html` tests into the right location --- tests/rustdoc-html/{ => deref}/auxiliary/issue-19190-3.rs | 0 .../rustdoc-html/{ => deref}/deref-methods-19190-foreign-type.rs | 0 tests/rustdoc-html/{ => deref}/deref-methods-19190-inline.rs | 0 tests/rustdoc-html/{ => deref}/deref-methods-19190.rs | 0 tests/rustdoc-html/{ => private}/fake-items-doc-private-items.rs | 0 tests/rustdoc-html/{ => private}/pub-method.rs | 0 tests/rustdoc-html/{ => private}/static.rs | 0 tests/rustdoc-html/{ => private}/visibility.rs | 0 tests/rustdoc-html/{ => reexport}/auxiliary/issue-13698.rs | 0 tests/rustdoc-html/{ => reexport}/auxiliary/issue-99221-aux.rs | 0 tests/rustdoc-html/{ => reexport}/auxiliary/issue-99734-aux.rs | 0 tests/rustdoc-html/{ => reexport}/doc-hidden-method-13698.rs | 0 .../{ => reexport}/multiple-foreigns-w-same-name-99734.rs | 0 tests/rustdoc-html/{ => reexport}/multiple-import-levels.rs | 0 .../{ => reexport}/multiple-mods-w-same-name-99734.rs | 0 .../{ => reexport}/multiple-mods-w-same-name-doc-inline-83375.rs | 0 .../multiple-mods-w-same-name-doc-inline-last-item-83375.rs | 0 .../{ => reexport}/multiple-structs-w-same-name-99221.rs | 0 18 files changed, 0 insertions(+), 0 deletions(-) rename tests/rustdoc-html/{ => deref}/auxiliary/issue-19190-3.rs (100%) rename tests/rustdoc-html/{ => deref}/deref-methods-19190-foreign-type.rs (100%) rename tests/rustdoc-html/{ => deref}/deref-methods-19190-inline.rs (100%) rename tests/rustdoc-html/{ => deref}/deref-methods-19190.rs (100%) rename tests/rustdoc-html/{ => private}/fake-items-doc-private-items.rs (100%) rename tests/rustdoc-html/{ => private}/pub-method.rs (100%) rename tests/rustdoc-html/{ => private}/static.rs (100%) rename tests/rustdoc-html/{ => private}/visibility.rs (100%) rename tests/rustdoc-html/{ => reexport}/auxiliary/issue-13698.rs (100%) rename tests/rustdoc-html/{ => reexport}/auxiliary/issue-99221-aux.rs (100%) rename tests/rustdoc-html/{ => reexport}/auxiliary/issue-99734-aux.rs (100%) rename tests/rustdoc-html/{ => reexport}/doc-hidden-method-13698.rs (100%) rename tests/rustdoc-html/{ => reexport}/multiple-foreigns-w-same-name-99734.rs (100%) rename tests/rustdoc-html/{ => reexport}/multiple-import-levels.rs (100%) rename tests/rustdoc-html/{ => reexport}/multiple-mods-w-same-name-99734.rs (100%) rename tests/rustdoc-html/{ => reexport}/multiple-mods-w-same-name-doc-inline-83375.rs (100%) rename tests/rustdoc-html/{ => reexport}/multiple-mods-w-same-name-doc-inline-last-item-83375.rs (100%) rename tests/rustdoc-html/{ => reexport}/multiple-structs-w-same-name-99221.rs (100%) diff --git a/tests/rustdoc-html/auxiliary/issue-19190-3.rs b/tests/rustdoc-html/deref/auxiliary/issue-19190-3.rs similarity index 100% rename from tests/rustdoc-html/auxiliary/issue-19190-3.rs rename to tests/rustdoc-html/deref/auxiliary/issue-19190-3.rs diff --git a/tests/rustdoc-html/deref-methods-19190-foreign-type.rs b/tests/rustdoc-html/deref/deref-methods-19190-foreign-type.rs similarity index 100% rename from tests/rustdoc-html/deref-methods-19190-foreign-type.rs rename to tests/rustdoc-html/deref/deref-methods-19190-foreign-type.rs diff --git a/tests/rustdoc-html/deref-methods-19190-inline.rs b/tests/rustdoc-html/deref/deref-methods-19190-inline.rs similarity index 100% rename from tests/rustdoc-html/deref-methods-19190-inline.rs rename to tests/rustdoc-html/deref/deref-methods-19190-inline.rs diff --git a/tests/rustdoc-html/deref-methods-19190.rs b/tests/rustdoc-html/deref/deref-methods-19190.rs similarity index 100% rename from tests/rustdoc-html/deref-methods-19190.rs rename to tests/rustdoc-html/deref/deref-methods-19190.rs diff --git a/tests/rustdoc-html/fake-items-doc-private-items.rs b/tests/rustdoc-html/private/fake-items-doc-private-items.rs similarity index 100% rename from tests/rustdoc-html/fake-items-doc-private-items.rs rename to tests/rustdoc-html/private/fake-items-doc-private-items.rs diff --git a/tests/rustdoc-html/pub-method.rs b/tests/rustdoc-html/private/pub-method.rs similarity index 100% rename from tests/rustdoc-html/pub-method.rs rename to tests/rustdoc-html/private/pub-method.rs diff --git a/tests/rustdoc-html/static.rs b/tests/rustdoc-html/private/static.rs similarity index 100% rename from tests/rustdoc-html/static.rs rename to tests/rustdoc-html/private/static.rs diff --git a/tests/rustdoc-html/visibility.rs b/tests/rustdoc-html/private/visibility.rs similarity index 100% rename from tests/rustdoc-html/visibility.rs rename to tests/rustdoc-html/private/visibility.rs diff --git a/tests/rustdoc-html/auxiliary/issue-13698.rs b/tests/rustdoc-html/reexport/auxiliary/issue-13698.rs similarity index 100% rename from tests/rustdoc-html/auxiliary/issue-13698.rs rename to tests/rustdoc-html/reexport/auxiliary/issue-13698.rs diff --git a/tests/rustdoc-html/auxiliary/issue-99221-aux.rs b/tests/rustdoc-html/reexport/auxiliary/issue-99221-aux.rs similarity index 100% rename from tests/rustdoc-html/auxiliary/issue-99221-aux.rs rename to tests/rustdoc-html/reexport/auxiliary/issue-99221-aux.rs diff --git a/tests/rustdoc-html/auxiliary/issue-99734-aux.rs b/tests/rustdoc-html/reexport/auxiliary/issue-99734-aux.rs similarity index 100% rename from tests/rustdoc-html/auxiliary/issue-99734-aux.rs rename to tests/rustdoc-html/reexport/auxiliary/issue-99734-aux.rs diff --git a/tests/rustdoc-html/doc-hidden-method-13698.rs b/tests/rustdoc-html/reexport/doc-hidden-method-13698.rs similarity index 100% rename from tests/rustdoc-html/doc-hidden-method-13698.rs rename to tests/rustdoc-html/reexport/doc-hidden-method-13698.rs diff --git a/tests/rustdoc-html/multiple-foreigns-w-same-name-99734.rs b/tests/rustdoc-html/reexport/multiple-foreigns-w-same-name-99734.rs similarity index 100% rename from tests/rustdoc-html/multiple-foreigns-w-same-name-99734.rs rename to tests/rustdoc-html/reexport/multiple-foreigns-w-same-name-99734.rs diff --git a/tests/rustdoc-html/multiple-import-levels.rs b/tests/rustdoc-html/reexport/multiple-import-levels.rs similarity index 100% rename from tests/rustdoc-html/multiple-import-levels.rs rename to tests/rustdoc-html/reexport/multiple-import-levels.rs diff --git a/tests/rustdoc-html/multiple-mods-w-same-name-99734.rs b/tests/rustdoc-html/reexport/multiple-mods-w-same-name-99734.rs similarity index 100% rename from tests/rustdoc-html/multiple-mods-w-same-name-99734.rs rename to tests/rustdoc-html/reexport/multiple-mods-w-same-name-99734.rs diff --git a/tests/rustdoc-html/multiple-mods-w-same-name-doc-inline-83375.rs b/tests/rustdoc-html/reexport/multiple-mods-w-same-name-doc-inline-83375.rs similarity index 100% rename from tests/rustdoc-html/multiple-mods-w-same-name-doc-inline-83375.rs rename to tests/rustdoc-html/reexport/multiple-mods-w-same-name-doc-inline-83375.rs diff --git a/tests/rustdoc-html/multiple-mods-w-same-name-doc-inline-last-item-83375.rs b/tests/rustdoc-html/reexport/multiple-mods-w-same-name-doc-inline-last-item-83375.rs similarity index 100% rename from tests/rustdoc-html/multiple-mods-w-same-name-doc-inline-last-item-83375.rs rename to tests/rustdoc-html/reexport/multiple-mods-w-same-name-doc-inline-last-item-83375.rs diff --git a/tests/rustdoc-html/multiple-structs-w-same-name-99221.rs b/tests/rustdoc-html/reexport/multiple-structs-w-same-name-99221.rs similarity index 100% rename from tests/rustdoc-html/multiple-structs-w-same-name-99221.rs rename to tests/rustdoc-html/reexport/multiple-structs-w-same-name-99221.rs From d78744aa4709ad118b8ceab06c84ff42bd8a7051 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 3 Oct 2026 17:29:07 +0200 Subject: [PATCH 2/2] Remove `@ !has` annotations from `tests/rustdoc-html/reexport/doc-hidden-method-13698.rs` --- tests/rustdoc-html/reexport/auxiliary/issue-13698.rs | 1 + tests/rustdoc-html/reexport/doc-hidden-method-13698.rs | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/rustdoc-html/reexport/auxiliary/issue-13698.rs b/tests/rustdoc-html/reexport/auxiliary/issue-13698.rs index 5e5381e0d07..6bca72ec38f 100644 --- a/tests/rustdoc-html/reexport/auxiliary/issue-13698.rs +++ b/tests/rustdoc-html/reexport/auxiliary/issue-13698.rs @@ -3,6 +3,7 @@ pub trait Foo { #[doc(hidden)] fn foo(&self) {} + fn not_hidden(&self) {} } impl Foo for i32 {} diff --git a/tests/rustdoc-html/reexport/doc-hidden-method-13698.rs b/tests/rustdoc-html/reexport/doc-hidden-method-13698.rs index 5c0ad18ee29..2b2d14b2c70 100644 --- a/tests/rustdoc-html/reexport/doc-hidden-method-13698.rs +++ b/tests/rustdoc-html/reexport/doc-hidden-method-13698.rs @@ -7,7 +7,11 @@ extern crate issue_13698; pub struct Foo; -//@ !has issue_13698/struct.Foo.html '//*[@id="method.foo"]' 'fn foo' +//@ has 'issue_13698/struct.Foo.html' +// There is only one visible trait impl method (from the `Foo` trait). +//@ count - '//*[@id="trait-implementations-list"]//*[@class="method trait-impl"]' 1 +//@ has - '//*[@id="trait-implementations-list"]//*[@class="method trait-impl"]' \ +// 'fn not_hidden(&self)' impl issue_13698::Foo for Foo {} pub trait Bar { @@ -15,5 +19,4 @@ pub trait Bar { fn bar(&self) {} } -//@ !has issue_13698/struct.Foo.html '//*[@id="method.bar"]' 'fn bar' impl Bar for Foo {}