From 2a1bd47a4a789091f23216c669110ed9ad272023 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 17 Nov 2025 15:02:48 +0100 Subject: [PATCH 1/2] Move `tests/rustdoc/import_trait_associated_functions.rs` into the `reexport` folder --- tests/rustdoc/{ => reexport}/import_trait_associated_functions.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/rustdoc/{ => reexport}/import_trait_associated_functions.rs (100%) diff --git a/tests/rustdoc/import_trait_associated_functions.rs b/tests/rustdoc/reexport/import_trait_associated_functions.rs similarity index 100% rename from tests/rustdoc/import_trait_associated_functions.rs rename to tests/rustdoc/reexport/import_trait_associated_functions.rs From 8642d82ff5cd43657b50d9f93dcf957b71b0b1c5 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 17 Nov 2025 15:03:05 +0100 Subject: [PATCH 2/2] Add test for href of reexported enum variant --- tests/rustdoc/reexport/enum-variant.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/rustdoc/reexport/enum-variant.rs diff --git a/tests/rustdoc/reexport/enum-variant.rs b/tests/rustdoc/reexport/enum-variant.rs new file mode 100644 index 0000000000000..7436f8853e02e --- /dev/null +++ b/tests/rustdoc/reexport/enum-variant.rs @@ -0,0 +1,14 @@ +// This test ensures that reexported enum variants correctly link to the original variant. + +#![crate_name = "foo"] + +pub enum Foo { + S { + x: u32, + }, +} + +//@ has 'foo/index.html' + +//@ has - '//*[@class="item-table reexports"]/*[@id="reexport.S"]//a[@href="enum.Foo.html#variant.S"]' 'S' +pub use self::Foo::S;