Skip to content

Commit 4a14a80

Browse files
Rollup merge of #116432 - notriddle:master, r=fmease
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 2) Follow up #116214
2 parents d7b02c3 + a46ccd8 commit 4a14a80

25 files changed

+68
-8
lines changed

tests/rustdoc/issue-25001.rs renamed to tests/rustdoc/anchor-id-duplicate-method-name-25001.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/25001
2+
#![crate_name="issue_25001"]
3+
14
// @has issue_25001/struct.Foo.html
25
pub struct Foo<T>(T);
36

tests/rustdoc/issue-28478.rs renamed to tests/rustdoc/anchor-id-trait-tymethod-28478.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/28478
2+
#![crate_name="issue_28478"]
3+
14
#![feature(associated_type_defaults)]
25

36
// @has issue_28478/trait.Bar.html

tests/rustdoc/issue-21474.rs renamed to tests/rustdoc/deduplicate-glob-import-impl-21474.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/21474
2+
#![crate_name="issue_21474"]
3+
14
pub use inner::*;
25

36
mod inner {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// aux-build:issue-22025.rs
22
// ignore-cross-compile
33

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

69
pub use issue_22025::foo::{Foo, Bar};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// compile-flags:--test
2+
3+
// https://github.com/rust-lang/rust/issues/23106
4+
#![crate_name="issue_23106"]
5+
6+
/// ```
7+
/// #
8+
/// ```
9+
pub fn main() {
10+
}

tests/rustdoc/issue-23744.rs renamed to tests/rustdoc/doctest-markdown-inline-parse-23744.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// compile-flags:--test
22

3+
// https://github.com/rust-lang/rust/issues/23744
4+
#![crate_name="issue_23744"]
5+
36
/// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.
47
///
58
/// ```should_panic

tests/rustdoc/issue-25944.rs renamed to tests/rustdoc/doctest-multi-line-string-literal-25944.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// compile-flags:--test
22

3+
// https://github.com/rust-lang/rust/issues/25944
4+
#![crate_name="issue_25944"]
5+
36
/// ```
47
/// let a = r#"
58
/// foo

tests/rustdoc/issue-22038.rs renamed to tests/rustdoc/extern-fn-22038.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/22038
2+
#![crate_name="issue_22038"]
3+
14
extern "C" {
25
// @has issue_22038/fn.foo1.html \
36
// '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn foo1()'

tests/rustdoc/issue-28927.rs renamed to tests/rustdoc/ice-reexport-crate-root-28927.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
// aux-build:issue-28927-1.rs
33
// ignore-cross-compile
44

5+
// https://github.com/rust-lang/rust/issues/28927
6+
#![crate_name="issue_28927"]
7+
58
pub extern crate issue_28927_1 as inner1;
69
pub use inner1 as foo;

tests/rustdoc/issue-21092.rs renamed to tests/rustdoc/impl-assoc-type-21092.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// aux-build:issue-21092.rs
22
// ignore-cross-compile
33

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

69
// @has issue_21092/struct.Bar.html

0 commit comments

Comments
 (0)