about summary refs log tree commit diff
path: root/tests/rustdoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-24 02:23:31 +0000
committerbors <bors@rust-lang.org>2023-11-24 02:23:31 +0000
commiteab8c7d5fd335d673bb96bb4aef86c74006cef4b (patch)
treec64189e3cd461cf1b28501a85fe348965bef1f14 /tests/rustdoc
parent1fd418f92ed13db88a21865ba5d909abcf16b6cc (diff)
parent4f64ff171bdd00873d6cdf8301f5cdddf999832f (diff)
downloadrust-eab8c7d5fd335d673bb96bb4aef86c74006cef4b.tar.gz
rust-eab8c7d5fd335d673bb96bb4aef86c74006cef4b.zip
Auto merge of #118105 - notriddle:master, r=fmease
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 4)

Follow up

* https://github.com/rust-lang/rust/pull/116214
* https://github.com/rust-lang/rust/pull/116432
* https://github.com/rust-lang/rust/pull/116824
Diffstat (limited to 'tests/rustdoc')
-rw-r--r--tests/rustdoc/auxiliary/issue-36031.rs9
-rw-r--r--tests/rustdoc/auxiliary/issue-40936.rs5
-rw-r--r--tests/rustdoc/auxiliary/issue-48414.rs5
-rw-r--r--tests/rustdoc/doctest/auxiliary/empty.rs1
-rw-r--r--tests/rustdoc/doctest/doctest-cfg-feature-30252.rs (renamed from tests/rustdoc/doctest-cfg-feature-30252.rs)0
-rw-r--r--tests/rustdoc/doctest/doctest-crate-attributes-38129.rs (renamed from tests/rustdoc/issue-38129.rs)0
-rw-r--r--tests/rustdoc/doctest/doctest-hide-empty-line-23106.rs (renamed from tests/rustdoc/doctest-hide-empty-line-23106.rs)0
-rw-r--r--tests/rustdoc/doctest/doctest-ignore-32556.rs (renamed from tests/rustdoc/doctest-ignore-32556.rs)0
-rw-r--r--tests/rustdoc/doctest/doctest-include-43153.rs (renamed from tests/rustdoc/issue-43153.rs)2
-rw-r--r--tests/rustdoc/doctest/doctest-macro-38219.rs (renamed from tests/rustdoc/issue-38219.rs)2
-rw-r--r--tests/rustdoc/doctest/doctest-manual-crate-name.rs (renamed from tests/rustdoc/doctest-manual-crate-name.rs)0
-rw-r--r--tests/rustdoc/doctest/doctest-markdown-inline-parse-23744.rs (renamed from tests/rustdoc/doctest-markdown-inline-parse-23744.rs)0
-rw-r--r--tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs (renamed from tests/rustdoc/issue-48377.rs)2
-rw-r--r--tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs (renamed from tests/rustdoc/doctest-multi-line-string-literal-25944.rs)0
-rw-r--r--tests/rustdoc/enum-variant-private-46767.rs (renamed from tests/rustdoc/issue-46767.rs)1
-rw-r--r--tests/rustdoc/foreign-implementors-js-43701.rs (renamed from tests/rustdoc/issue-43701.rs)1
-rw-r--r--tests/rustdoc/inline-rename-34473.rs (renamed from tests/rustdoc/issue-34473.rs)2
-rw-r--r--tests/rustdoc/inline_local/enum-variant-reexport-46766.rs (renamed from tests/rustdoc/issue-46766.rs)1
-rw-r--r--tests/rustdoc/issue-34423.rs10
-rw-r--r--tests/rustdoc/issue-36031.rs9
-rw-r--r--tests/rustdoc/issue-40936.rs6
-rw-r--r--tests/rustdoc/issue-43893.rs19
-rw-r--r--tests/rustdoc/issue-46271.rs5
-rw-r--r--tests/rustdoc/issue-46976.rs1
-rw-r--r--tests/rustdoc/issue-47639.rs6
-rw-r--r--tests/rustdoc/issue-48414.rs11
-rw-r--r--tests/rustdoc/private-use-decl-macro-47038.rs (renamed from tests/rustdoc/issue-47038.rs)2
-rw-r--r--tests/rustdoc/pub-reexport-of-pub-reexport-46506.rs (renamed from tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs)0
-rw-r--r--tests/rustdoc/src-links-implementor-43893.rs21
-rw-r--r--tests/rustdoc/trait-implementations-duplicate-self-45584.rs (renamed from tests/rustdoc/issue-45584.rs)2
-rw-r--r--tests/rustdoc/tuple-struct-where-clause-34928.rs (renamed from tests/rustdoc/issue-34928.rs)2
31 files changed, 39 insertions, 86 deletions
diff --git a/tests/rustdoc/auxiliary/issue-36031.rs b/tests/rustdoc/auxiliary/issue-36031.rs
deleted file mode 100644
index da688139e34..00000000000
--- a/tests/rustdoc/auxiliary/issue-36031.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-pub trait Foo {
-    const FOO: usize;
-}
-
-pub struct Bar;
-
-impl Bar {
-    pub const BAR: usize = 3;
-}
diff --git a/tests/rustdoc/auxiliary/issue-40936.rs b/tests/rustdoc/auxiliary/issue-40936.rs
deleted file mode 100644
index b921e520173..00000000000
--- a/tests/rustdoc/auxiliary/issue-40936.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-pub mod outermod {
-    pub mod innermod {
-        pub use super::*;
-    }
-}
diff --git a/tests/rustdoc/auxiliary/issue-48414.rs b/tests/rustdoc/auxiliary/issue-48414.rs
deleted file mode 100644
index f442ac72212..00000000000
--- a/tests/rustdoc/auxiliary/issue-48414.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-/// Woah, this trait links to [OtherTrait](OtherTrait)!
-pub trait SomeTrait {}
-
-/// Woah, this trait links to [SomeTrait](SomeTrait)!
-pub trait OtherTrait {}
diff --git a/tests/rustdoc/doctest/auxiliary/empty.rs b/tests/rustdoc/doctest/auxiliary/empty.rs
new file mode 100644
index 00000000000..d11c69f812a
--- /dev/null
+++ b/tests/rustdoc/doctest/auxiliary/empty.rs
@@ -0,0 +1 @@
+// intentionally empty
diff --git a/tests/rustdoc/doctest-cfg-feature-30252.rs b/tests/rustdoc/doctest/doctest-cfg-feature-30252.rs
index ceb8076fe35..ceb8076fe35 100644
--- a/tests/rustdoc/doctest-cfg-feature-30252.rs
+++ b/tests/rustdoc/doctest/doctest-cfg-feature-30252.rs
diff --git a/tests/rustdoc/issue-38129.rs b/tests/rustdoc/doctest/doctest-crate-attributes-38129.rs
index 156d50fa52a..156d50fa52a 100644
--- a/tests/rustdoc/issue-38129.rs
+++ b/tests/rustdoc/doctest/doctest-crate-attributes-38129.rs
diff --git a/tests/rustdoc/doctest-hide-empty-line-23106.rs b/tests/rustdoc/doctest/doctest-hide-empty-line-23106.rs
index 8e1e2cf098c..8e1e2cf098c 100644
--- a/tests/rustdoc/doctest-hide-empty-line-23106.rs
+++ b/tests/rustdoc/doctest/doctest-hide-empty-line-23106.rs
diff --git a/tests/rustdoc/doctest-ignore-32556.rs b/tests/rustdoc/doctest/doctest-ignore-32556.rs
index 99da9358bd6..99da9358bd6 100644
--- a/tests/rustdoc/doctest-ignore-32556.rs
+++ b/tests/rustdoc/doctest/doctest-ignore-32556.rs
diff --git a/tests/rustdoc/issue-43153.rs b/tests/rustdoc/doctest/doctest-include-43153.rs
index 0fe680f10af..ec21a68c4ee 100644
--- a/tests/rustdoc/issue-43153.rs
+++ b/tests/rustdoc/doctest/doctest-include-43153.rs
@@ -1,3 +1,5 @@
+// https://github.com/rust-lang/rust/issues/43153
+
 // Test that `include!` in a doc test searches relative to the directory in
 // which the test is declared.
 
