Skip to content

Commit eab8c7d

Browse files
committed
Auto merge of #118105 - notriddle:master, r=fmease
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 4) Follow up * #116214 * #116432 * #116824
2 parents 1fd418f + 4f64ff1 commit eab8c7d

32 files changed

+61
-20
lines changed

tests/rustdoc-ui/apit-46976.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// check-pass
2+
// https://github.com/rust-lang/rust/issues/46976
3+
4+
pub fn ice(f: impl Fn()) {}

tests/rustdoc/issue-48414.rs tests/rustdoc-ui/circular-intra-doc-link-48414.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// aux-build:issue-48414.rs
2+
// check-pass
3+
4+
// https://github.com/rust-lang/rust/issues/48414
25

36
// ICE when resolving paths for a trait that linked to another trait, when both were in an external
47
// crate

tests/rustdoc/issue-34423.rs tests/rustdoc-ui/hidden-trait-method-34423.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// check-pass
2+
// https://github.com/rust-lang/rust/issues/34423
3+
14
pub struct Foo;
25

36
pub trait Bar {

tests/rustdoc/issue-36031.rs tests/rustdoc-ui/inherent-assoc-consts-36031.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// aux-build:issue-36031.rs
2+
// check-pass
23
// build-aux-docs
34
// ignore-cross-compile
45

6+
// https://github.com/rust-lang/rust/issues/36031
7+
58
#![crate_name = "foo"]
69

710
extern crate issue_36031;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
// check-pass
12
// hopefully this doesn't cause an ICE
23

4+
// https://github.com/rust-lang/rust/issues/46271
5+
36
pub fn foo() {
47
extern crate std;
58
}

tests/rustdoc/issue-47639.rs tests/rustdoc-ui/nested-macro-rules-47639.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
// check-pass
12
// This should not ICE
3+
4+
// https://github.com/rust-lang/rust/issues/47639
25
pub fn test() {
36
macro_rules! foo {
47
() => ()
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// aux-build:issue-40936.rs
2+
// check-pass
23
// build-aux-docs
34

5+
// https://github.com/rust-lang/rust/issues/40936
6+
47
#![crate_name = "foo"]
58

69
extern crate issue_40936;
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// intentionally empty

tests/rustdoc/issue-43153.rs tests/rustdoc/doctest/doctest-include-43153.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://github.com/rust-lang/rust/issues/43153
2+
13
// Test that `include!` in a doc test searches relative to the directory in
24
// which the test is declared.
35

tests/rustdoc/issue-38219.rs tests/rustdoc/doctest/doctest-macro-38219.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://github.com/rust-lang/rust/issues/38219
2+
13
// compile-flags:--test
24
// should-fail
35

tests/rustdoc/issue-48377.rs tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// compile-flags:--test
22

3+
// https://github.com/rust-lang/rust/issues/48377
4+
35
//! This is a doc comment
46
//!
57
//! ```rust

tests/rustdoc/issue-46767.rs tests/rustdoc/enum-variant-private-46767.rs

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

34
mod private {

tests/rustdoc/issue-43701.rs tests/rustdoc/foreign-implementors-js-43701.rs

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

34
pub use std::vec::Vec;

tests/rustdoc/issue-34473.rs tests/rustdoc/inline-rename-34473.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![crate_name = "foo"]
22

3+
// https://github.com/rust-lang/rust/issues/34473
4+
35
mod second {
46
pub struct SomeTypeWithLongName;
57
}

tests/rustdoc/issue-46766.rs tests/rustdoc/inline_local/enum-variant-reexport-46766.rs

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

34
pub enum Enum{Variant}

tests/rustdoc/issue-43893.rs

-19
This file was deleted.

tests/rustdoc/issue-46976.rs

-1
This file was deleted.

tests/rustdoc/issue-47038.rs tests/rustdoc/private-use-decl-macro-47038.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#![crate_name = "foo"]
44

5+
// https://github.com/rust-lang/rust/issues/47038
6+
57
use std::vec;
68

79
// @has 'foo/index.html'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ignore-cross-compile
2+
3+
// https://github.com/rust-lang/rust/issues/43893
4+
5+
#![crate_name = "foo"]
6+
7+
pub trait SomeTrait {}
8+
pub struct SomeStruct;
9+
10+
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/src-links-implementor-43893.rs.html#11'
11+
impl SomeTrait for usize {}
12+
13+
// @has foo/trait.SomeTrait.html '//a/@href' '../src/foo/src-links-implementor-43893.rs.html#14-16'
14+
impl SomeTrait for SomeStruct {
15+
// deliberately multi-line impl
16+
}
17+
18+
pub trait AnotherTrait {}
19+
20+
// @has foo/trait.AnotherTrait.html '//a/@href' '../src/foo/src-links-implementor-43893.rs.html#21'
21+
impl<T> AnotherTrait for T {}

tests/rustdoc/issue-45584.rs tests/rustdoc/trait-implementations-duplicate-self-45584.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![crate_name = "foo"]
22

3+
// https://github.com/rust-lang/rust/issues/45584
4+
35
pub trait Bar<T, U> {}
46

57
// @has 'foo/struct.Foo1.html'

tests/rustdoc/issue-34928.rs tests/rustdoc/tuple-struct-where-clause-34928.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![crate_name = "foo"]
22

3+
// https://github.com/rust-lang/rust/issues/34928
4+
35
pub trait Bar {}
46

57
// @has foo/struct.Foo.html '//pre' 'pub struct Foo<T>(pub T) where T: Bar;'

0 commit comments

Comments
 (0)