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 Nov 20, 2023
1 parent 0f466b0 commit da7e87e
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/rustdoc/doctest-include-43153.rs
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/doctest-macro-38219.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// https://github.com/rust-lang/rust/issues/38219

// compile-flags:--test
// should-fail

Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/doctest-markdown-trailing-docblock-48377.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// compile-flags:--test

// https://github.com/rust-lang/rust/issues/48377

//! This is a doc comment
//!
//! ```rust
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/enum-variant-private-46767.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/46767
#![crate_name = "foo"]

mod private {
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/enum-variant-reexport-46766.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/46766
#![crate_name = "foo"]

pub enum Enum{Variant}
Expand Down
1 change: 1 addition & 0 deletions tests/rustdoc/foreign-implementors-js-43701.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// https://github.com/rust-lang/rust/issues/43701
#![crate_name = "foo"]

pub use std::vec::Vec;
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/ice-34423.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// https://github.com/rust-lang/rust/issues/34423

pub struct Foo;

pub trait Bar {
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/ice-36031.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// build-aux-docs
// ignore-cross-compile

// https://github.com/rust-lang/rust/issues/36031

#![crate_name = "foo"]

extern crate issue_36031;
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/ice-apit-46976.rs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// https://github.com/rust-lang/rust/issues/46976

pub fn ice(f: impl Fn()) {}
2 changes: 2 additions & 0 deletions tests/rustdoc/ice-circular-intra-doc-link-48414.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// aux-build:issue-48414.rs

// 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

Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/ice-extern-crate-40936.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// aux-build:issue-40936.rs
// build-aux-docs

// https://github.com/rust-lang/rust/issues/40936

#![crate_name = "foo"]

extern crate issue_40936;
2 changes: 2 additions & 0 deletions tests/rustdoc/ice-nested-extern-crate-46271.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// hopefully this doesn't cause an ICE

// https://github.com/rust-lang/rust/issues/46271

pub fn foo() {
extern crate std;
}
2 changes: 2 additions & 0 deletions tests/rustdoc/ice-nested-macro-rules-47639.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// This should not ICE

// https://github.com/rust-lang/rust/issues/47639
pub fn test() {
macro_rules! foo {
() => ()
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/inline-rename-34473.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![crate_name = "foo"]

// https://github.com/rust-lang/rust/issues/34473

mod second {
pub struct SomeTypeWithLongName;
}
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/private-use-decl-macro-47038.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#![crate_name = "foo"]

// https://github.com/rust-lang/rust/issues/47038

use std::vec;

// @has 'foo/index.html'
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/src-links-implementor-43893.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// ignore-cross-compile

// https://github.com/rust-lang/rust/issues/43893

#![crate_name = "foo"]

pub trait SomeTrait {}
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/trait-implementations-duplicate-self-45584.rs
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/tuple-struct-34928.rs
Original file line number Diff line number Diff line change
@@ -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;'
Expand Down

0 comments on commit da7e87e

Please sign in to comment.