diff --git a/tests/rustdoc/issue-38219.rs b/tests/rustdoc/doctest/doctest-macro-38219.rs
index fa57c58c761..6c81df11085 100644
--- a/tests/rustdoc/issue-38219.rs
+++ b/tests/rustdoc/doctest/doctest-macro-38219.rs
@@ -1,3 +1,5 @@
+// https://github.com/rust-lang/rust/issues/38219
+
 // compile-flags:--test
 // should-fail
 
diff --git a/tests/rustdoc/doctest-manual-crate-name.rs b/tests/rustdoc/doctest/doctest-manual-crate-name.rs
index 3a5e3734e14..3a5e3734e14 100644
--- a/tests/rustdoc/doctest-manual-crate-name.rs
+++ b/tests/rustdoc/doctest/doctest-manual-crate-name.rs
diff --git a/tests/rustdoc/doctest-markdown-inline-parse-23744.rs b/tests/rustdoc/doctest/doctest-markdown-inline-parse-23744.rs
index 128e2daba07..128e2daba07 100644
--- a/tests/rustdoc/doctest-markdown-inline-parse-23744.rs
+++ b/tests/rustdoc/doctest/doctest-markdown-inline-parse-23744.rs
diff --git a/tests/rustdoc/issue-48377.rs b/tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs
index c32bcf380ea..d481dc0dd70 100644
--- a/tests/rustdoc/issue-48377.rs
+++ b/tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs
@@ -1,5 +1,7 @@
 // compile-flags:--test
 
