summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:25:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:25:56 +0000
commit018c4950b9406055dec02ef0fb52f132e2bb1e2c (patch)
treea835ebdf2088ef88fa681f8fad45f09922c1ae9a /tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs
parentAdding debian version 1.75.0+dfsg1-5. (diff)
downloadrustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.tar.xz
rustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs')
-rw-r--r--tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs b/tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs
deleted file mode 100644
index d8953eaf5..000000000
--- a/tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-// This is a regression test for <https://github.com/rust-lang/rust/issues/46506>.
-// This test ensures that if public re-exported is re-exported, it won't be inlined.
-
-#![crate_name = "foo"]
-
-// @has 'foo/associations/index.html'
-// @count - '//*[@id="main-content"]/*[@class="small-section-header"]' 1
-// @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Traits'
-// @has - '//*[@id="main-content"]//a[@href="trait.GroupedBy.html"]' 'GroupedBy'
-// @has 'foo/associations/trait.GroupedBy.html'
-pub mod associations {
- mod belongs_to {
- pub trait GroupedBy {}
- }
- pub use self::belongs_to::GroupedBy;
-}
-
-// @has 'foo/prelude/index.html'
-// @count - '//*[@id="main-content"]/*[@class="small-section-header"]' 1
-// @has - '//*[@id="main-content"]/*[@class="small-section-header"]' 'Re-exports'
-// @has - '//*[@id="main-content"]//*[@id="reexport.GroupedBy"]' 'pub use associations::GroupedBy;'
-pub mod prelude {
- pub use associations::GroupedBy;
-}