From a198aff4a4b1b83476497438cfc4771fb19c7bc4 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 4 Oct 2023 12:08:47 -0700 Subject: [PATCH 1/3] Add `crate_name` to test so that it can be renamed --- tests/rustdoc/issue-21092.rs | 2 ++ tests/rustdoc/issue-21474.rs | 2 ++ tests/rustdoc/issue-21801.rs | 2 ++ tests/rustdoc/issue-22025.rs | 2 ++ tests/rustdoc/issue-22038.rs | 2 ++ tests/rustdoc/issue-23106.rs | 2 ++ tests/rustdoc/issue-23207.rs | 2 ++ tests/rustdoc/issue-23511.rs | 2 ++ tests/rustdoc/issue-23744.rs | 2 ++ tests/rustdoc/issue-23812.rs | 2 ++ tests/rustdoc/issue-25001.rs | 2 ++ tests/rustdoc/issue-25944.rs | 2 ++ tests/rustdoc/issue-26606.rs | 4 +++- tests/rustdoc/issue-26995.rs | 2 ++ tests/rustdoc/issue-27104.rs | 2 ++ tests/rustdoc/issue-27362.rs | 2 ++ tests/rustdoc/issue-27759.rs | 2 ++ tests/rustdoc/issue-27862.rs | 2 ++ tests/rustdoc/issue-28478.rs | 2 ++ tests/rustdoc/issue-28927.rs | 2 ++ 20 files changed, 41 insertions(+), 1 deletion(-) diff --git a/tests/rustdoc/issue-21092.rs b/tests/rustdoc/issue-21092.rs index b054145a4831a..214be755e94f5 100644 --- a/tests/rustdoc/issue-21092.rs +++ b/tests/rustdoc/issue-21092.rs @@ -1,6 +1,8 @@ // aux-build:issue-21092.rs // ignore-cross-compile +#![crate_name="issue_21092"] + extern crate issue_21092; // @has issue_21092/struct.Bar.html diff --git a/tests/rustdoc/issue-21474.rs b/tests/rustdoc/issue-21474.rs index 5de26abace6fa..bedf89236aae2 100644 --- a/tests/rustdoc/issue-21474.rs +++ b/tests/rustdoc/issue-21474.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_21474"] + pub use inner::*; mod inner { diff --git a/tests/rustdoc/issue-21801.rs b/tests/rustdoc/issue-21801.rs index 29d2ec64c206d..131bf38c3cb75 100644 --- a/tests/rustdoc/issue-21801.rs +++ b/tests/rustdoc/issue-21801.rs @@ -1,6 +1,8 @@ // aux-build:issue-21801.rs // ignore-cross-compile +#![crate_name="issue_21801"] + extern crate issue_21801; // @has issue_21801/struct.Foo.html diff --git a/tests/rustdoc/issue-22025.rs b/tests/rustdoc/issue-22025.rs index a721a15f463b4..d01c1f5c427b9 100644 --- a/tests/rustdoc/issue-22025.rs +++ b/tests/rustdoc/issue-22025.rs @@ -1,6 +1,8 @@ // aux-build:issue-22025.rs // ignore-cross-compile +#![crate_name="issue_22025"] + extern crate issue_22025; pub use issue_22025::foo::{Foo, Bar}; diff --git a/tests/rustdoc/issue-22038.rs b/tests/rustdoc/issue-22038.rs index de6cc78707c6d..52c9280f82676 100644 --- a/tests/rustdoc/issue-22038.rs +++ b/tests/rustdoc/issue-22038.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_22038"] + extern "C" { // @has issue_22038/fn.foo1.html \ // '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn foo1()' diff --git a/tests/rustdoc/issue-23106.rs b/tests/rustdoc/issue-23106.rs index 8cda2fc33805d..27c0bd0913045 100644 --- a/tests/rustdoc/issue-23106.rs +++ b/tests/rustdoc/issue-23106.rs @@ -1,5 +1,7 @@ // compile-flags:--test +#![crate_name="issue_23106"] + /// ``` /// # /// ``` diff --git a/tests/rustdoc/issue-23207.rs b/tests/rustdoc/issue-23207.rs index 1a4b849ee8209..24cba4ad2942b 100644 --- a/tests/rustdoc/issue-23207.rs +++ b/tests/rustdoc/issue-23207.rs @@ -2,6 +2,8 @@ // aux-build:issue-23207-2.rs // ignore-cross-compile +#![crate_name="issue_23207"] + extern crate issue_23207_2; // @has issue_23207/fmt/index.html diff --git a/tests/rustdoc/issue-23511.rs b/tests/rustdoc/issue-23511.rs index 21d02842431d0..d6b931850e2b5 100644 --- a/tests/rustdoc/issue-23511.rs +++ b/tests/rustdoc/issue-23511.rs @@ -2,6 +2,8 @@ #![feature(rustdoc_internals)] #![no_std] +#![crate_name="issue_23511"] + pub mod str { #![rustc_doc_primitive = "str"] diff --git a/tests/rustdoc/issue-23744.rs b/tests/rustdoc/issue-23744.rs index 642817396b2a0..45cc1bf3f4142 100644 --- a/tests/rustdoc/issue-23744.rs +++ b/tests/rustdoc/issue-23744.rs @@ -1,5 +1,7 @@ // compile-flags:--test +#![crate_name="issue_23744"] + /// Example of rustdoc incorrectly parsing ```rust,should_panic. /// /// ```should_panic diff --git a/tests/rustdoc/issue-23812.rs b/tests/rustdoc/issue-23812.rs index 08fd1833bcef3..43b422fc9928e 100644 --- a/tests/rustdoc/issue-23812.rs +++ b/tests/rustdoc/issue-23812.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_23812"] + macro_rules! doc { (#[$outer:meta] mod $i:ident { #![$inner:meta] }) => ( diff --git a/tests/rustdoc/issue-25001.rs b/tests/rustdoc/issue-25001.rs index 268fae59496ac..d20268f176cec 100644 --- a/tests/rustdoc/issue-25001.rs +++ b/tests/rustdoc/issue-25001.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_25001"] + // @has issue_25001/struct.Foo.html pub struct Foo(T); diff --git a/tests/rustdoc/issue-25944.rs b/tests/rustdoc/issue-25944.rs index 49625294bbea0..17f3431593024 100644 --- a/tests/rustdoc/issue-25944.rs +++ b/tests/rustdoc/issue-25944.rs @@ -1,5 +1,7 @@ // compile-flags:--test +#![crate_name="issue_25944"] + /// ``` /// let a = r#" /// foo diff --git a/tests/rustdoc/issue-26606.rs b/tests/rustdoc/issue-26606.rs index d5cb2c710cde8..1b62b32a4a705 100644 --- a/tests/rustdoc/issue-26606.rs +++ b/tests/rustdoc/issue-26606.rs @@ -2,10 +2,12 @@ // ignore-cross-compile // build-aux-docs +#![crate_name="issue_26606"] + // @has issue_26606_macro/macro.make_item.html #[macro_use] extern crate issue_26606_macro; // @has issue_26606/constant.FOO.html -// @has - '//a[@href="../src/issue_26606/issue-26606.rs.html#11"]' 'source' +// @has - '//a[@href="../src/issue_26606/issue-26606.rs.html#13"]' 'source' make_item!(FOO); diff --git a/tests/rustdoc/issue-26995.rs b/tests/rustdoc/issue-26995.rs index fedc9f5174920..e2cad215d6775 100644 --- a/tests/rustdoc/issue-26995.rs +++ b/tests/rustdoc/issue-26995.rs @@ -1,6 +1,8 @@ // ignore-windows // compile-flags: --no-defaults +#![crate_name="issue_26995"] + // @has src/issue_26995/dev/null.html // @has issue_26995/null/index.html '//a/@href' '../../src/issue_26995/dev/null.html' #[path="/dev/null"] diff --git a/tests/rustdoc/issue-27104.rs b/tests/rustdoc/issue-27104.rs index 9f2fd9071144f..220df629686ef 100644 --- a/tests/rustdoc/issue-27104.rs +++ b/tests/rustdoc/issue-27104.rs @@ -2,6 +2,8 @@ // aux-build:empty.rs // ignore-cross-compile +#![crate_name="issue_27104"] + // @has issue_27104/index.html // @!hasraw - 'extern crate std' // @!hasraw - 'use std::prelude::' diff --git a/tests/rustdoc/issue-27362.rs b/tests/rustdoc/issue-27362.rs index 097e4e3b03d9d..d2e8879dd25f5 100644 --- a/tests/rustdoc/issue-27362.rs +++ b/tests/rustdoc/issue-27362.rs @@ -1,6 +1,8 @@ // aux-build:issue-27362-aux.rs // ignore-cross-compile +#![crate_name="issue_27362"] + extern crate issue_27362_aux; pub use issue_27362_aux::*; diff --git a/tests/rustdoc/issue-27759.rs b/tests/rustdoc/issue-27759.rs index 65e0f7cb87b0c..28ea515d81f44 100644 --- a/tests/rustdoc/issue-27759.rs +++ b/tests/rustdoc/issue-27759.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_27759"] + #![feature(staged_api)] #![doc(issue_tracker_base_url = "http://issue_url/")] diff --git a/tests/rustdoc/issue-27862.rs b/tests/rustdoc/issue-27862.rs index 77522f1be2307..19adcb9450802 100644 --- a/tests/rustdoc/issue-27862.rs +++ b/tests/rustdoc/issue-27862.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_27862"] + /// Tests | Table /// ------|------------- /// t = b | id = \|x\| x diff --git a/tests/rustdoc/issue-28478.rs b/tests/rustdoc/issue-28478.rs index 497276e6826a1..60ba9090f71db 100644 --- a/tests/rustdoc/issue-28478.rs +++ b/tests/rustdoc/issue-28478.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_28478"] + #![feature(associated_type_defaults)] // @has issue_28478/trait.Bar.html diff --git a/tests/rustdoc/issue-28927.rs b/tests/rustdoc/issue-28927.rs index 38a520850b6dd..ca07add2ba8da 100644 --- a/tests/rustdoc/issue-28927.rs +++ b/tests/rustdoc/issue-28927.rs @@ -2,5 +2,7 @@ // aux-build:issue-28927-1.rs // ignore-cross-compile +#![crate_name="issue_28927"] + pub extern crate issue_28927_1 as inner1; pub use inner1 as foo; From 9266270ef55e3138de0c58b9cd4c0949aa2eb04c Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 4 Oct 2023 12:58:06 -0700 Subject: [PATCH 2/3] Rename issue-\d+.rs tests to have meaningful names --- ...{issue-25001.rs => anchor-id-duplicate-method-name-25001.rs} | 0 .../{issue-28478.rs => anchor-id-trait-tymethod-28478.rs} | 0 .../{issue-21474.rs => deduplicate-glob-import-impl-21474.rs} | 0 .../rustdoc/{issue-22025.rs => deduplicate-trait-impl-22025.rs} | 0 .../{issue-23106.rs => doctest-hide-empty-line-23106.rs} | 0 .../{issue-23744.rs => doctest-markdown-inline-parse-23744.rs} | 0 ...ssue-25944.rs => doctest-multi-line-string-literal-25944.rs} | 0 tests/rustdoc/{issue-22038.rs => extern-fn-22038.rs} | 0 .../{issue-28927.rs => ice-reexport-crate-root-28927.rs} | 0 tests/rustdoc/{issue-21092.rs => impl-assoc-type-21092.rs} | 0 tests/rustdoc/{ => inline_cross}/auxiliary/issue-21801.rs | 0 tests/rustdoc/{ => inline_cross}/auxiliary/issue-23207-1.rs | 0 tests/rustdoc/{ => inline_cross}/auxiliary/issue-23207-2.rs | 0 tests/rustdoc/{ => inline_cross}/auxiliary/issue-27362-aux.rs | 0 .../rustdoc/{issue-27362.rs => inline_cross/const-fn-27362.rs} | 0 .../deduplicate-inlined-items-23207.rs} | 0 .../sugar-closure-crate-21801.rs} | 0 tests/rustdoc/{issue-23812.rs => macro-doc-comment-23812.rs} | 0 .../{issue-27862.rs => markdown-table-escape-pipe-27862.rs} | 0 ...23511.rs => search-index-primitive-inherent-method-23511.rs} | 0 .../{issue-26606.rs => src-link-external-macro-26606.rs} | 2 +- .../rustdoc/{issue-26995.rs => src-mod-path-absolute-26995.rs} | 0 .../{issue-27759.rs => staged-api-feature-issue-27759.rs} | 0 .../{issue-27104.rs => strip-priv-imports-pass-27104.rs} | 0 24 files changed, 1 insertion(+), 1 deletion(-) rename tests/rustdoc/{issue-25001.rs => anchor-id-duplicate-method-name-25001.rs} (100%) rename tests/rustdoc/{issue-28478.rs => anchor-id-trait-tymethod-28478.rs} (100%) rename tests/rustdoc/{issue-21474.rs => deduplicate-glob-import-impl-21474.rs} (100%) rename tests/rustdoc/{issue-22025.rs => deduplicate-trait-impl-22025.rs} (100%) rename tests/rustdoc/{issue-23106.rs => doctest-hide-empty-line-23106.rs} (100%) rename tests/rustdoc/{issue-23744.rs => doctest-markdown-inline-parse-23744.rs} (100%) rename tests/rustdoc/{issue-25944.rs => doctest-multi-line-string-literal-25944.rs} (100%) rename tests/rustdoc/{issue-22038.rs => extern-fn-22038.rs} (100%) rename tests/rustdoc/{issue-28927.rs => ice-reexport-crate-root-28927.rs} (100%) rename tests/rustdoc/{issue-21092.rs => impl-assoc-type-21092.rs} (100%) rename tests/rustdoc/{ => inline_cross}/auxiliary/issue-21801.rs (100%) rename tests/rustdoc/{ => inline_cross}/auxiliary/issue-23207-1.rs (100%) rename tests/rustdoc/{ => inline_cross}/auxiliary/issue-23207-2.rs (100%) rename tests/rustdoc/{ => inline_cross}/auxiliary/issue-27362-aux.rs (100%) rename tests/rustdoc/{issue-27362.rs => inline_cross/const-fn-27362.rs} (100%) rename tests/rustdoc/{issue-23207.rs => inline_cross/deduplicate-inlined-items-23207.rs} (100%) rename tests/rustdoc/{issue-21801.rs => inline_cross/sugar-closure-crate-21801.rs} (100%) rename tests/rustdoc/{issue-23812.rs => macro-doc-comment-23812.rs} (100%) rename tests/rustdoc/{issue-27862.rs => markdown-table-escape-pipe-27862.rs} (100%) rename tests/rustdoc/{issue-23511.rs => search-index-primitive-inherent-method-23511.rs} (100%) rename tests/rustdoc/{issue-26606.rs => src-link-external-macro-26606.rs} (73%) rename tests/rustdoc/{issue-26995.rs => src-mod-path-absolute-26995.rs} (100%) rename tests/rustdoc/{issue-27759.rs => staged-api-feature-issue-27759.rs} (100%) rename tests/rustdoc/{issue-27104.rs => strip-priv-imports-pass-27104.rs} (100%) diff --git a/tests/rustdoc/issue-25001.rs b/tests/rustdoc/anchor-id-duplicate-method-name-25001.rs similarity index 100% rename from tests/rustdoc/issue-25001.rs rename to tests/rustdoc/anchor-id-duplicate-method-name-25001.rs diff --git a/tests/rustdoc/issue-28478.rs b/tests/rustdoc/anchor-id-trait-tymethod-28478.rs similarity index 100% rename from tests/rustdoc/issue-28478.rs rename to tests/rustdoc/anchor-id-trait-tymethod-28478.rs diff --git a/tests/rustdoc/issue-21474.rs b/tests/rustdoc/deduplicate-glob-import-impl-21474.rs similarity index 100% rename from tests/rustdoc/issue-21474.rs rename to tests/rustdoc/deduplicate-glob-import-impl-21474.rs diff --git a/tests/rustdoc/issue-22025.rs b/tests/rustdoc/deduplicate-trait-impl-22025.rs similarity index 100% rename from tests/rustdoc/issue-22025.rs rename to tests/rustdoc/deduplicate-trait-impl-22025.rs diff --git a/tests/rustdoc/issue-23106.rs b/tests/rustdoc/doctest-hide-empty-line-23106.rs similarity index 100% rename from tests/rustdoc/issue-23106.rs rename to tests/rustdoc/doctest-hide-empty-line-23106.rs diff --git a/tests/rustdoc/issue-23744.rs b/tests/rustdoc/doctest-markdown-inline-parse-23744.rs similarity index 100% rename from tests/rustdoc/issue-23744.rs rename to tests/rustdoc/doctest-markdown-inline-parse-23744.rs diff --git a/tests/rustdoc/issue-25944.rs b/tests/rustdoc/doctest-multi-line-string-literal-25944.rs similarity index 100% rename from tests/rustdoc/issue-25944.rs rename to tests/rustdoc/doctest-multi-line-string-literal-25944.rs diff --git a/tests/rustdoc/issue-22038.rs b/tests/rustdoc/extern-fn-22038.rs similarity index 100% rename from tests/rustdoc/issue-22038.rs rename to tests/rustdoc/extern-fn-22038.rs diff --git a/tests/rustdoc/issue-28927.rs b/tests/rustdoc/ice-reexport-crate-root-28927.rs similarity index 100% rename from tests/rustdoc/issue-28927.rs rename to tests/rustdoc/ice-reexport-crate-root-28927.rs diff --git a/tests/rustdoc/issue-21092.rs b/tests/rustdoc/impl-assoc-type-21092.rs similarity index 100% rename from tests/rustdoc/issue-21092.rs rename to tests/rustdoc/impl-assoc-type-21092.rs diff --git a/tests/rustdoc/auxiliary/issue-21801.rs b/tests/rustdoc/inline_cross/auxiliary/issue-21801.rs similarity index 100% rename from tests/rustdoc/auxiliary/issue-21801.rs rename to tests/rustdoc/inline_cross/auxiliary/issue-21801.rs diff --git a/tests/rustdoc/auxiliary/issue-23207-1.rs b/tests/rustdoc/inline_cross/auxiliary/issue-23207-1.rs similarity index 100% rename from tests/rustdoc/auxiliary/issue-23207-1.rs rename to tests/rustdoc/inline_cross/auxiliary/issue-23207-1.rs diff --git a/tests/rustdoc/auxiliary/issue-23207-2.rs b/tests/rustdoc/inline_cross/auxiliary/issue-23207-2.rs similarity index 100% rename from tests/rustdoc/auxiliary/issue-23207-2.rs rename to tests/rustdoc/inline_cross/auxiliary/issue-23207-2.rs diff --git a/tests/rustdoc/auxiliary/issue-27362-aux.rs b/tests/rustdoc/inline_cross/auxiliary/issue-27362-aux.rs similarity index 100% rename from tests/rustdoc/auxiliary/issue-27362-aux.rs rename to tests/rustdoc/inline_cross/auxiliary/issue-27362-aux.rs diff --git a/tests/rustdoc/issue-27362.rs b/tests/rustdoc/inline_cross/const-fn-27362.rs similarity index 100% rename from tests/rustdoc/issue-27362.rs rename to tests/rustdoc/inline_cross/const-fn-27362.rs diff --git a/tests/rustdoc/issue-23207.rs b/tests/rustdoc/inline_cross/deduplicate-inlined-items-23207.rs similarity index 100% rename from tests/rustdoc/issue-23207.rs rename to tests/rustdoc/inline_cross/deduplicate-inlined-items-23207.rs diff --git a/tests/rustdoc/issue-21801.rs b/tests/rustdoc/inline_cross/sugar-closure-crate-21801.rs similarity index 100% rename from tests/rustdoc/issue-21801.rs rename to tests/rustdoc/inline_cross/sugar-closure-crate-21801.rs diff --git a/tests/rustdoc/issue-23812.rs b/tests/rustdoc/macro-doc-comment-23812.rs similarity index 100% rename from tests/rustdoc/issue-23812.rs rename to tests/rustdoc/macro-doc-comment-23812.rs diff --git a/tests/rustdoc/issue-27862.rs b/tests/rustdoc/markdown-table-escape-pipe-27862.rs similarity index 100% rename from tests/rustdoc/issue-27862.rs rename to tests/rustdoc/markdown-table-escape-pipe-27862.rs diff --git a/tests/rustdoc/issue-23511.rs b/tests/rustdoc/search-index-primitive-inherent-method-23511.rs similarity index 100% rename from tests/rustdoc/issue-23511.rs rename to tests/rustdoc/search-index-primitive-inherent-method-23511.rs diff --git a/tests/rustdoc/issue-26606.rs b/tests/rustdoc/src-link-external-macro-26606.rs similarity index 73% rename from tests/rustdoc/issue-26606.rs rename to tests/rustdoc/src-link-external-macro-26606.rs index 1b62b32a4a705..4cd735b38712f 100644 --- a/tests/rustdoc/issue-26606.rs +++ b/tests/rustdoc/src-link-external-macro-26606.rs @@ -9,5 +9,5 @@ extern crate issue_26606_macro; // @has issue_26606/constant.FOO.html -// @has - '//a[@href="../src/issue_26606/issue-26606.rs.html#13"]' 'source' +// @has - '//a[@href="../src/issue_26606/src-link-external-macro-26606.rs.html#13"]' 'source' make_item!(FOO); diff --git a/tests/rustdoc/issue-26995.rs b/tests/rustdoc/src-mod-path-absolute-26995.rs similarity index 100% rename from tests/rustdoc/issue-26995.rs rename to tests/rustdoc/src-mod-path-absolute-26995.rs diff --git a/tests/rustdoc/issue-27759.rs b/tests/rustdoc/staged-api-feature-issue-27759.rs similarity index 100% rename from tests/rustdoc/issue-27759.rs rename to tests/rustdoc/staged-api-feature-issue-27759.rs diff --git a/tests/rustdoc/issue-27104.rs b/tests/rustdoc/strip-priv-imports-pass-27104.rs similarity index 100% rename from tests/rustdoc/issue-27104.rs rename to tests/rustdoc/strip-priv-imports-pass-27104.rs From a46ccd8d3f4813d6f0d3422040898f41eaae0e8d Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 4 Oct 2023 13:04:45 -0700 Subject: [PATCH 3/3] Add URL to test case issues --- tests/rustdoc/anchor-id-duplicate-method-name-25001.rs | 1 + tests/rustdoc/anchor-id-trait-tymethod-28478.rs | 1 + tests/rustdoc/deduplicate-glob-import-impl-21474.rs | 1 + tests/rustdoc/deduplicate-trait-impl-22025.rs | 1 + tests/rustdoc/doctest-hide-empty-line-23106.rs | 1 + tests/rustdoc/doctest-markdown-inline-parse-23744.rs | 1 + tests/rustdoc/doctest-multi-line-string-literal-25944.rs | 1 + tests/rustdoc/extern-fn-22038.rs | 1 + tests/rustdoc/ice-reexport-crate-root-28927.rs | 1 + tests/rustdoc/impl-assoc-type-21092.rs | 1 + tests/rustdoc/inline_cross/const-fn-27362.rs | 1 + tests/rustdoc/inline_cross/deduplicate-inlined-items-23207.rs | 1 + tests/rustdoc/inline_cross/sugar-closure-crate-21801.rs | 1 + tests/rustdoc/macro-doc-comment-23812.rs | 1 + tests/rustdoc/markdown-table-escape-pipe-27862.rs | 1 + tests/rustdoc/search-index-primitive-inherent-method-23511.rs | 1 + tests/rustdoc/src-link-external-macro-26606.rs | 3 ++- tests/rustdoc/src-mod-path-absolute-26995.rs | 1 + tests/rustdoc/staged-api-feature-issue-27759.rs | 1 + tests/rustdoc/strip-priv-imports-pass-27104.rs | 1 + 20 files changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/rustdoc/anchor-id-duplicate-method-name-25001.rs b/tests/rustdoc/anchor-id-duplicate-method-name-25001.rs index d20268f176cec..ffb0765d3c3f6 100644 --- a/tests/rustdoc/anchor-id-duplicate-method-name-25001.rs +++ b/tests/rustdoc/anchor-id-duplicate-method-name-25001.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/25001 #![crate_name="issue_25001"] // @has issue_25001/struct.Foo.html diff --git a/tests/rustdoc/anchor-id-trait-tymethod-28478.rs b/tests/rustdoc/anchor-id-trait-tymethod-28478.rs index 60ba9090f71db..5685040dc1e1b 100644 --- a/tests/rustdoc/anchor-id-trait-tymethod-28478.rs +++ b/tests/rustdoc/anchor-id-trait-tymethod-28478.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/28478 #![crate_name="issue_28478"] #![feature(associated_type_defaults)] diff --git a/tests/rustdoc/deduplicate-glob-import-impl-21474.rs b/tests/rustdoc/deduplicate-glob-import-impl-21474.rs index bedf89236aae2..2a675b4b6ef54 100644 --- a/tests/rustdoc/deduplicate-glob-import-impl-21474.rs +++ b/tests/rustdoc/deduplicate-glob-import-impl-21474.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/21474 #![crate_name="issue_21474"] pub use inner::*; diff --git a/tests/rustdoc/deduplicate-trait-impl-22025.rs b/tests/rustdoc/deduplicate-trait-impl-22025.rs index d01c1f5c427b9..65a556e3a70f1 100644 --- a/tests/rustdoc/deduplicate-trait-impl-22025.rs +++ b/tests/rustdoc/deduplicate-trait-impl-22025.rs @@ -1,6 +1,7 @@ // aux-build:issue-22025.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/22025 #![crate_name="issue_22025"] extern crate issue_22025; diff --git a/tests/rustdoc/doctest-hide-empty-line-23106.rs b/tests/rustdoc/doctest-hide-empty-line-23106.rs index 27c0bd0913045..8e1e2cf098cf2 100644 --- a/tests/rustdoc/doctest-hide-empty-line-23106.rs +++ b/tests/rustdoc/doctest-hide-empty-line-23106.rs @@ -1,5 +1,6 @@ // compile-flags:--test +// https://github.com/rust-lang/rust/issues/23106 #![crate_name="issue_23106"] /// ``` diff --git a/tests/rustdoc/doctest-markdown-inline-parse-23744.rs b/tests/rustdoc/doctest-markdown-inline-parse-23744.rs index 45cc1bf3f4142..128e2daba071a 100644 --- a/tests/rustdoc/doctest-markdown-inline-parse-23744.rs +++ b/tests/rustdoc/doctest-markdown-inline-parse-23744.rs @@ -1,5 +1,6 @@ // compile-flags:--test +// https://github.com/rust-lang/rust/issues/23744 #![crate_name="issue_23744"] /// Example of rustdoc incorrectly parsing ```rust,should_panic. diff --git a/tests/rustdoc/doctest-multi-line-string-literal-25944.rs b/tests/rustdoc/doctest-multi-line-string-literal-25944.rs index 17f3431593024..eec796e4fbf29 100644 --- a/tests/rustdoc/doctest-multi-line-string-literal-25944.rs +++ b/tests/rustdoc/doctest-multi-line-string-literal-25944.rs @@ -1,5 +1,6 @@ // compile-flags:--test +// https://github.com/rust-lang/rust/issues/25944 #![crate_name="issue_25944"] /// ``` diff --git a/tests/rustdoc/extern-fn-22038.rs b/tests/rustdoc/extern-fn-22038.rs index 52c9280f82676..72d39c32a1c64 100644 --- a/tests/rustdoc/extern-fn-22038.rs +++ b/tests/rustdoc/extern-fn-22038.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/22038 #![crate_name="issue_22038"] extern "C" { diff --git a/tests/rustdoc/ice-reexport-crate-root-28927.rs b/tests/rustdoc/ice-reexport-crate-root-28927.rs index ca07add2ba8da..26debfc60e464 100644 --- a/tests/rustdoc/ice-reexport-crate-root-28927.rs +++ b/tests/rustdoc/ice-reexport-crate-root-28927.rs @@ -2,6 +2,7 @@ // aux-build:issue-28927-1.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/28927 #![crate_name="issue_28927"] pub extern crate issue_28927_1 as inner1; diff --git a/tests/rustdoc/impl-assoc-type-21092.rs b/tests/rustdoc/impl-assoc-type-21092.rs index 214be755e94f5..f01f098a92f5d 100644 --- a/tests/rustdoc/impl-assoc-type-21092.rs +++ b/tests/rustdoc/impl-assoc-type-21092.rs @@ -1,6 +1,7 @@ // aux-build:issue-21092.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/21092 #![crate_name="issue_21092"] extern crate issue_21092; diff --git a/tests/rustdoc/inline_cross/const-fn-27362.rs b/tests/rustdoc/inline_cross/const-fn-27362.rs index d2e8879dd25f5..39b904662e065 100644 --- a/tests/rustdoc/inline_cross/const-fn-27362.rs +++ b/tests/rustdoc/inline_cross/const-fn-27362.rs @@ -1,6 +1,7 @@ // aux-build:issue-27362-aux.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/27362 #![crate_name="issue_27362"] extern crate issue_27362_aux; diff --git a/tests/rustdoc/inline_cross/deduplicate-inlined-items-23207.rs b/tests/rustdoc/inline_cross/deduplicate-inlined-items-23207.rs index 24cba4ad2942b..4e9596db589e2 100644 --- a/tests/rustdoc/inline_cross/deduplicate-inlined-items-23207.rs +++ b/tests/rustdoc/inline_cross/deduplicate-inlined-items-23207.rs @@ -2,6 +2,7 @@ // aux-build:issue-23207-2.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/23207 #![crate_name="issue_23207"] extern crate issue_23207_2; diff --git a/tests/rustdoc/inline_cross/sugar-closure-crate-21801.rs b/tests/rustdoc/inline_cross/sugar-closure-crate-21801.rs index 131bf38c3cb75..bcbb2e9f4088e 100644 --- a/tests/rustdoc/inline_cross/sugar-closure-crate-21801.rs +++ b/tests/rustdoc/inline_cross/sugar-closure-crate-21801.rs @@ -1,6 +1,7 @@ // aux-build:issue-21801.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/21801 #![crate_name="issue_21801"] extern crate issue_21801; diff --git a/tests/rustdoc/macro-doc-comment-23812.rs b/tests/rustdoc/macro-doc-comment-23812.rs index 43b422fc9928e..57c18510b1e05 100644 --- a/tests/rustdoc/macro-doc-comment-23812.rs +++ b/tests/rustdoc/macro-doc-comment-23812.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/23812 #![crate_name="issue_23812"] macro_rules! doc { diff --git a/tests/rustdoc/markdown-table-escape-pipe-27862.rs b/tests/rustdoc/markdown-table-escape-pipe-27862.rs index 19adcb9450802..9af75d248884a 100644 --- a/tests/rustdoc/markdown-table-escape-pipe-27862.rs +++ b/tests/rustdoc/markdown-table-escape-pipe-27862.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/27862 #![crate_name="issue_27862"] /// Tests | Table diff --git a/tests/rustdoc/search-index-primitive-inherent-method-23511.rs b/tests/rustdoc/search-index-primitive-inherent-method-23511.rs index d6b931850e2b5..1d0fe27e19273 100644 --- a/tests/rustdoc/search-index-primitive-inherent-method-23511.rs +++ b/tests/rustdoc/search-index-primitive-inherent-method-23511.rs @@ -2,6 +2,7 @@ #![feature(rustdoc_internals)] #![no_std] +// https://github.com/rust-lang/rust/issues/23511 #![crate_name="issue_23511"] pub mod str { diff --git a/tests/rustdoc/src-link-external-macro-26606.rs b/tests/rustdoc/src-link-external-macro-26606.rs index 4cd735b38712f..de717a5273bb9 100644 --- a/tests/rustdoc/src-link-external-macro-26606.rs +++ b/tests/rustdoc/src-link-external-macro-26606.rs @@ -2,6 +2,7 @@ // ignore-cross-compile // build-aux-docs +// https://github.com/rust-lang/rust/issues/26606 #![crate_name="issue_26606"] // @has issue_26606_macro/macro.make_item.html @@ -9,5 +10,5 @@ extern crate issue_26606_macro; // @has issue_26606/constant.FOO.html -// @has - '//a[@href="../src/issue_26606/src-link-external-macro-26606.rs.html#13"]' 'source' +// @has - '//a[@href="../src/issue_26606/src-link-external-macro-26606.rs.html#14"]' 'source' make_item!(FOO); diff --git a/tests/rustdoc/src-mod-path-absolute-26995.rs b/tests/rustdoc/src-mod-path-absolute-26995.rs index e2cad215d6775..b67fd9b26db4b 100644 --- a/tests/rustdoc/src-mod-path-absolute-26995.rs +++ b/tests/rustdoc/src-mod-path-absolute-26995.rs @@ -1,6 +1,7 @@ // ignore-windows // compile-flags: --no-defaults +// https://github.com/rust-lang/rust/issues/26995 #![crate_name="issue_26995"] // @has src/issue_26995/dev/null.html diff --git a/tests/rustdoc/staged-api-feature-issue-27759.rs b/tests/rustdoc/staged-api-feature-issue-27759.rs index 28ea515d81f44..56a45a600da61 100644 --- a/tests/rustdoc/staged-api-feature-issue-27759.rs +++ b/tests/rustdoc/staged-api-feature-issue-27759.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/27759 #![crate_name="issue_27759"] #![feature(staged_api)] diff --git a/tests/rustdoc/strip-priv-imports-pass-27104.rs b/tests/rustdoc/strip-priv-imports-pass-27104.rs index 220df629686ef..e400a8f501181 100644 --- a/tests/rustdoc/strip-priv-imports-pass-27104.rs +++ b/tests/rustdoc/strip-priv-imports-pass-27104.rs @@ -2,6 +2,7 @@ // aux-build:empty.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/27104 #![crate_name="issue_27104"] // @has issue_27104/index.html