Skip to content

Commit da7e87e

Browse files
committed
Add URL to test cases
1 parent 0f466b0 commit da7e87e

18 files changed

+33
-0
lines changed

Diff for: tests/rustdoc/doctest-include-43153.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://github.com/rust-lang/rust/issues/43153
2+
13
// Test that `include!` in a doc test searches relative to the directory in
24
// which the test is declared.
35

Diff for: tests/rustdoc/doctest-macro-38219.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://github.com/rust-lang/rust/issues/38219
2+
13
// compile-flags:--test
24
// should-fail
35

Diff for: tests/rustdoc/doctest-markdown-trailing-docblock-48377.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// compile-flags:--test
22

3+
// https://github.com/rust-lang/rust/issues/48377
4+
35
//! This is a doc comment
46
//!
57
//! ```rust

Diff for: tests/rustdoc/enum-variant-private-46767.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/46767
12
#![crate_name = "foo"]
23

34
mod private {

Diff for: tests/rustdoc/enum-variant-reexport-46766.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/46766
12
#![crate_name = "foo"]
23

34
pub enum Enum{Variant}

Diff for: tests/rustdoc/foreign-implementors-js-43701.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/43701
12
#![crate_name = "foo"]
23

34
pub use std::vec::Vec;

Diff for: tests/rustdoc/ice-34423.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://github.com/rust-lang/rust/issues/34423
2+
13
pub struct Foo;
24

35
pub trait Bar {

Diff for: tests/rustdoc/ice-36031.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// build-aux-docs
33
// ignore-cross-compile
44

5+
// https://github.com/rust-lang/rust/issues/36031
6+
57
#![crate_name = "foo"]
68

79
extern crate issue_36031;

Diff for: tests/rustdoc/ice-apit-46976.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
// https://github.com/rust-lang/rust/issues/46976
2+
13
pub fn ice(f: impl Fn()) {}

Diff for: tests/rustdoc/ice-circular-intra-doc-link-48414.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// aux-build:issue-48414.rs
22

3+
// https://github.com/rust-lang/rust/issues/48414
4+
35
// ICE when resolving paths for a trait that linked to another trait, when both were in an external
46
// crate
57

Diff for: tests/rustdoc/ice-extern-crate-40936.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// aux-build:issue-40936.rs
22
// build-aux-docs
33

4+
// https://github.com/rust-lang/rust/issues/40936
5+
46
#![crate_name = "foo"]
57

68
extern crate issue_40936;

Diff for: tests/rustdoc/ice-nested-extern-crate-46271.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// hopefully this doesn't cause an ICE
22

3+
// https://github.com/rust-lang/rust/issues/46271
4+
35
pub fn foo() {
46
extern crate std;
57
}

Diff for: tests/rustdoc/ice-nested-macro-rules-47639.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// This should not ICE
2+
3+
// https://github.com/rust-lang/rust/issues/47639
24
pub fn test() {
35
macro_rules! foo {
46
() => ()

Diff for: tests/rustdoc/inline-rename-34473.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![crate_name = "foo"]
22

3+
// https://github.com/rust-lang/rust/issues/34473
4+
35
mod second {
46
pub struct SomeTypeWithLongName;
57
}

Diff for: tests/rustdoc/private-use-decl-macro-47038.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#![crate_name = "foo"]
44

5+
// https://github.com/rust-lang/rust/issues/47038
6+
57
use std::vec;
68

79
// @has 'foo/index.html'

Diff for: tests/rustdoc/src-links-implementor-43893.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// ignore-cross-compile
22

3+
// https://github.com/rust-lang/rust/issues/43893
4+
35
#![crate_name = "foo"]
46

57
pub trait SomeTrait {}

Diff for: tests/rustdoc/trait-implementations-duplicate-self-45584.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![crate_name = "foo"]
22

3+
// https://github.com/rust-lang/rust/issues/45584
4+
35
pub trait Bar<T, U> {}
46

57
// @has 'foo/struct.Foo1.html'

Diff for: tests/rustdoc/tuple-struct-34928.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![crate_name = "foo"]
22

3+
// https://github.com/rust-lang/rust/issues/34928
4+
35
pub trait Bar {}
46

57
// @has foo/struct.Foo.html '//pre' 'pub struct Foo<T>(pub T) where T: Bar;'

0 commit comments

Comments
 (0)