Skip to content

Commit 31052bb

Browse files
committed
Add URL and crate_name to test cases
1 parent aa1c459 commit 31052bb

17 files changed

+50
-16
lines changed

tests/rustdoc/issue-56701.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// This shouldn't cause a stack overflow when rustdoc is run
2+
// https://github.com/rust-lang/rust/issues/56701
23

34
use std::ops::Deref;
45
use std::ops::DerefMut;

tests/rustdoc/issue-56822.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/56822
2+
#![crate_name="foo"]
3+
14
struct Wrapper<T>(T);
25

36
trait MyTrait {
@@ -16,7 +19,7 @@ impl<'a, T> MyTrait for Inner<'a, T> {
1619
type Output = &'a T;
1720
}
1821

19-
// @has issue_56822/struct.Parser.html
22+
// @has foo/struct.Parser.html
2023
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
2124
// "impl<'a> Send for Parser<'a>"
2225
pub struct Parser<'a> {

tests/rustdoc/issue-57180.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ aux-build:issue-57180.rs
2+
// https://github.com/rust-lang/rust/issues/57180
23

34
extern crate issue_57180;
45
use issue_57180::Trait;

tests/rustdoc/issue-60482.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// This code caused a panic in `pulldown-cmark` 0.4.1.
2+
// https://github.com/rust-lang/rust/issues/60482
23

34
pub const BASIC_UNICODE: bool = true;
45

tests/rustdoc/issue-60726.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/60726
2+
#![crate_name="foo"]
3+
14
use std::marker::PhantomData;
25

36
pub struct True;
@@ -25,7 +28,7 @@ where
2528
I:InterfaceType<Send=True>
2629
{}
2730

28-
// @has issue_60726/struct.IntoIter.html
31+
// @has foo/struct.IntoIter.html
2932
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
3033
// "impl<T> !Send for IntoIter<T>"
3134
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \

tests/rustdoc/issue-61592.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
//@ aux-build:issue-61592.rs
2+
// https://github.com/rust-lang/rust/issues/61592
3+
#![crate_name="bar"]
24

35
extern crate foo;
46

5-
// @has issue_61592/index.html
7+
// @has bar/index.html
68
// @has - '//a[@href="#reexports"]' 'Re-exports'
79
// @has - '//code' 'pub use foo::FooTrait as _;'
810
// @!has - '//a[@href="trait._.html"]' ''
911
pub use foo::FooTrait as _;
1012

11-
// @has issue_61592/index.html
13+
// @has bar/index.html
1214
// @has - '//a[@href="#reexports"]' 'Re-exports'
1315
// @has - '//code' 'pub use foo::FooStruct as _;'
1416
// @!has - '//a[@href="struct._.html"]' ''

tests/rustdoc/issue-67851-both.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
//@ compile-flags: -Zunstable-options --document-private-items --document-hidden-items
2+
// https://github.com/rust-lang/rust/issues/67851
3+
#![crate_name="foo"]
24

3-
// @has issue_67851_both/struct.Hidden.html
5+
// @has foo/struct.Hidden.html
46
#[doc(hidden)]
57
pub struct Hidden;
68

7-
// @has issue_67851_both/struct.Private.html
9+
// @has foo/struct.Private.html
810
struct Private;

tests/rustdoc/issue-67851-hidden.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
//@ compile-flags: -Zunstable-options --document-hidden-items
2+
// https://github.com/rust-lang/rust/issues/67851
3+
#![crate_name="foo"]
24

3-
// @has issue_67851_hidden/struct.Hidden.html
5+
// @has foo/struct.Hidden.html
46
#[doc(hidden)]
57
pub struct Hidden;
68

7-
// @!has issue_67851_hidden/struct.Private.html
9+
// @!has foo/struct.Private.html
810
struct Private;

tests/rustdoc/issue-67851-neither.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
// @!has issue_67851_neither/struct.Hidden.html
1+
// https://github.com/rust-lang/rust/issues/67851
2+
#![crate_name="foo"]
3+
4+
// @!has foo/struct.Hidden.html
25
#[doc(hidden)]
36
pub struct Hidden;
47

5-
// @!has issue_67851_neither/struct.Private.html
8+
// @!has foo/struct.Private.html
69
struct Private;

tests/rustdoc/issue-67851-private.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
//@ compile-flags: --document-private-items
2+
// https://github.com/rust-lang/rust/issues/67851
3+
#![crate_name="foo"]
24

3-
// @!has issue_67851_private/struct.Hidden.html
5+
// @!has foo/struct.Hidden.html
46
#[doc(hidden)]
57
pub struct Hidden;
68

7-
// @has issue_67851_private/struct.Private.html
9+
// @has foo/struct.Private.html
810
struct Private;

0 commit comments

Comments
 (0)