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 tests/rustdoc/anchor-id-duplicate-method-name-25001.rs

+3
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 tests/rustdoc/anchor-id-trait-tymethod-28478.rs

+3
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 tests/rustdoc/deduplicate-glob-import-impl-21474.rs

+3
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 {
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};
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 tests/rustdoc/doctest-markdown-inline-parse-23744.rs

+3
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 tests/rustdoc/doctest-multi-line-string-literal-25944.rs

+3
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 tests/rustdoc/extern-fn-22038.rs

+3
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 tests/rustdoc/ice-reexport-crate-root-28927.rs

+3
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 tests/rustdoc/impl-assoc-type-21092.rs

+3
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

tests/rustdoc/issue-27362.rs tests/rustdoc/inline_cross/const-fn-27362.rs

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

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

69
pub use issue_27362_aux::*;

tests/rustdoc/issue-23207.rs tests/rustdoc/inline_cross/deduplicate-inlined-items-23207.rs

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

5+
// https://github.com/rust-lang/rust/issues/23207
6+
#![crate_name="issue_23207"]
7+
58
extern crate issue_23207_2;
69

710
// @has issue_23207/fmt/index.html

tests/rustdoc/issue-21801.rs tests/rustdoc/inline_cross/sugar-closure-crate-21801.rs

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

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

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

tests/rustdoc/issue-23106.rs

-7
This file was deleted.

tests/rustdoc/issue-23812.rs tests/rustdoc/macro-doc-comment-23812.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/23812
2+
#![crate_name="issue_23812"]
3+
14
macro_rules! doc {
25
(#[$outer:meta] mod $i:ident { #![$inner:meta] }) =>
36
(

tests/rustdoc/issue-27862.rs tests/rustdoc/markdown-table-escape-pipe-27862.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/27862
2+
#![crate_name="issue_27862"]
3+
14
/// Tests | Table
25
/// ------|-------------
36
/// t = b | id = \|x\| x

tests/rustdoc/issue-23511.rs tests/rustdoc/search-index-primitive-inherent-method-23511.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#![feature(rustdoc_internals)]
33
#![no_std]
44

5+
// https://github.com/rust-lang/rust/issues/23511
6+
#![crate_name="issue_23511"]
7+
58
pub mod str {
69
#![rustc_doc_primitive = "str"]
710

tests/rustdoc/issue-26606.rs tests/rustdoc/src-link-external-macro-26606.rs

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

5+
// https://github.com/rust-lang/rust/issues/26606
6+
#![crate_name="issue_26606"]
7+
58
// @has issue_26606_macro/macro.make_item.html
69
#[macro_use]
710
extern crate issue_26606_macro;
811

912
// @has issue_26606/constant.FOO.html
10-
// @has - '//a[@href="../src/issue_26606/issue-26606.rs.html#11"]' 'source'
13+
// @has - '//a[@href="../src/issue_26606/src-link-external-macro-26606.rs.html#14"]' 'source'
1114
make_item!(FOO);

tests/rustdoc/issue-26995.rs tests/rustdoc/src-mod-path-absolute-26995.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// ignore-windows
22
// compile-flags: --no-defaults
33

4+
// https://github.com/rust-lang/rust/issues/26995
5+
#![crate_name="issue_26995"]
6+
47
// @has src/issue_26995/dev/null.html
58
// @has issue_26995/null/index.html '//a/@href' '../../src/issue_26995/dev/null.html'
69
#[path="/dev/null"]

tests/rustdoc/issue-27759.rs tests/rustdoc/staged-api-feature-issue-27759.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/27759
2+
#![crate_name="issue_27759"]
3+
14
#![feature(staged_api)]
25
#![doc(issue_tracker_base_url = "http://issue_url/")]
36

tests/rustdoc/issue-27104.rs tests/rustdoc/strip-priv-imports-pass-27104.rs

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

5+
// https://github.com/rust-lang/rust/issues/27104
6+
#![crate_name="issue_27104"]
7+
58
// @has issue_27104/index.html
69
// @!hasraw - 'extern crate std'
710
// @!hasraw - 'use std::prelude::'

0 commit comments

Comments
 (0)