Skip to content

Commit

Permalink
Add URL to test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Oct 16, 2023
1 parent fd2f251 commit 312658c
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/rustdoc/blanket-impl-29503.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/29503
#![crate_name="issue_29503"]

use std::fmt;
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/const-rendering-macros-33302.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/doc-hidden-extern-trait-impl-29584.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/doc-hidden-trait-implementors-33069.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/33069
#![crate_name="issue_33069"]

pub trait Bar {}
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/doctest-cfg-feature-30252.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// compile-flags:--test --cfg feature="bar"

// https://github.com/rust-lang/rust/issues/30252
#![crate_name="issue_30252"]

/// ```rust
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/doctest-ignore-32556.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/32556
#![crate_name="issue_32556"]

/// Blah blah blah
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/duplicate-anchors-32890.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/32890
#![crate_name="issue_32890"]

// @has issue_32890/struct.Foo.html
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/duplicate-anchors-header-29449.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/29449
#![crate_name="issue_29449"]

// @has issue_29449/struct.Foo.html
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/hidden-extern-34025.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/34025
#![crate_name = "foo"]

// @!has 'foo/sys/index.html'
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/ice-assoc-const-for-primitive-31808.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/impl-type-parameter-33592.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/33592
#![crate_name = "foo"]

pub trait Foo<T> {}
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/link-extern-crate-33178.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/link-extern-crate-item-30109.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/link-extern-crate-title-33178.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/render-enum-variant-structlike-32395.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/src-links-inlined-34274.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/staged-api-deprecated-unstable-32374.rs
Original file line number Diff line number Diff line change
@@ -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")]
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/summary-codeblock-31899.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/31899
#![crate_name="issue_31899"]

// @has issue_31899/index.html
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/summary-reference-link-30366.rs
Original file line number Diff line number Diff line change
@@ -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].
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/type-alias-impls-32077.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Regression test for <https://github.com/rust-lang/rust/issues/32077>.

// https://github.com/rust-lang/rust/issues/32077
#![crate_name = "foo"]

pub struct GenericStruct<T>(T);
Expand Down

0 comments on commit 312658c

Please sign in to comment.