+// https://github.com/rust-lang/rust/issues/48377
+
 //! This is a doc comment
 //!
 //! ```rust
diff --git a/tests/rustdoc/doctest-multi-line-string-literal-25944.rs b/tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs
index eec796e4fbf..eec796e4fbf 100644
--- a/tests/rustdoc/doctest-multi-line-string-literal-25944.rs
+++ b/tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs
diff --git a/tests/rustdoc/issue-46767.rs b/tests/rustdoc/enum-variant-private-46767.rs
index ef6ed104b74..6386aa75a95 100644
--- a/tests/rustdoc/issue-46767.rs
+++ b/tests/rustdoc/enum-variant-private-46767.rs
@@ -1,3 +1,4 @@
+// https://github.com/rust-lang/rust/issues/46767
 #![crate_name = "foo"]
 
 mod private {
diff --git a/tests/rustdoc/issue-43701.rs b/tests/rustdoc/foreign-implementors-js-43701.rs
index de772881e73..3b16ad2045a 100644
--- a/tests/rustdoc/issue-43701.rs
+++ b/tests/rustdoc/foreign-implementors-js-43701.rs
@@ -1,3 +1,4 @@
+// https://github.com/rust-lang/rust/issues/43701
 #![crate_name = "foo"]
 
 pub use std::vec::Vec;
diff --git a/tests/rustdoc/issue-34473.rs b/tests/rustdoc/inline-rename-34473.rs
index 37da3dd1999..7bc92cca1af 100644
--- a/tests/rustdoc/issue-34473.rs
+++ b/tests/rustdoc/inline-rename-34473.rs
@@ -1,5 +1,7 @@
 #![crate_name = "foo"]
 
+// https://github.com/rust-lang/rust/issues/34473
+
 mod second {
     pub struct SomeTypeWithLongName;
 }
diff --git a/tests/rustdoc/issue-46766.rs b/tests/rustdoc/inline_local/enum-variant-reexport-46766.rs
index 36ab739565b..ea6b7bac4c7 100644
--- a/tests/rustdoc/issue-46766.rs
+++ b/tests/rustdoc/inline_local/enum-variant-reexport-46766.rs
@@ -1,3 +1,4 @@
+// https://github.com/rust-lang/rust/issues/46766
 #![crate_name = "foo"]
 
 pub enum Enum{Variant}
diff --git a/tests/rustdoc/issue-34423.rs b/tests/rustdoc/issue-34423.rs
deleted file mode 100644
index b429bf8c9ba..00000000000
--- a/tests/rustdoc/issue-34423.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-pub struct Foo;
-
-pub trait Bar {
-    #[doc(hidden)]
-    fn bar() {}
-}
-
-impl Bar for Foo {
-    fn bar() {}
-}
diff --git a/tests/rustdoc/issue-36031.rs b/tests/rustdoc/issue-36031.rs
deleted file mode 100644
index af1b32fd22b..00000000000
--- a/tests/rustdoc/issue-36031.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-// aux-build:issue-36031.rs
-// build-aux-docs
-// ignore-cross-compile
-
-#![crate_name = "foo"]
-
-extern crate issue_36031;
-
-pub use issue_36031::Foo;
diff --git a/tests/rustdoc/issue-40936.rs b/tests/rustdoc/issue-40936.rs
deleted file mode 100644
index 4d2e4c17b1f..00000000000
--- a/tests/rustdoc/issue-40936.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-// aux-build:issue-40936.rs
-// build-aux-docs
-
-#![crate_name = "foo"]
-
-extern crate issue_40936;
diff --git a/tests/rustdoc/issue-43893.rs b/tests/rustdoc/issue-43893.rs
deleted file mode 100644
index 95d55193459..00000000000
--- a/tests/rustdoc/issue-43893.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// ignore-cross-compile
-
-#![crate_name = "foo"]
-
-pub trait SomeTrait {}
-pub struct SomeStruct;
-
-// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#9'
-impl SomeTrait for usize {}
-
-// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#12-14'
-impl SomeTrait for SomeStruct {
-    // deliberately multi-line impl
-}
-
-pub trait AnotherTrait {}
-
-// @has foo/trait.AnotherTrait.html '//a/@href' '../src/foo/issue-43893.rs.html#19'
-impl<T> AnotherTrait for T {}
diff --git a/tests/rustdoc/issue-46271.rs b/tests/rustdoc/issue-46271.rs
deleted file mode 100644
index b38ef20c551..00000000000
--- a/tests/rustdoc/issue-46271.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-// hopefully this doesn't cause an ICE
-
-pub fn foo() {
-    extern crate std;
-}
diff --git a/tests/rustdoc/issue-46976.rs b/tests/rustdoc/issue-46976.rs
deleted file mode 100644
index c59f8c72e64..00000000000
--- a/tests/rustdoc/issue-46976.rs
+++ /dev/null
@@ -1 +0,0 @@
-pub fn ice(f: impl Fn()) {}
diff --git a/tests/rustdoc/issue-47639.rs b/tests/rustdoc/issue-47639.rs
deleted file mode 100644
index 4b3456b86c5..00000000000
--- a/tests/rustdoc/issue-47639.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-// This should not ICE
-pub fn test() {
-    macro_rules! foo {
-        () => ()
-    }
-}
diff --git a/tests/rustdoc/issue-48414.rs b/tests/rustdoc/issue-48414.rs
deleted file mode 100644
index b35743d887b..00000000000
--- a/tests/rustdoc/issue-48414.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-// aux-build:issue-48414.rs
-
-// ICE when resolving paths for a trait that linked to another trait, when both were in an external
-// crate
-
-#![crate_name = "base"]
-
-extern crate issue_48414;
-
-#[doc(inline)]
-pub use issue_48414::{SomeTrait, OtherTrait};
diff --git a/tests/rustdoc/issue-47038.rs b/tests/rustdoc/private-use-decl-macro-47038.rs
index 810ddca3eab..8944bdd42b4 100644
--- a/tests/rustdoc/issue-47038.rs
+++ b/tests/rustdoc/private-use-decl-macro-47038.rs
@@ -2,6 +2,8 @@
 
 #![crate_name = "foo"]
 
+// https://github.com/rust-lang/rust/issues/47038
+
 use std::vec;
 
 // @has 'foo/index.html'
diff --git a/tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs b/tests/rustdoc/pub-reexport-of-pub-reexport-46506.rs
index d8953eaf597..d8953eaf597 100644
--- a/tests/rustdoc/issue-46506-pub-reexport-of-pub-reexport.rs
+++ b/tests/rustdoc/pub-reexport-of-pub-reexport-46506.rs
diff --git a/tests/rustdoc/src-links-implementor-43893.rs b/tests/rustdoc/src-links-implementor-43893.rs
new file mode 100644
index 00000000000..07e672847ca
--- /dev/null
+++ b/tests/rustdoc/src-links-implementor-43893.rs
@@ -0,0 +1,21 @@
+// ignore-cross-compile
+
+// https://github.com/rust-lang/rust/issues/43893
+
+#![crate_name = "foo"]
+
+pub trait SomeTrait {}
+pub struct SomeStruct;
+
+// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/src-links-implementor-43893.rs.html#11'
+impl SomeTrait for usize {}
+
+// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/src-links-implementor-43893.rs.html#14-16'
+impl SomeTrait for SomeStruct {
+    // deliberately multi-line impl
+}
+
+pub trait AnotherTrait {}
+
+// @has foo/trait.AnotherTrait.html '//a/@href' '../src/foo/src-links-implementor-43893.rs.html#21'
+impl<T> AnotherTrait for T {}
diff --git a/tests/rustdoc/issue-45584.rs b/tests/rustdoc/trait-implementations-duplicate-self-45584.rs
index 8a5f0413826..77b8c05f2fb 100644
--- a/tests/rustdoc/issue-45584.rs
+++ b/tests/rustdoc/trait-implementations-duplicate-self-45584.rs
@@ -1,5 +1,7 @@
 #![crate_name = "foo"]
 
+// https://github.com/rust-lang/rust/issues/45584
+
 pub trait Bar<T, U> {}
 
 // @has 'foo/struct.Foo1.html'
diff --git a/tests/rustdoc/issue-34928.rs b/tests/rustdoc/tuple-struct-where-clause-34928.rs
index 4184086f622..909b9146893 100644
--- a/tests/rustdoc/issue-34928.rs
+++ b/tests/rustdoc/tuple-struct-where-clause-34928.rs
@@ -1,5 +1,7 @@
 #![crate_name = "foo"]
 
+// https://github.com/rust-lang/rust/issues/34928
+
 pub trait Bar {}
 
 // @has foo/struct.Foo.html '//pre' 'pub struct Foo<T>(pub T) where T: Bar;'