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

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

Lines changed: 5 additions & 0 deletions
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;

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

Lines changed: 3 additions & 0 deletions
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

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

Lines changed: 3 additions & 0 deletions
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

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

Lines changed: 3 additions & 0 deletions
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

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

Lines changed: 3 additions & 0 deletions
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

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

Lines changed: 3 additions & 0 deletions
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)]

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

Lines changed: 3 additions & 0 deletions
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
/// ```

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

Lines changed: 3 additions & 0 deletions
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!();

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

Lines changed: 1 addition & 0 deletions
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'

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

Lines changed: 1 addition & 0 deletions
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> {}

0 commit comments

Comments
 (0)