Skip to content

Commit 1c23c8b

Browse files
authored
Rollup merge of rust-lang#130287 - notriddle:notriddle/issue-d, r=jieyouxu
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 9) Follow up * rust-lang#116214 * rust-lang#116432 * rust-lang#116824 * rust-lang#118105 * rust-lang#119561 * rust-lang#123574 * rust-lang#125382 * rust-lang#127671 As always, it's easier to review the commits one at a time. Don't use the Files Changed tab. It's confusing.
2 parents 26bda05 + 48c7e44 commit 1c23c8b

22 files changed

+34
-11
lines changed

tests/rustdoc-ui/issue-102467.stderr renamed to tests/rustdoc-ui/associated-constant-not-allowed-102467.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0229]: associated item constraints are not allowed here
2-
--> $DIR/issue-102467.rs:7:17
2+
--> $DIR/associated-constant-not-allowed-102467.rs:7:17
33
|
44
LL | type A: S<C<X = 0i32> = 34>;
55
| ^^^^^^^^ associated item constraint not allowed here
@@ -11,7 +11,7 @@ LL + type A: S<C = 34>;
1111
|
1212

1313
error[E0229]: associated item constraints are not allowed here
14-
--> $DIR/issue-102467.rs:7:17
14+
--> $DIR/associated-constant-not-allowed-102467.rs:7:17
1515
|
1616
LL | type A: S<C<X = 0i32> = 34>;
1717
| ^^^^^^^^ associated item constraint not allowed here

tests/rustdoc-ui/issue-110629-private-type-cycle.rs renamed to tests/rustdoc-ui/private-type-cycle-110629.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ check-pass
2+
// https://github.com/rust-lang/rust/issues/110629
23

34
#![feature(type_alias_impl_trait)]
45

tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.rs renamed to tests/rustdoc-ui/private-type-cycle-dyn-110629.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// https://github.com/rust-lang/rust/issues/110629
2+
13
type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
24
//~^ ERROR cycle detected when expanding type alias
35

tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr renamed to tests/rustdoc-ui/private-type-cycle-dyn-110629.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0391]: cycle detected when expanding type alias `Bar`
2-
--> $DIR/issue-110629-private-type-cycle-dyn.rs:1:38
2+
--> $DIR/private-type-cycle-dyn-110629.rs:3:38
33
|
44
LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
55
| ^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
99
= help: consider using a struct, enum, or union instead to break the cycle
1010
= help: see <https://doc.rust-lang.org/reference/types.html#recursive-types> for more information
1111
note: cycle used when checking that `Bar` is well-formed
12-
--> $DIR/issue-110629-private-type-cycle-dyn.rs:1:1
12+
--> $DIR/private-type-cycle-dyn-110629.rs:3:1
1313
|
1414
LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
1515
| ^^^^^^^^^^^^^^^^

tests/rustdoc/issue-108931-anonymous-reexport.rs renamed to tests/rustdoc/anonymous-reexport-108931.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Ensuring that anonymous re-exports are always inlined.
2+
// https://github.com/rust-lang/rust/issues/108931
23

34
#![crate_name = "foo"]
45

tests/rustdoc/issue-109695-crate-doc-hidden.rs renamed to tests/rustdoc/crate-doc-hidden-109695.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// This test ensures that even if the crate module is `#[doc(hidden)]`, the file
22
// is generated.
3+
// https://github.com/rust-lang/rust/issues/109695
34

45
//@ has 'foo/index.html'
56
//@ has 'foo/all.html'

tests/rustdoc/deref/issue-100679-sidebar-links-deref.rs renamed to tests/rustdoc/deref/sidebar-links-deref-100679.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/100679
12
#![crate_name="foo"]
23

34
pub struct Vec;

tests/rustdoc/issue-113982-doc_auto_cfg-reexport-foreign.rs renamed to tests/rustdoc/doc_auto_cfg-reexport-foreign-113982.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ aux-build: issue-113982-doc_auto_cfg-reexport-foreign.rs
22

3+
// https://github.com/rust-lang/rust/issues/113982
34
#![feature(no_core, doc_auto_cfg)]
45
#![no_core]
56
#![crate_name = "foo"]

0 commit comments

Comments
 (0)