summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/issue-74134.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /tests/rustdoc-ui/issue-74134.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/rustdoc-ui/issue-74134.rs')
-rw-r--r--tests/rustdoc-ui/issue-74134.rs41
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/rustdoc-ui/issue-74134.rs b/tests/rustdoc-ui/issue-74134.rs
deleted file mode 100644
index b1be9123a..000000000
--- a/tests/rustdoc-ui/issue-74134.rs
+++ /dev/null
@@ -1,41 +0,0 @@
-// revisions: public private
-// [private]compile-flags: --document-private-items
-// check-pass
-
-// There are 4 cases here:
-// 1. public item -> public type: no warning
-// 2. public item -> private type: warning
-// 3. private item -> public type: no warning
-// 4. private item -> private type: no warning
-// All 4 cases are tested with and without --document-private-items.
-//
-// Case 4 without --document-private-items is the one described in issue #74134.
-
-struct PrivateType;
-pub struct PublicType;
-
-pub struct Public {
- /// [`PublicType`]
- /// [`PrivateType`]
- //~^ WARNING public documentation for `public_item` links to private item `PrivateType`
- pub public_item: u32,
-
- /// [`PublicType`]
- /// [`PrivateType`]
- private_item: u32,
-}
-
-// The following cases are identical to the ones above, except that they are in a private
-// module. Thus they all fall into cases 3 and 4 and should not produce a warning.
-
-mod private {
- pub struct Public {
- /// [`super::PublicType`]
- /// [`super::PrivateType`]
- pub public_item: u32,
-
- /// [`super::PublicType`]
- /// [`super::PrivateType`]
- private_item: u32,
- }
-}