File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -520,7 +520,7 @@ impl CheckAttrVisitor<'tcx> {
520
520
. struct_span_err (
521
521
meta. span ( ) ,
522
522
& format ! (
523
- "`#![doc({} = \" ...\" )]` isn't allowed as a crate level attribute" ,
523
+ "`#![doc({} = \" ...\" )]` isn't allowed as a crate- level attribute" ,
524
524
attr_name,
525
525
) ,
526
526
)
@@ -559,7 +559,7 @@ impl CheckAttrVisitor<'tcx> {
559
559
|lint| {
560
560
lint. build (
561
561
"`#![doc(test(...)]` is only allowed \
562
- as a crate level attribute",
562
+ as a crate- level attribute",
563
563
)
564
564
. emit ( ) ;
565
565
} ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: '\'' character isn't allowed in `#[doc(alias = "...")]`
4
4
LL | #[doc(alias = "shouldn't work!")]
5
5
| ^^^^^^^^^^^^^^^^^
6
6
7
- error: `#![doc(alias = "...")]` isn't allowed as a crate level attribute
7
+ error: `#![doc(alias = "...")]` isn't allowed as a crate- level attribute
8
8
--> $DIR/doc-alias-crate-level.rs:1:8
9
9
|
10
10
LL | #![doc(alias = "crate-level-not-working")]
Original file line number Diff line number Diff line change 1
- error: `#![doc(test(...)]` is only allowed as a crate level attribute
1
+ error: `#![doc(test(...)]` is only allowed as a crate- level attribute
2
2
--> $DIR/doc-attr2.rs:4:7
3
3
|
4
4
LL | #[doc(test(no_crate_inject))]
@@ -13,7 +13,7 @@ LL | #![deny(warnings)]
13
13
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14
14
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
15
15
16
- error: `#![doc(test(...)]` is only allowed as a crate level attribute
16
+ error: `#![doc(test(...)]` is only allowed as a crate- level attribute
17
17
--> $DIR/doc-attr2.rs:9:12
18
18
|
19
19
LL | #![doc(test(no_crate_inject))]
Original file line number Diff line number Diff line change 1
- error: `#![doc(test(...)]` is only allowed as a crate level attribute
1
+ error: `#![doc(test(...)]` is only allowed as a crate- level attribute
2
2
--> $DIR/doc-attr2.rs:4:7
3
3
|
4
4
LL | #[doc(test(no_crate_inject))]
@@ -13,7 +13,7 @@ LL | #![deny(warnings)]
13
13
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14
14
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
15
15
16
- error: `#![doc(test(...)]` is only allowed as a crate level attribute
16
+ error: `#![doc(test(...)]` is only allowed as a crate- level attribute
17
17
--> $DIR/doc-attr2.rs:9:12
18
18
|
19
19
LL | #![doc(test(no_crate_inject))]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: '\'' character isn't allowed in `#[doc(alias = "...")]`
4
4
LL | #[doc(alias = "shouldn't work!")]
5
5
| ^^^^^^^^^^^^^^^^^
6
6
7
- error: `#![doc(alias = "...")]` isn't allowed as a crate level attribute
7
+ error: `#![doc(alias = "...")]` isn't allowed as a crate- level attribute
8
8
--> $DIR/doc-alias-crate-level.rs:5:8
9
9
|
10
10
LL | #![doc(alias = "not working!")]
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ error: `#[doc(keyword = "...")]` can only be used on modules
10
10
LL | #[doc(keyword = "hall")]
11
11
| ^^^^^^^^^^^^^^^^
12
12
13
- error: `#![doc(keyword = "...")]` isn't allowed as a crate level attribute
13
+ error: `#![doc(keyword = "...")]` isn't allowed as a crate- level attribute
14
14
--> $DIR/doc_keyword.rs:4:8
15
15
|
16
16
LL | #![doc(keyword = "hello")]
You can’t perform that action at this time.
0 commit comments