about summary refs log tree commit diff
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
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
-rw-r--r--tests/rustdoc-ui/apit-46976.rs4
-rw-r--r--tests/rustdoc-ui/auxiliary/issue-36031.rs (renamed from tests/rustdoc/auxiliary/issue-36031.rs)0
-rw-r--r--tests/rustdoc-ui/auxiliary/issue-40936.rs (renamed from tests/rustdoc/auxiliary/issue-40936.rs)0
-rw-r--r--tests/rustdoc-ui/auxiliary/issue-48414.rs (renamed from tests/rustdoc/auxiliary/issue-48414.rs)0
-rw-r--r--tests/rustdoc-ui/circular-intra-doc-link-48414.rs (renamed from tests/rustdoc/issue-48414.rs)3
-rw-r--r--tests/rustdoc-ui/hidden-trait-method-34423.rs (renamed from tests/rustdoc/issue-34423.rs)3
-rw-r--r--tests/rustdoc-ui/inherent-assoc-consts-36031.rs (renamed from tests/rustdoc/issue-36031.rs)3
-rw-r--r--tests/rustdoc-ui/nested-extern-crate-46271.rs (renamed from tests/rustdoc/issue-46271.rs)3
-rw-r--r--tests/rustdoc-ui/nested-macro-rules-47639.rs (renamed from tests/rustdoc/issue-47639.rs)3
-rw-r--r--tests/rustdoc-ui/super-glob-40936.rs (renamed from tests/rustdoc/issue-40936.rs)3
-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-43893.rs19
-rw-r--r--tests/rustdoc/issue-46976.rs1
-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
32 files changed, 61 insertions, 20 deletions
diff --git a/tests/rustdoc-ui/apit-46976.rs b/tests/rustdoc-ui/apit-46976.rs
new file mode 100644
index 00000000000..c17688e3b1d
--- /dev/null
+++ b/tests/rustdoc-ui/apit-46976.rs
@@ -0,0 +1,4 @@
+// check-pass
+// https://github.com/rust-lang/rust/issues/46976
+
+pub fn ice(f: impl Fn()) {}
diff --git a/tests/rustdoc/auxiliary/issue-36031.rs b/tests/rustdoc-ui/auxiliary/issue-36031.rs
index da688139e34..da688139e34 100644
--- a/tests/rustdoc/auxiliary/issue-36031.rs
+++ b/tests/rustdoc-ui/auxiliary/issue-36031.rs
diff --git a/tests/rustdoc/auxiliary/issue-40936.rs b/tests/rustdoc-ui/auxiliary/issue-40936.rs
index b921e520173..b921e520173 100644
--- a/tests/rustdoc/auxiliary/issue-40936.rs
+++ b/tests/rustdoc-ui/auxiliary/issue-40936.rs
diff --git a/tests/rustdoc/auxiliary/issue-48414.rs b/tests/rustdoc-ui/auxiliary/issue-48414.rs
index f442ac72212..f442ac72212 100644
--- a/tests/rustdoc/auxiliary/issue-48414.rs
+++ b/tests/rustdoc-ui/auxiliary/issue-48414.rs
diff --git a/tests/rustdoc/issue-48414.rs b/tests/rustdoc-ui/circular-intra-doc-link-48414.rs
index b35743d887b..46367ccaef9 100644
--- a/tests/rustdoc/issue-48414.rs
+++ b/tests/rustdoc-ui/circular-intra-doc-link-48414.rs
@@ -1,4 +1,7 @@
 // aux-build:issue-48414.rs
+// check-pass
+
+// https://github.com/rust-lang/rust/issues/48414
 
 // ICE when resolving paths for a trait that linked to another trait, when both were in an external
 // crate
diff --git a/tests/rustdoc/issue-34423.rs b/tests/rustdoc-ui/hidden-trait-method-34423.rs
index b429bf8c9ba..f3107d2379c 100644
--- a/tests/rustdoc/issue-34423.rs
+++ b/tests/rustdoc-ui/hidden-trait-method-34423.rs
@@ -1,3 +1,6 @@
+// check-pass
+// https://github.com/rust-lang/rust/issues/34423
+
 pub struct Foo;
 
 pub trait Bar {
diff --git a/tests/rustdoc/issue-36031.rs b/tests/rustdoc-ui/inherent-assoc-consts-36031.rs
index af1b32fd22b..755fc1cfdff 100644
--- a/tests/rustdoc/issue-36031.rs
+++ b/tests/rustdoc-ui/inherent-assoc-consts-36031.rs
@@ -1,7 +1,10 @@
 // aux-build:issue-36031.rs
+// check-pass
 // build-aux-docs
 // ignore-cross-compile
 
+// https://github.com/rust-lang/rust/issues/36031
+
 #![crate_name = "foo"]
 
 extern crate issue_36031;
diff --git a/tests/rustdoc/issue-46271.rs b/tests/rustdoc-ui/nested-extern-crate-46271.rs
index b38ef20c551..d2ac38f3e45 100644
--- a/tests/rustdoc/issue-46271.rs
+++ b/tests/rustdoc-ui/nested-extern-crate-46271.rs
@@ -1,5 +1,8 @@
+// check-pass
 // hopefully this doesn't cause an ICE
 
+// https://github.com/rust-lang/rust/issues/46271
+
 pub fn foo() {
     extern crate std;
 }
diff --git a/tests/rustdoc/issue-47639.rs b/tests/rustdoc-ui/nested-macro-rules-47639.rs
index 4b3456b86c5..210b1e79cd2 100644
--- a/tests/rustdoc/issue-47639.rs
+++ b/tests/rustdoc-ui/nested-macro-rules-47639.rs
@@ -1,4 +1,7 @@
+// check-pass
 // This should not ICE
+
+// https://github.com/rust-lang/rust/issues/47639
 pub fn test() {
     macro_rules! foo {
         () => ()
diff --git a/tests/rustdoc/issue-40936.rs b/tests/rustdoc-ui/super-glob-40936.rs
index 4d2e4c17b1f..a06e977b10a 100644
--- a/tests/rustdoc/issue-40936.rs
+++ b/tests/rustdoc-ui/super-glob-40936.rs
@@ -1,6 +1,9 @@
 // aux-build:issue-40936.rs
+// check-pass
 // build-aux-docs
 
+// https://github.com/rust-lang/rust/issues/40936
+
 #![crate_name = "foo"]
 
 extern crate issue_40936;
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-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-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-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;'