Skip to content

Commit 7b72379

Browse files
Rollup merge of #79412 - GuillaumeGomez:cleanup-rustdoc-tests, r=jyn514
Clean up rustdoc tests by removing unnecessary features r? ``@jyn514``
2 parents 005a3e5 + d61ea56 commit 7b72379

15 files changed

+15
-36
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#![feature(doc_alias)]
2-
31
#[doc(alias = "true")]
42
pub struct Foo;

src/test/rustdoc-js/doc-alias-filter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(doc_alias)]
2-
31
#[doc(alias = "true")]
42
pub struct Foo;
53

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#![feature(doc_alias)]
2-
31
#[doc(alias = "Demon Lord")]
42
pub struct Struct;

src/test/rustdoc-js/doc-alias.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(doc_alias)]
2-
31
#[doc(alias = "StructItem")]
42
pub struct Struct {
53
#[doc(alias = "StructFieldItem")]

src/test/rustdoc-ui/check-doc-alias-attr-location.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(doc_alias)]
2-
31
pub struct Bar;
42
pub trait Foo {
53
type X;

src/test/rustdoc-ui/check-doc-alias-attr-location.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
error: `#[doc(alias = "...")]` isn't allowed on extern block
2-
--> $DIR/check-doc-alias-attr-location.rs:9:7
2+
--> $DIR/check-doc-alias-attr-location.rs:7:7
33
|
44
LL | #[doc(alias = "foo")]
55
| ^^^^^^^^^^^^^
66

77
error: `#[doc(alias = "...")]` isn't allowed on implementation block
8-
--> $DIR/check-doc-alias-attr-location.rs:12:7
8+
--> $DIR/check-doc-alias-attr-location.rs:10:7
99
|
1010
LL | #[doc(alias = "bar")]
1111
| ^^^^^^^^^^^^^
1212

1313
error: `#[doc(alias = "...")]` isn't allowed on implementation block
14-
--> $DIR/check-doc-alias-attr-location.rs:18:7
14+
--> $DIR/check-doc-alias-attr-location.rs:16:7
1515
|
1616
LL | #[doc(alias = "foobar")]
1717
| ^^^^^^^^^^^^^^^^
1818

1919
error: `#[doc(alias = "...")]` isn't allowed on type alias in implementation block
20-
--> $DIR/check-doc-alias-attr-location.rs:20:11
20+
--> $DIR/check-doc-alias-attr-location.rs:18:11
2121
|
2222
LL | #[doc(alias = "assoc")]
2323
| ^^^^^^^^^^^^^^^

src/test/rustdoc-ui/check-doc-alias-attr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![crate_type = "lib"]
2-
#![feature(doc_alias)]
32

43
#[doc(alias = "foo")] // ok!
54
pub struct Bar;

src/test/rustdoc-ui/check-doc-alias-attr.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
error: doc alias attribute expects a string: #[doc(alias = "0")]
2-
--> $DIR/check-doc-alias-attr.rs:7:7
2+
--> $DIR/check-doc-alias-attr.rs:6:7
33
|
44
LL | #[doc(alias)]
55
| ^^^^^
66

77
error: doc alias attribute expects a string: #[doc(alias = "0")]
8-
--> $DIR/check-doc-alias-attr.rs:8:7
8+
--> $DIR/check-doc-alias-attr.rs:7:7
99
|
1010
LL | #[doc(alias = 0)]
1111
| ^^^^^^^^^
1212

1313
error: doc alias attribute expects a string: #[doc(alias = "0")]
14-
--> $DIR/check-doc-alias-attr.rs:9:7
14+
--> $DIR/check-doc-alias-attr.rs:8:7
1515
|
1616
LL | #[doc(alias("bar"))]
1717
| ^^^^^^^^^^^^
1818

1919
error: '\"' character isn't allowed in `#[doc(alias = "...")]`
20-
--> $DIR/check-doc-alias-attr.rs:10:7
20+
--> $DIR/check-doc-alias-attr.rs:9:7
2121
|
2222
LL | #[doc(alias = "\"")]
2323
| ^^^^^^^^^^^^
2424

2525
error: '\n' character isn't allowed in `#[doc(alias = "...")]`
26-
--> $DIR/check-doc-alias-attr.rs:11:7
26+
--> $DIR/check-doc-alias-attr.rs:10:7
2727
|
2828
LL | #[doc(alias = "\n")]
2929
| ^^^^^^^^^^^^
3030

3131
error: '\n' character isn't allowed in `#[doc(alias = "...")]`
32-
--> $DIR/check-doc-alias-attr.rs:12:7
32+
--> $DIR/check-doc-alias-attr.rs:11:7
3333
|
3434
LL | #[doc(alias = "
3535
| _______^
3636
LL | | ")]
3737
| |_^
3838

3939
error: '\t' character isn't allowed in `#[doc(alias = "...")]`
40-
--> $DIR/check-doc-alias-attr.rs:14:7
40+
--> $DIR/check-doc-alias-attr.rs:13:7
4141
|
4242
LL | #[doc(alias = "\t")]
4343
| ^^^^^^^^^^^^
4444

4545
error: `#[doc(alias = "...")]` cannot start or end with ' '
46-
--> $DIR/check-doc-alias-attr.rs:15:7
46+
--> $DIR/check-doc-alias-attr.rs:14:7
4747
|
4848
LL | #[doc(alias = " hello")]
4949
| ^^^^^^^^^^^^^^^^
5050

5151
error: `#[doc(alias = "...")]` cannot start or end with ' '
52-
--> $DIR/check-doc-alias-attr.rs:16:7
52+
--> $DIR/check-doc-alias-attr.rs:15:7
5353
|
5454
LL | #[doc(alias = "hello ")]
5555
| ^^^^^^^^^^^^^^^^

src/test/rustdoc-ui/doc-alias-assoc-const.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(doc_alias)]
21
#![feature(trait_alias)]
32

43
pub struct Foo;

src/test/rustdoc-ui/doc-alias-assoc-const.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: `#[doc(alias = "...")]` isn't allowed on associated constant in trait implementation block
2-
--> $DIR/doc-alias-assoc-const.rs:11:11
2+
--> $DIR/doc-alias-assoc-const.rs:10:11
33
|
44
LL | #[doc(alias = "CONST_BAZ")]
55
| ^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)