Skip to content

Commit ddef56d

Browse files
committed
Auto merge of #116824 - notriddle:master, r=fmease
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 3) Follow up * #116214 * #116432
2 parents 631a116 + c0b6a5d commit ddef56d

21 files changed

+53
-0
lines changed

Diff for: tests/rustdoc/issue-31808.rs renamed to tests/rustdoc-ui/ice-assoc-const-for-primitive-31808.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
// check-pass
2+
13
// Test that associated item impls on primitive types don't crash rustdoc
24

5+
// https://github.com/rust-lang/rust/issues/31808
6+
#![crate_name="issue_31808"]
7+
38
pub trait Foo {
49
const BAR: usize;
510
type BAZ;

Diff for: tests/rustdoc/issue-29503.rs renamed to tests/rustdoc/blanket-impl-29503.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/29503
2+
#![crate_name="issue_29503"]
3+
14
use std::fmt;
25

36
// @has issue_29503/trait.MyTrait.html

Diff for: tests/rustdoc/issue-33302.rs renamed to tests/rustdoc/const-rendering-macros-33302.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/33302
2+
#![crate_name="issue_33302"]
3+
14
// Ensure constant and array length values are not taken from source
25
// code, which wreaks havoc with macros.
36

Diff for: tests/rustdoc/issue-32890.rs renamed to tests/rustdoc/disambiguate-anchors-32890.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/32890
2+
#![crate_name="issue_32890"]
3+
14
// @has issue_32890/struct.Foo.html
25
pub struct Foo<T>(T);
36

Diff for: tests/rustdoc/issue-29449.rs renamed to tests/rustdoc/disambiguate-anchors-header-29449.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/29449
2+
#![crate_name="issue_29449"]
3+
14
// @has issue_29449/struct.Foo.html
25
pub struct Foo;
36

Diff for: tests/rustdoc/issue-33069.rs renamed to tests/rustdoc/doc-hidden-trait-implementors-33069.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/33069
2+
#![crate_name="issue_33069"]
3+
14
pub trait Bar {}
25

36
#[doc(hidden)]

Diff for: tests/rustdoc/issue-30252.rs renamed to tests/rustdoc/doctest-cfg-feature-30252.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// compile-flags:--test --cfg feature="bar"
22

3+
// https://github.com/rust-lang/rust/issues/30252
4+
#![crate_name="issue_30252"]
5+
36
/// ```rust
47
/// assert_eq!(cfg!(feature = "bar"), true);
58
/// ```

Diff for: tests/rustdoc/issue-32556.rs renamed to tests/rustdoc/doctest-ignore-32556.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/32556
2+
#![crate_name="issue_32556"]
3+
14
/// Blah blah blah
25
/// ```ignore (testing rustdoc's handling of ignore)
36
/// bad_assert!();

Diff for: tests/rustdoc/issue-34025.rs renamed to tests/rustdoc/hidden-extern-34025.rs

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

34
// @!has 'foo/sys/index.html'

Diff for: tests/rustdoc/issue-33592.rs renamed to tests/rustdoc/impl-type-parameter-33592.rs

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

34
pub trait Foo<T> {}

Diff for: tests/rustdoc/issue-29584.rs renamed to tests/rustdoc/inline_cross/doc-hidden-extern-trait-impl-29584.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// aux-build:issue-29584.rs
22
// ignore-cross-compile
33

4+
// https://github.com/rust-lang/rust/issues/29584
5+
#![crate_name="issue_29584"]
6+
47
extern crate issue_29584;
58

69
// @has issue_29584/struct.Foo.html

Diff for: tests/rustdoc/issue-33178.rs renamed to tests/rustdoc/link-extern-crate-33178.rs

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// build-aux-docs
44
// ignore-cross-compile
55

6+
// https://github.com/rust-lang/rust/issues/33178
7+
#![crate_name="issue_33178"]
8+
69
// @has issue_33178/index.html
710
// @has - '//a[@title="mod empty"][@href="../empty/index.html"]' empty
811
pub extern crate empty;

Diff for: tests/rustdoc/issue-30109.rs renamed to tests/rustdoc/link-extern-crate-item-30109.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// aux-build:issue-30109-1.rs
33
// ignore-cross-compile
44

5+
// https://github.com/rust-lang/rust/issues/30109
6+
#![crate_name="issue_30109"]
7+
58
pub mod quux {
69
extern crate issue_30109_1 as bar;
710
use self::bar::Bar;

Diff for: tests/rustdoc/issue-33178-1.rs renamed to tests/rustdoc/link-extern-crate-title-33178.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// aux-build:variant-struct.rs
33
// ignore-cross-compile
44

5+
// https://github.com/rust-lang/rust/issues/33178
6+
#![crate_name="issue_33178_1"]
7+
58
// @has issue_33178_1/index.html
69
// @!has - //a/@title empty
710
pub extern crate empty;

Diff for: tests/rustdoc/issue-32395.rs renamed to tests/rustdoc/render-enum-variant-structlike-32395.rs

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

5+
// https://github.com/rust-lang/rust/issues/32395
6+
#![crate_name="issue_32395"]
7+
58
// @has variant_struct/enum.Foo.html
69
// @!hasraw - 'pub qux'
710
// @!hasraw - 'pub(crate) qux'

Diff for: tests/rustdoc/issue-34274.rs renamed to tests/rustdoc/src-links-inlined-34274.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/34274
56
#![crate_name = "foo"]
67

78
extern crate issue_34274;

Diff for: tests/rustdoc/issue-32374.rs renamed to tests/rustdoc/staged-api-deprecated-unstable-32374.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// https://github.com/rust-lang/rust/issues/32374
12
#![feature(staged_api)]
23
#![doc(issue_tracker_base_url = "https://issue_url/")]
34
#![unstable(feature = "test", issue = "32374")]
5+
#![crate_name="issue_32374"]
46

57
// @matches issue_32374/index.html '//*[@class="item-name"]/span[@class="stab deprecated"]' \
68
// 'Deprecated'

Diff for: tests/rustdoc/issue-31899.rs renamed to tests/rustdoc/summary-codeblock-31899.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/31899
2+
#![crate_name="issue_31899"]
3+
14
// @has issue_31899/index.html
25
// @hasraw - 'Make this line a bit longer.'
36
// @!hasraw - 'rust rust-example-rendered'

Diff for: tests/rustdoc/issue-30366.rs renamed to tests/rustdoc/summary-reference-link-30366.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// @has issue_30366/index.html '//a/@href' 'http://www.rust-lang.org/'
22

3+
// https://github.com/rust-lang/rust/issues/30366
4+
#![crate_name="issue_30366"]
5+
36
/// Describe it. [Link somewhere][1].
47
///
58
/// [1]: http://www.rust-lang.org/

Diff for: tests/rustdoc/issue-32077-type-alias-impls.rs renamed to tests/rustdoc/type-alias-impls-32077.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Regression test for <https://github.com/rust-lang/rust/issues/32077>.
22

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

56
pub struct GenericStruct<T>(T);

0 commit comments

Comments
 (0)