From 0487237f1247d2395c50e52640ef547b88fd38be Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 27 Sep 2023 17:22:18 -0700 Subject: [PATCH] rustdoc: add URLs for test issues --- tests/rustdoc/anchor-id-trait-method-15169.rs | 1 + tests/rustdoc/assoc-type-bindings-20646.rs | 1 + tests/rustdoc/deref-methods-19190-foreign-type.rs | 2 ++ tests/rustdoc/deref-methods-19190-inline.rs | 1 + tests/rustdoc/deref-methods-19190.rs | 1 + tests/rustdoc/doc-hidden-method-13698.rs | 1 + tests/rustdoc/doc-test-attr-18199.rs | 1 + tests/rustdoc/document-hidden-items-15347.rs | 1 + tests/rustdoc/highlight-invalid-rust-12834.rs | 1 + tests/rustdoc/ice-type-error-19181.rs | 1 + tests/rustdoc/impl-ref-20175.rs | 2 ++ tests/rustdoc/infinite-redirection-16265-1.rs | 1 + tests/rustdoc/infinite-redirection-16265-2.rs | 1 + tests/rustdoc/inline-assoc-type-20727-bindings.rs | 1 + tests/rustdoc/inline-assoc-type-20727-bounds-deref.rs | 1 + tests/rustdoc/inline-assoc-type-20727-bounds-index.rs | 1 + tests/rustdoc/inline-assoc-type-20727-bounds.rs | 1 + tests/rustdoc/macro-ice-16019.rs | 2 ++ tests/rustdoc/method-link-foreign-trait-impl-17476.rs | 1 + tests/rustdoc/primitive-raw-pointer-dox-15318-3.rs | 1 + tests/rustdoc/primitive-raw-pointer-link-15318.rs | 1 + tests/rustdoc/primitive-raw-pointer-link-no-inlined-15318-2.rs | 1 + 22 files changed, 25 insertions(+) diff --git a/tests/rustdoc/anchor-id-trait-method-15169.rs b/tests/rustdoc/anchor-id-trait-method-15169.rs index 6408f11e5c11c..26bb59c1875fd 100644 --- a/tests/rustdoc/anchor-id-trait-method-15169.rs +++ b/tests/rustdoc/anchor-id-trait-method-15169.rs @@ -1,5 +1,6 @@ // @has issue_15169/struct.Foo.html '//*[@id="method.eq"]' 'fn eq' +// https://github.com/rust-lang/rust/issues/15169 #![crate_name="issue_15169"] #[derive(PartialEq)] diff --git a/tests/rustdoc/assoc-type-bindings-20646.rs b/tests/rustdoc/assoc-type-bindings-20646.rs index e8447c61077a7..375b5b5b23ea5 100644 --- a/tests/rustdoc/assoc-type-bindings-20646.rs +++ b/tests/rustdoc/assoc-type-bindings-20646.rs @@ -1,6 +1,7 @@ // aux-build:issue-20646.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/20646 #![crate_name="issue_20646"] #![feature(associated_types)] diff --git a/tests/rustdoc/deref-methods-19190-foreign-type.rs b/tests/rustdoc/deref-methods-19190-foreign-type.rs index 17562c356e93d..c8326992115c7 100644 --- a/tests/rustdoc/deref-methods-19190-foreign-type.rs +++ b/tests/rustdoc/deref-methods-19190-foreign-type.rs @@ -1,3 +1,5 @@ +// https://github.com/rust-lang/rust/issues/19190 + #![crate_name="issue_19190_2"] use std::ops::Deref; diff --git a/tests/rustdoc/deref-methods-19190-inline.rs b/tests/rustdoc/deref-methods-19190-inline.rs index 4aeb2ee08912c..619b268d68b39 100644 --- a/tests/rustdoc/deref-methods-19190-inline.rs +++ b/tests/rustdoc/deref-methods-19190-inline.rs @@ -1,6 +1,7 @@ // aux-build:issue-19190-3.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/19190 #![crate_name="issue_19190_3"] extern crate issue_19190_3; diff --git a/tests/rustdoc/deref-methods-19190.rs b/tests/rustdoc/deref-methods-19190.rs index 9a68a2dec5245..4c274d82ff785 100644 --- a/tests/rustdoc/deref-methods-19190.rs +++ b/tests/rustdoc/deref-methods-19190.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/19190 #![crate_name="issue_19190"] use std::ops::Deref; diff --git a/tests/rustdoc/doc-hidden-method-13698.rs b/tests/rustdoc/doc-hidden-method-13698.rs index ead005301a97d..f1bd6e73babdd 100644 --- a/tests/rustdoc/doc-hidden-method-13698.rs +++ b/tests/rustdoc/doc-hidden-method-13698.rs @@ -1,6 +1,7 @@ // aux-build:issue-13698.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/13698 #![crate_name="issue_13698"] extern crate issue_13698; diff --git a/tests/rustdoc/doc-test-attr-18199.rs b/tests/rustdoc/doc-test-attr-18199.rs index 9cc58b162f37e..c9d2235321c87 100644 --- a/tests/rustdoc/doc-test-attr-18199.rs +++ b/tests/rustdoc/doc-test-attr-18199.rs @@ -1,4 +1,5 @@ // compile-flags:--test +// https://github.com/rust-lang/rust/issues/18199 #![doc(test(attr(feature(staged_api))))] diff --git a/tests/rustdoc/document-hidden-items-15347.rs b/tests/rustdoc/document-hidden-items-15347.rs index 8ceda315cc4d3..d8a760e566602 100644 --- a/tests/rustdoc/document-hidden-items-15347.rs +++ b/tests/rustdoc/document-hidden-items-15347.rs @@ -1,4 +1,5 @@ // compile-flags: -Z unstable-options --document-hidden-items +// https://github.com/rust-lang/rust/issues/15347 #![crate_name="issue_15347"] diff --git a/tests/rustdoc/highlight-invalid-rust-12834.rs b/tests/rustdoc/highlight-invalid-rust-12834.rs index 7bc5f682c5abf..f8acc5002648f 100644 --- a/tests/rustdoc/highlight-invalid-rust-12834.rs +++ b/tests/rustdoc/highlight-invalid-rust-12834.rs @@ -1,5 +1,6 @@ // Tests that failing to syntax highlight a rust code-block doesn't cause // rustdoc to fail, while still rendering the code-block (without highlighting). +// https://github.com/rust-lang/rust/issues/12834 #![crate_name="issue_12834"] #![allow(rustdoc::invalid_rust_codeblocks)] diff --git a/tests/rustdoc/ice-type-error-19181.rs b/tests/rustdoc/ice-type-error-19181.rs index 3dea152fc6ecb..3ced613666406 100644 --- a/tests/rustdoc/ice-type-error-19181.rs +++ b/tests/rustdoc/ice-type-error-19181.rs @@ -1,4 +1,5 @@ // compile-flags:--test +// https://github.com/rust-lang/rust/issues/19181 // rustdoc should not panic when target crate has compilation errors diff --git a/tests/rustdoc/impl-ref-20175.rs b/tests/rustdoc/impl-ref-20175.rs index 5b38ab91af9af..a92db2d0a665b 100644 --- a/tests/rustdoc/impl-ref-20175.rs +++ b/tests/rustdoc/impl-ref-20175.rs @@ -1,3 +1,5 @@ +// https://github.com/rust-lang/rust/issues/20175 + #![crate_name="issue_20175"] pub trait Foo { diff --git a/tests/rustdoc/infinite-redirection-16265-1.rs b/tests/rustdoc/infinite-redirection-16265-1.rs index e13822127b47d..7d72469bd72c7 100644 --- a/tests/rustdoc/infinite-redirection-16265-1.rs +++ b/tests/rustdoc/infinite-redirection-16265-1.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/16265 #![crate_name="issue_16265_1"] pub struct Foo; diff --git a/tests/rustdoc/infinite-redirection-16265-2.rs b/tests/rustdoc/infinite-redirection-16265-2.rs index adb5a67ce6c8b..7a4791c5fd487 100644 --- a/tests/rustdoc/infinite-redirection-16265-2.rs +++ b/tests/rustdoc/infinite-redirection-16265-2.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/16265 #![crate_name="issue_16265_2"] // @hasraw issue_16265_2/index.html 'source' diff --git a/tests/rustdoc/inline-assoc-type-20727-bindings.rs b/tests/rustdoc/inline-assoc-type-20727-bindings.rs index 869ccac8d0944..e59dec29d030a 100644 --- a/tests/rustdoc/inline-assoc-type-20727-bindings.rs +++ b/tests/rustdoc/inline-assoc-type-20727-bindings.rs @@ -1,6 +1,7 @@ // aux-build:issue-20727.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/20727 #![crate_name="issue_20727_2"] extern crate issue_20727; diff --git a/tests/rustdoc/inline-assoc-type-20727-bounds-deref.rs b/tests/rustdoc/inline-assoc-type-20727-bounds-deref.rs index f7ba175c4b955..005ee3e329416 100644 --- a/tests/rustdoc/inline-assoc-type-20727-bounds-deref.rs +++ b/tests/rustdoc/inline-assoc-type-20727-bounds-deref.rs @@ -1,6 +1,7 @@ // aux-build:issue-20727.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/20727 #![crate_name="issue_20727_3"] extern crate issue_20727; diff --git a/tests/rustdoc/inline-assoc-type-20727-bounds-index.rs b/tests/rustdoc/inline-assoc-type-20727-bounds-index.rs index b3df0bb9fc28f..1a3f4cd20c1e2 100644 --- a/tests/rustdoc/inline-assoc-type-20727-bounds-index.rs +++ b/tests/rustdoc/inline-assoc-type-20727-bounds-index.rs @@ -1,6 +1,7 @@ // aux-build:issue-20727.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/20727 #![crate_name="issue_20727_4"] extern crate issue_20727; diff --git a/tests/rustdoc/inline-assoc-type-20727-bounds.rs b/tests/rustdoc/inline-assoc-type-20727-bounds.rs index ac7485233cc6b..7cbc8d38107db 100644 --- a/tests/rustdoc/inline-assoc-type-20727-bounds.rs +++ b/tests/rustdoc/inline-assoc-type-20727-bounds.rs @@ -1,6 +1,7 @@ // aux-build:issue-20727.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/20727 #![crate_name="issue_20727"] extern crate issue_20727; diff --git a/tests/rustdoc/macro-ice-16019.rs b/tests/rustdoc/macro-ice-16019.rs index 239d92378d9bb..d0f82e0a314ce 100644 --- a/tests/rustdoc/macro-ice-16019.rs +++ b/tests/rustdoc/macro-ice-16019.rs @@ -1,3 +1,5 @@ +// https://github.com/rust-lang/rust/issues/16019 + macro_rules! define_struct { ($rounds:expr) => ( struct Struct { diff --git a/tests/rustdoc/method-link-foreign-trait-impl-17476.rs b/tests/rustdoc/method-link-foreign-trait-impl-17476.rs index de17af50ccd0f..e52ab6f38c2a5 100644 --- a/tests/rustdoc/method-link-foreign-trait-impl-17476.rs +++ b/tests/rustdoc/method-link-foreign-trait-impl-17476.rs @@ -1,5 +1,6 @@ // aux-build:issue-17476.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/17476 #![crate_name="issue_17476"] diff --git a/tests/rustdoc/primitive-raw-pointer-dox-15318-3.rs b/tests/rustdoc/primitive-raw-pointer-dox-15318-3.rs index 6395edd897d4c..80c559756870c 100644 --- a/tests/rustdoc/primitive-raw-pointer-dox-15318-3.rs +++ b/tests/rustdoc/primitive-raw-pointer-dox-15318-3.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/15318 #![crate_name="issue_15318_3"] #![feature(rustc_attrs)] diff --git a/tests/rustdoc/primitive-raw-pointer-link-15318.rs b/tests/rustdoc/primitive-raw-pointer-link-15318.rs index dbefc9c3b9291..77f25ff4cff08 100644 --- a/tests/rustdoc/primitive-raw-pointer-link-15318.rs +++ b/tests/rustdoc/primitive-raw-pointer-link-15318.rs @@ -1,5 +1,6 @@ // aux-build:issue-15318.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/15318 #![crate_name="issue_15318"] #![no_std] diff --git a/tests/rustdoc/primitive-raw-pointer-link-no-inlined-15318-2.rs b/tests/rustdoc/primitive-raw-pointer-link-no-inlined-15318-2.rs index 5c31a0694a5a5..1b35bb185ed48 100644 --- a/tests/rustdoc/primitive-raw-pointer-link-no-inlined-15318-2.rs +++ b/tests/rustdoc/primitive-raw-pointer-link-no-inlined-15318-2.rs @@ -1,5 +1,6 @@ // aux-build:issue-15318.rs // ignore-cross-compile +// https://github.com/rust-lang/rust/issues/15318 #![crate_name="issue_15318_2"] #![no_std]