From df5ea58287419d6f8c89019dafeb48ca7aed3a62 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 16 Oct 2023 15:41:04 -0700 Subject: [PATCH 1/5] Add `crate_name` to test so that it can be renamed --- tests/rustdoc/issue-29449.rs | 2 ++ tests/rustdoc/issue-29503.rs | 2 ++ tests/rustdoc/issue-29584.rs | 2 ++ tests/rustdoc/issue-30109.rs | 2 ++ tests/rustdoc/issue-30252.rs | 2 ++ tests/rustdoc/issue-30366.rs | 2 ++ tests/rustdoc/issue-31808.rs | 2 ++ tests/rustdoc/issue-31899.rs | 2 ++ tests/rustdoc/issue-32374.rs | 1 + tests/rustdoc/issue-32395.rs | 2 ++ tests/rustdoc/issue-32556.rs | 2 ++ tests/rustdoc/issue-32890.rs | 2 ++ tests/rustdoc/issue-33069.rs | 2 ++ tests/rustdoc/issue-33178-1.rs | 2 ++ tests/rustdoc/issue-33178.rs | 2 ++ tests/rustdoc/issue-33302.rs | 2 ++ 16 files changed, 31 insertions(+) diff --git a/tests/rustdoc/issue-29449.rs b/tests/rustdoc/issue-29449.rs index 0d829cf6fcf..0b9b29a69ee 100644 --- a/tests/rustdoc/issue-29449.rs +++ b/tests/rustdoc/issue-29449.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_29449"] + // @has issue_29449/struct.Foo.html pub struct Foo; diff --git a/tests/rustdoc/issue-29503.rs b/tests/rustdoc/issue-29503.rs index 01ae4438500..310acd09a82 100644 --- a/tests/rustdoc/issue-29503.rs +++ b/tests/rustdoc/issue-29503.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_29503"] + use std::fmt; // @has issue_29503/trait.MyTrait.html diff --git a/tests/rustdoc/issue-29584.rs b/tests/rustdoc/issue-29584.rs index 4364a9649b5..6e3feafc7ad 100644 --- a/tests/rustdoc/issue-29584.rs +++ b/tests/rustdoc/issue-29584.rs @@ -1,6 +1,8 @@ // aux-build:issue-29584.rs // ignore-cross-compile +#![crate_name="issue_29584"] + extern crate issue_29584; // @has issue_29584/struct.Foo.html diff --git a/tests/rustdoc/issue-30109.rs b/tests/rustdoc/issue-30109.rs index e9447538ad7..ff9a22b5f7b 100644 --- a/tests/rustdoc/issue-30109.rs +++ b/tests/rustdoc/issue-30109.rs @@ -2,6 +2,8 @@ // aux-build:issue-30109-1.rs // ignore-cross-compile +#![crate_name="issue_30109"] + pub mod quux { extern crate issue_30109_1 as bar; use self::bar::Bar; diff --git a/tests/rustdoc/issue-30252.rs b/tests/rustdoc/issue-30252.rs index c3777362a66..749c63d741c 100644 --- a/tests/rustdoc/issue-30252.rs +++ b/tests/rustdoc/issue-30252.rs @@ -1,5 +1,7 @@ // compile-flags:--test --cfg feature="bar" +#![crate_name="issue_30252"] + /// ```rust /// assert_eq!(cfg!(feature = "bar"), true); /// ``` diff --git a/tests/rustdoc/issue-30366.rs b/tests/rustdoc/issue-30366.rs index c6274a058b0..0fa5dc6fe7f 100644 --- a/tests/rustdoc/issue-30366.rs +++ b/tests/rustdoc/issue-30366.rs @@ -1,5 +1,7 @@ // @has issue_30366/index.html '//a/@href' 'http://www.rust-lang.org/' +#![crate_name="issue_30366"] + /// Describe it. [Link somewhere][1]. /// /// [1]: http://www.rust-lang.org/ diff --git a/tests/rustdoc/issue-31808.rs b/tests/rustdoc/issue-31808.rs index e55c5bd4f7c..58f9daaff59 100644 --- a/tests/rustdoc/issue-31808.rs +++ b/tests/rustdoc/issue-31808.rs @@ -1,5 +1,7 @@ // Test that associated item impls on primitive types don't crash rustdoc +#![crate_name="issue_31808"] + pub trait Foo { const BAR: usize; type BAZ; diff --git a/tests/rustdoc/issue-31899.rs b/tests/rustdoc/issue-31899.rs index 3eee374465d..570ab59bbe9 100644 --- a/tests/rustdoc/issue-31899.rs +++ b/tests/rustdoc/issue-31899.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_31899"] + // @has issue_31899/index.html // @hasraw - 'Make this line a bit longer.' // @!hasraw - 'rust rust-example-rendered' diff --git a/tests/rustdoc/issue-32374.rs b/tests/rustdoc/issue-32374.rs index 985bf03a121..36070dbb731 100644 --- a/tests/rustdoc/issue-32374.rs +++ b/tests/rustdoc/issue-32374.rs @@ -1,6 +1,7 @@ #![feature(staged_api)] #![doc(issue_tracker_base_url = "https://issue_url/")] #![unstable(feature = "test", issue = "32374")] +#![crate_name="issue_32374"] // @matches issue_32374/index.html '//*[@class="item-name"]/span[@class="stab deprecated"]' \ // 'Deprecated' diff --git a/tests/rustdoc/issue-32395.rs b/tests/rustdoc/issue-32395.rs index 5552300f9fe..d419c75b71c 100644 --- a/tests/rustdoc/issue-32395.rs +++ b/tests/rustdoc/issue-32395.rs @@ -2,6 +2,8 @@ // build-aux-docs // ignore-cross-compile +#![crate_name="issue_32395"] + // @has variant_struct/enum.Foo.html // @!hasraw - 'pub qux' // @!hasraw - 'pub(crate) qux' diff --git a/tests/rustdoc/issue-32556.rs b/tests/rustdoc/issue-32556.rs index e1cf1150997..369aef72e19 100644 --- a/tests/rustdoc/issue-32556.rs +++ b/tests/rustdoc/issue-32556.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_32556"] + /// Blah blah blah /// ```ignore (testing rustdoc's handling of ignore) /// bad_assert!(); diff --git a/tests/rustdoc/issue-32890.rs b/tests/rustdoc/issue-32890.rs index 970954433ec..dfac0ef22b7 100644 --- a/tests/rustdoc/issue-32890.rs +++ b/tests/rustdoc/issue-32890.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_32890"] + // @has issue_32890/struct.Foo.html pub struct Foo(T); diff --git a/tests/rustdoc/issue-33069.rs b/tests/rustdoc/issue-33069.rs index 0213a53cab5..9c0e0014bd1 100644 --- a/tests/rustdoc/issue-33069.rs +++ b/tests/rustdoc/issue-33069.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_33069"] + pub trait Bar {} #[doc(hidden)] diff --git a/tests/rustdoc/issue-33178-1.rs b/tests/rustdoc/issue-33178-1.rs index 4dc425346ab..24740c12952 100644 --- a/tests/rustdoc/issue-33178-1.rs +++ b/tests/rustdoc/issue-33178-1.rs @@ -2,6 +2,8 @@ // aux-build:variant-struct.rs // ignore-cross-compile +#![crate_name="issue_33178_1"] + // @has issue_33178_1/index.html // @!has - //a/@title empty pub extern crate empty; diff --git a/tests/rustdoc/issue-33178.rs b/tests/rustdoc/issue-33178.rs index ed643f5ae11..fb44d8efc8c 100644 --- a/tests/rustdoc/issue-33178.rs +++ b/tests/rustdoc/issue-33178.rs @@ -3,6 +3,8 @@ // build-aux-docs // ignore-cross-compile +#![crate_name="issue_33178"] + // @has issue_33178/index.html // @has - '//a[@title="mod empty"][@href="../empty/index.html"]' empty pub extern crate empty; diff --git a/tests/rustdoc/issue-33302.rs b/tests/rustdoc/issue-33302.rs index a316f3ad99b..b4e6cc7aaac 100644 --- a/tests/rustdoc/issue-33302.rs +++ b/tests/rustdoc/issue-33302.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_33302"] + // Ensure constant and array length values are not taken from source // code, which wreaks havoc with macros. From 69dc19043bee2ce720f83bf1d6582240547c842e Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 16 Oct 2023 16:06:58 -0700 Subject: [PATCH 2/5] Rename `issue-\d+.rs` tests to have meaningful names --- tests/rustdoc/{issue-29503.rs => blanket-impl-29503.rs} | 0 tests/rustdoc/{issue-33302.rs => const-rendering-macros-33302.rs} | 0 tests/rustdoc/{issue-32890.rs => disambiguate-anchors-32890.rs} | 0 .../{issue-29449.rs => disambiguate-anchors-header-29449.rs} | 0 .../{issue-33069.rs => doc-hidden-trait-implementors-33069.rs} | 0 tests/rustdoc/{issue-30252.rs => doctest-cfg-feature-30252.rs} | 0 tests/rustdoc/{issue-32556.rs => doctest-ignore-32556.rs} | 0 tests/rustdoc/{issue-34025.rs => hidden-extern-34025.rs} | 0 .../{issue-31808.rs => ice-assoc-const-for-primitive-31808.rs} | 0 tests/rustdoc/{issue-33592.rs => impl-type-parameter-33592.rs} | 0 tests/rustdoc/{ => inline_cross}/auxiliary/issue-29584.rs | 0 .../doc-hidden-extern-trait-impl-29584.rs} | 0 tests/rustdoc/{issue-33178.rs => link-extern-crate-33178.rs} | 0 tests/rustdoc/{issue-30109.rs => link-extern-crate-item-30109.rs} | 0 .../{issue-33178-1.rs => link-extern-crate-title-33178.rs} | 0 .../{issue-32395.rs => render-enum-variant-structlike-32395.rs} | 0 tests/rustdoc/{issue-34274.rs => src-links-inlined-34274.rs} | 0 .../{issue-32374.rs => staged-api-deprecated-unstable-32374.rs} | 0 tests/rustdoc/{issue-31899.rs => summary-codeblock-31899.rs} | 0 tests/rustdoc/{issue-30366.rs => summary-reference-link-30366.rs} | 0 ...{issue-32077-type-alias-impls.rs => type-alias-impls-32077.rs} | 0 21 files changed, 0 insertions(+), 0 deletions(-) rename tests/rustdoc/{issue-29503.rs => blanket-impl-29503.rs} (100%) rename tests/rustdoc/{issue-33302.rs => const-rendering-macros-33302.rs} (100%) rename tests/rustdoc/{issue-32890.rs => disambiguate-anchors-32890.rs} (100%) rename tests/rustdoc/{issue-29449.rs => disambiguate-anchors-header-29449.rs} (100%) rename tests/rustdoc/{issue-33069.rs => doc-hidden-trait-implementors-33069.rs} (100%) rename tests/rustdoc/{issue-30252.rs => doctest-cfg-feature-30252.rs} (100%) rename tests/rustdoc/{issue-32556.rs => doctest-ignore-32556.rs} (100%) rename tests/rustdoc/{issue-34025.rs => hidden-extern-34025.rs} (100%) rename tests/rustdoc/{issue-31808.rs => ice-assoc-const-for-primitive-31808.rs} (100%) rename tests/rustdoc/{issue-33592.rs => impl-type-parameter-33592.rs} (100%) rename tests/rustdoc/{ => inline_cross}/auxiliary/issue-29584.rs (100%) rename tests/rustdoc/{issue-29584.rs => inline_cross/doc-hidden-extern-trait-impl-29584.rs} (100%) rename tests/rustdoc/{issue-33178.rs => link-extern-crate-33178.rs} (100%) rename tests/rustdoc/{issue-30109.rs => link-extern-crate-item-30109.rs} (100%) rename tests/rustdoc/{issue-33178-1.rs => link-extern-crate-title-33178.rs} (100%) rename tests/rustdoc/{issue-32395.rs => render-enum-variant-structlike-32395.rs} (100%) rename tests/rustdoc/{issue-34274.rs => src-links-inlined-34274.rs} (100%) rename tests/rustdoc/{issue-32374.rs => staged-api-deprecated-unstable-32374.rs} (100%) rename tests/rustdoc/{issue-31899.rs => summary-codeblock-31899.rs} (100%) rename tests/rustdoc/{issue-30366.rs => summary-reference-link-30366.rs} (100%) rename tests/rustdoc/{issue-32077-type-alias-impls.rs => type-alias-impls-32077.rs} (100%) diff --git a/tests/rustdoc/issue-29503.rs b/tests/rustdoc/blanket-impl-29503.rs similarity index 100% rename from tests/rustdoc/issue-29503.rs rename to tests/rustdoc/blanket-impl-29503.rs diff --git a/tests/rustdoc/issue-33302.rs b/tests/rustdoc/const-rendering-macros-33302.rs similarity index 100% rename from tests/rustdoc/issue-33302.rs rename to tests/rustdoc/const-rendering-macros-33302.rs diff --git a/tests/rustdoc/issue-32890.rs b/tests/rustdoc/disambiguate-anchors-32890.rs similarity index 100% rename from tests/rustdoc/issue-32890.rs rename to tests/rustdoc/disambiguate-anchors-32890.rs diff --git a/tests/rustdoc/issue-29449.rs b/tests/rustdoc/disambiguate-anchors-header-29449.rs similarity index 100% rename from tests/rustdoc/issue-29449.rs rename to tests/rustdoc/disambiguate-anchors-header-29449.rs diff --git a/tests/rustdoc/issue-33069.rs b/tests/rustdoc/doc-hidden-trait-implementors-33069.rs similarity index 100% rename from tests/rustdoc/issue-33069.rs rename to tests/rustdoc/doc-hidden-trait-implementors-33069.rs diff --git a/tests/rustdoc/issue-30252.rs b/tests/rustdoc/doctest-cfg-feature-30252.rs similarity index 100% rename from tests/rustdoc/issue-30252.rs rename to tests/rustdoc/doctest-cfg-feature-30252.rs diff --git a/tests/rustdoc/issue-32556.rs b/tests/rustdoc/doctest-ignore-32556.rs similarity index 100% rename from tests/rustdoc/issue-32556.rs rename to tests/rustdoc/doctest-ignore-32556.rs diff --git a/tests/rustdoc/issue-34025.rs b/tests/rustdoc/hidden-extern-34025.rs similarity index 100% rename from tests/rustdoc/issue-34025.rs rename to tests/rustdoc/hidden-extern-34025.rs diff --git a/tests/rustdoc/issue-31808.rs b/tests/rustdoc/ice-assoc-const-for-primitive-31808.rs similarity index 100% rename from tests/rustdoc/issue-31808.rs rename to tests/rustdoc/ice-assoc-const-for-primitive-31808.rs diff --git a/tests/rustdoc/issue-33592.rs b/tests/rustdoc/impl-type-parameter-33592.rs similarity index 100% rename from tests/rustdoc/issue-33592.rs rename to tests/rustdoc/impl-type-parameter-33592.rs diff --git a/tests/rustdoc/auxiliary/issue-29584.rs b/tests/rustdoc/inline_cross/auxiliary/issue-29584.rs similarity index 100% rename from tests/rustdoc/auxiliary/issue-29584.rs rename to tests/rustdoc/inline_cross/auxiliary/issue-29584.rs diff --git a/tests/rustdoc/issue-29584.rs b/tests/rustdoc/inline_cross/doc-hidden-extern-trait-impl-29584.rs similarity index 100% rename from tests/rustdoc/issue-29584.rs rename to tests/rustdoc/inline_cross/doc-hidden-extern-trait-impl-29584.rs diff --git a/tests/rustdoc/issue-33178.rs b/tests/rustdoc/link-extern-crate-33178.rs similarity index 100% rename from tests/rustdoc/issue-33178.rs rename to tests/rustdoc/link-extern-crate-33178.rs diff --git a/tests/rustdoc/issue-30109.rs b/tests/rustdoc/link-extern-crate-item-30109.rs similarity index 100% rename from tests/rustdoc/issue-30109.rs rename to tests/rustdoc/link-extern-crate-item-30109.rs diff --git a/tests/rustdoc/issue-33178-1.rs b/tests/rustdoc/link-extern-crate-title-33178.rs similarity index 100% rename from tests/rustdoc/issue-33178-1.rs rename to tests/rustdoc/link-extern-crate-title-33178.rs diff --git a/tests/rustdoc/issue-32395.rs b/tests/rustdoc/render-enum-variant-structlike-32395.rs similarity index 100% rename from tests/rustdoc/issue-32395.rs rename to tests/rustdoc/render-enum-variant-structlike-32395.rs diff --git a/tests/rustdoc/issue-34274.rs b/tests/rustdoc/src-links-inlined-34274.rs similarity index 100% rename from tests/rustdoc/issue-34274.rs rename to tests/rustdoc/src-links-inlined-34274.rs diff --git a/tests/rustdoc/issue-32374.rs b/tests/rustdoc/staged-api-deprecated-unstable-32374.rs similarity index 100% rename from tests/rustdoc/issue-32374.rs rename to tests/rustdoc/staged-api-deprecated-unstable-32374.rs diff --git a/tests/rustdoc/issue-31899.rs b/tests/rustdoc/summary-codeblock-31899.rs similarity index 100% rename from tests/rustdoc/issue-31899.rs rename to tests/rustdoc/summary-codeblock-31899.rs diff --git a/tests/rustdoc/issue-30366.rs b/tests/rustdoc/summary-reference-link-30366.rs similarity index 100% rename from tests/rustdoc/issue-30366.rs rename to tests/rustdoc/summary-reference-link-30366.rs diff --git a/tests/rustdoc/issue-32077-type-alias-impls.rs b/tests/rustdoc/type-alias-impls-32077.rs similarity index 100% rename from tests/rustdoc/issue-32077-type-alias-impls.rs rename to tests/rustdoc/type-alias-impls-32077.rs From 43b493ebc06f298c8d781f3f0b5a21acbfebd013 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 16 Oct 2023 16:12:17 -0700 Subject: [PATCH 3/5] Add URL to test cases --- tests/rustdoc/blanket-impl-29503.rs | 1 + tests/rustdoc/const-rendering-macros-33302.rs | 1 + tests/rustdoc/disambiguate-anchors-32890.rs | 1 + tests/rustdoc/disambiguate-anchors-header-29449.rs | 1 + tests/rustdoc/doc-hidden-trait-implementors-33069.rs | 1 + tests/rustdoc/doctest-cfg-feature-30252.rs | 1 + tests/rustdoc/doctest-ignore-32556.rs | 1 + tests/rustdoc/hidden-extern-34025.rs | 1 + tests/rustdoc/ice-assoc-const-for-primitive-31808.rs | 1 + tests/rustdoc/impl-type-parameter-33592.rs | 1 + tests/rustdoc/inline_cross/doc-hidden-extern-trait-impl-29584.rs | 1 + tests/rustdoc/link-extern-crate-33178.rs | 1 + tests/rustdoc/link-extern-crate-item-30109.rs | 1 + tests/rustdoc/link-extern-crate-title-33178.rs | 1 + tests/rustdoc/render-enum-variant-structlike-32395.rs | 1 + tests/rustdoc/src-links-inlined-34274.rs | 1 + tests/rustdoc/staged-api-deprecated-unstable-32374.rs | 1 + tests/rustdoc/summary-codeblock-31899.rs | 1 + tests/rustdoc/summary-reference-link-30366.rs | 1 + tests/rustdoc/type-alias-impls-32077.rs | 1 + 20 files changed, 20 insertions(+) diff --git a/tests/rustdoc/blanket-impl-29503.rs b/tests/rustdoc/blanket-impl-29503.rs index 310acd09a82..d6a132e1c26 100644 --- a/tests/rustdoc/blanket-impl-29503.rs +++ b/tests/rustdoc/blanket-impl-29503.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/29503 #![crate_name="issue_29503"] use std::fmt; diff --git a/tests/rustdoc/const-rendering-macros-33302.rs b/tests/rustdoc/const-rendering-macros-33302.rs index b4e6cc7aaac..0f5cb921411 100644 --- a/tests/rustdoc/const-rendering-macros-33302.rs +++ b/tests/rustdoc/const-rendering-macros-33302.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/33302 #![crate_name="issue_33302"] // Ensure constant and array length values are not taken from source diff --git a/tests/rustdoc/disambiguate-anchors-32890.rs b/tests/rustdoc/disambiguate-anchors-32890.rs index dfac0ef22b7..d88601d65d3 100644 --- a/tests/rustdoc/disambiguate-anchors-32890.rs +++ b/tests/rustdoc/disambiguate-anchors-32890.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/32890 #![crate_name="issue_32890"] // @has issue_32890/struct.Foo.html diff --git a/tests/rustdoc/disambiguate-anchors-header-29449.rs b/tests/rustdoc/disambiguate-anchors-header-29449.rs index 0b9b29a69ee..38a4954fc13 100644 --- a/tests/rustdoc/disambiguate-anchors-header-29449.rs +++ b/tests/rustdoc/disambiguate-anchors-header-29449.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/29449 #![crate_name="issue_29449"] // @has issue_29449/struct.Foo.html diff --git a/tests/rustdoc/doc-hidden-trait-implementors-33069.rs b/tests/rustdoc/doc-hidden-trait-implementors-33069.rs index 9c0e0014bd1..35570668ea1 100644 --- a/tests/rustdoc/doc-hidden-trait-implementors-33069.rs +++ b/tests/rustdoc/doc-hidden-trait-implementors-33069.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/33069 #![crate_name="issue_33069"] pub trait Bar {} diff --git a/tests/rustdoc/doctest-cfg-feature-30252.rs b/tests/rustdoc/doctest-cfg-feature-30252.rs index 749c63d741c..ceb8076fe35 100644 --- a/tests/rustdoc/doctest-cfg-feature-30252.rs +++ b/tests/rustdoc/doctest-cfg-feature-30252.rs @@ -1,5 +1,6 @@ // compile-flags:--test --cfg feature="bar" +// https://github.com/rust-lang/rust/issues/30252 #![crate_name="issue_30252"] /// ```rust diff --git a/tests/rustdoc/doctest-ignore-32556.rs b/tests/rustdoc/doctest-ignore-32556.rs index 369aef72e19..99da9358bd6 100644 --- a/tests/rustdoc/doctest-ignore-32556.rs +++ b/tests/rustdoc/doctest-ignore-32556.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/32556 #![crate_name="issue_32556"] /// Blah blah blah diff --git a/tests/rustdoc/hidden-extern-34025.rs b/tests/rustdoc/hidden-extern-34025.rs index 9b9f21cb316..81ccf2a0e5c 100644 --- a/tests/rustdoc/hidden-extern-34025.rs +++ b/tests/rustdoc/hidden-extern-34025.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/34025 #![crate_name = "foo"] // @!has 'foo/sys/index.html' diff --git a/tests/rustdoc/ice-assoc-const-for-primitive-31808.rs b/tests/rustdoc/ice-assoc-const-for-primitive-31808.rs index 58f9daaff59..9c0e404cf76 100644 --- a/tests/rustdoc/ice-assoc-const-for-primitive-31808.rs +++ b/tests/rustdoc/ice-assoc-const-for-primitive-31808.rs @@ -1,5 +1,6 @@ // Test that associated item impls on primitive types don't crash rustdoc +// https://github.com/rust-lang/rust/issues/31808 #![crate_name="issue_31808"] pub trait Foo { diff --git a/tests/rustdoc/impl-type-parameter-33592.rs b/tests/rustdoc/impl-type-parameter-33592.rs index 7a128f0b897..77f53710e5e 100644 --- a/tests/rustdoc/impl-type-parameter-33592.rs +++ b/tests/rustdoc/impl-type-parameter-33592.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/33592 #![crate_name = "foo"] pub trait Foo {} diff --git a/tests/rustdoc/inline_cross/doc-hidden-extern-trait-impl-29584.rs b/tests/rustdoc/inline_cross/doc-hidden-extern-trait-impl-29584.rs index 6e3feafc7ad..b246e94e048 100644 --- a/tests/rustdoc/inline_cross/doc-hidden-extern-trait-impl-29584.rs +++ b/tests/rustdoc/inline_cross/doc-hidden-extern-trait-impl-29584.rs @@ -1,6 +1,7 @@ // aux-build:issue-29584.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/29584 #![crate_name="issue_29584"] extern crate issue_29584; diff --git a/tests/rustdoc/link-extern-crate-33178.rs b/tests/rustdoc/link-extern-crate-33178.rs index fb44d8efc8c..6a63712c4a7 100644 --- a/tests/rustdoc/link-extern-crate-33178.rs +++ b/tests/rustdoc/link-extern-crate-33178.rs @@ -3,6 +3,7 @@ // build-aux-docs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/33178 #![crate_name="issue_33178"] // @has issue_33178/index.html diff --git a/tests/rustdoc/link-extern-crate-item-30109.rs b/tests/rustdoc/link-extern-crate-item-30109.rs index ff9a22b5f7b..c83234352ad 100644 --- a/tests/rustdoc/link-extern-crate-item-30109.rs +++ b/tests/rustdoc/link-extern-crate-item-30109.rs @@ -2,6 +2,7 @@ // aux-build:issue-30109-1.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/30109 #![crate_name="issue_30109"] pub mod quux { diff --git a/tests/rustdoc/link-extern-crate-title-33178.rs b/tests/rustdoc/link-extern-crate-title-33178.rs index 24740c12952..d2f115a386e 100644 --- a/tests/rustdoc/link-extern-crate-title-33178.rs +++ b/tests/rustdoc/link-extern-crate-title-33178.rs @@ -2,6 +2,7 @@ // aux-build:variant-struct.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/33178 #![crate_name="issue_33178_1"] // @has issue_33178_1/index.html diff --git a/tests/rustdoc/render-enum-variant-structlike-32395.rs b/tests/rustdoc/render-enum-variant-structlike-32395.rs index d419c75b71c..2200d8ec637 100644 --- a/tests/rustdoc/render-enum-variant-structlike-32395.rs +++ b/tests/rustdoc/render-enum-variant-structlike-32395.rs @@ -2,6 +2,7 @@ // build-aux-docs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/32395 #![crate_name="issue_32395"] // @has variant_struct/enum.Foo.html diff --git a/tests/rustdoc/src-links-inlined-34274.rs b/tests/rustdoc/src-links-inlined-34274.rs index ce5be84a549..a3c9bf7e45c 100644 --- a/tests/rustdoc/src-links-inlined-34274.rs +++ b/tests/rustdoc/src-links-inlined-34274.rs @@ -2,6 +2,7 @@ // build-aux-docs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/34274 #![crate_name = "foo"] extern crate issue_34274; diff --git a/tests/rustdoc/staged-api-deprecated-unstable-32374.rs b/tests/rustdoc/staged-api-deprecated-unstable-32374.rs index 36070dbb731..d282dea907e 100644 --- a/tests/rustdoc/staged-api-deprecated-unstable-32374.rs +++ b/tests/rustdoc/staged-api-deprecated-unstable-32374.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/32374 #![feature(staged_api)] #![doc(issue_tracker_base_url = "https://issue_url/")] #![unstable(feature = "test", issue = "32374")] diff --git a/tests/rustdoc/summary-codeblock-31899.rs b/tests/rustdoc/summary-codeblock-31899.rs index 570ab59bbe9..c1b33058c9e 100644 --- a/tests/rustdoc/summary-codeblock-31899.rs +++ b/tests/rustdoc/summary-codeblock-31899.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/31899 #![crate_name="issue_31899"] // @has issue_31899/index.html diff --git a/tests/rustdoc/summary-reference-link-30366.rs b/tests/rustdoc/summary-reference-link-30366.rs index 0fa5dc6fe7f..5b9854c5390 100644 --- a/tests/rustdoc/summary-reference-link-30366.rs +++ b/tests/rustdoc/summary-reference-link-30366.rs @@ -1,5 +1,6 @@ // @has issue_30366/index.html '//a/@href' 'http://www.rust-lang.org/' +// https://github.com/rust-lang/rust/issues/30366 #![crate_name="issue_30366"] /// Describe it. [Link somewhere][1]. diff --git a/tests/rustdoc/type-alias-impls-32077.rs b/tests/rustdoc/type-alias-impls-32077.rs index 664b678093e..7bb763f86af 100644 --- a/tests/rustdoc/type-alias-impls-32077.rs +++ b/tests/rustdoc/type-alias-impls-32077.rs @@ -1,5 +1,6 @@ // Regression test for . +// https://github.com/rust-lang/rust/issues/32077 #![crate_name = "foo"] pub struct GenericStruct(T); From 94b39e8c86f3b07e39e8541ef4417c260ec13eab Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 16 Oct 2023 18:02:11 -0700 Subject: [PATCH 4/5] rustdoc: move ICE test to rustdoc-ui --- .../ice-assoc-const-for-primitive-31808.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/{rustdoc => rustdoc-ui}/ice-assoc-const-for-primitive-31808.rs (100%) diff --git a/tests/rustdoc/ice-assoc-const-for-primitive-31808.rs b/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs similarity index 100% rename from tests/rustdoc/ice-assoc-const-for-primitive-31808.rs rename to tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs From c0b6a5d3406546e89785e0512cf24ab88b6564bc Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 16 Oct 2023 18:03:22 -0700 Subject: [PATCH 5/5] rustdoc: add `check-pass` to ICE test with no expected output --- tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs b/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs index 9c0e404cf76..6e4709403a4 100644 --- a/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs +++ b/tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs @@ -1,3 +1,5 @@ +// check-pass + // Test that associated item impls on primitive types don't crash rustdoc // https://github.com/rust-lang/rust/issues/31808