Skip to content

Commit 4d35754

Browse files
committed
Add URL and crate_name to test cases
1 parent c6727fc commit 4d35754

14 files changed

+26
-4
lines changed

tests/rustdoc/issue-100204-inline-impl-through-glob-import.rs

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

5+
// https://github.com/rust-lang/rust/issues/100204
56
#![crate_name="second"]
67

78
extern crate first;

tests/rustdoc/issue-100241.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// Check that this isn't an ICE
44
//@ should-fail
55

6+
// https://github.com/rust-lang/rust/issues/100241
7+
68
mod foo {
79
pub use inner::S;
810
//~^ ERROR unresolved imports `inner`, `foo::S`

tests/rustdoc/issue-100620.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://github.com/rust-lang/rust/issues/100620
2+
13
pub trait Bar<S> {}
24

35
pub trait Qux<T> {}

tests/rustdoc/issue-102154.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://github.com/rust-lang/rust/issues/102154
2+
13
trait A<Y, N> {
24
type B;
35
}

tests/rustdoc/issue-105735-overlapping-reexport-2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Regression test to ensure that both `AtomicU8` items are displayed but not the re-export.
2+
// https://github.com/rust-lang/rust/issues/105735
23

34
#![crate_name = "foo"]
45
#![no_std]

tests/rustdoc/issue-105735-overlapping-reexport.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Regression test to ensure that both `AtomicU8` items are displayed but not the re-export.
2+
// https://github.com/rust-lang/rust/issues/105735
23

34
#![crate_name = "foo"]
45
#![no_std]

tests/rustdoc/issue-105952.rs

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

34
#![feature(associated_const_equality)]

tests/rustdoc/issue-106142.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
//@ has 'issue_106142/a/index.html'
2-
//@ count 'issue_106142/a/index.html' '//ul[@class="item-table"]//li//a' 1
1+
// https://github.com/rust-lang/rust/issues/106142
2+
#![crate_name="foo"]
3+
4+
//@ has 'foo/a/index.html'
5+
//@ count 'foo/a/index.html' '//ul[@class="item-table"]//li//a' 1
36

47
#![allow(rustdoc::broken_intra_doc_links)]
58

tests/rustdoc/issue-106421-not-internal.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
//@ ignore-cross-compile
33
// This is the version where a non-compiler-internal crate inlines a compiler-internal one.
44
// In this case, the item shouldn't be documented, because regular users can't get at it.
5+
// https://github.com/rust-lang/rust/issues/106421
6+
#![crate_name="bar"]
7+
58
extern crate foo;
69

7-
//@ !has issue_106421_not_internal/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise'
10+
//@ !has bar/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise'
811
pub use foo::FatalError;

tests/rustdoc/issue-106421.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
//@ aux-build:issue-106421-force-unstable.rs
22
//@ ignore-cross-compile
33
//@ compile-flags: -Zforce-unstable-if-unmarked
4+
// https://github.com/rust-lang/rust/issues/106421
5+
#![crate_name="bar"]
46

57
extern crate foo;
68

7-
//@ has issue_106421/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise'
9+
//@ has bar/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise'
810
pub use foo::FatalError;

tests/rustdoc/issue-99221-multiple-macro-rules-w-same-name.rs

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

5+
// https://github.com/rust-lang/rust/issues/99221
56
#![crate_name = "foo"]
67

78
#[macro_use]

tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs

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

5+
// https://github.com/rust-lang/rust/issues/99221
56
#![crate_name = "foo"]
67

78
#[macro_use]

tests/rustdoc/issue-99734-multiple-foreigns-w-same-name.rs

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

5+
// https://github.com/rust-lang/rust/issues/99734
56
#![crate_name = "foo"]
67

78
#[macro_use]

tests/rustdoc/issue-99734-multiple-mods-w-same-name.rs

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

5+
// https://github.com/rust-lang/rust/issues/99734
56
#![crate_name = "foo"]
67

78
#[macro_use]

0 commit comments

Comments
 (0)