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> {
520520 . struct_span_err (
521521 meta. span ( ) ,
522522 & format ! (
523- "`#![doc({} = \" ...\" )]` isn't allowed as a crate level attribute" ,
523+ "`#![doc({} = \" ...\" )]` isn't allowed as a crate- level attribute" ,
524524 attr_name,
525525 ) ,
526526 )
@@ -559,7 +559,7 @@ impl CheckAttrVisitor<'tcx> {
559559 |lint| {
560560 lint. build (
561561 "`#![doc(test(...)]` is only allowed \
562- as a crate level attribute",
562+ as a crate- level attribute",
563563 )
564564 . emit ( ) ;
565565 } ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: '\'' character isn't allowed in `#[doc(alias = "...")]`
44LL | #[doc(alias = "shouldn't work!")]
55 | ^^^^^^^^^^^^^^^^^
66
7- error: `#![doc(alias = "...")]` isn't allowed as a crate level attribute
7+ error: `#![doc(alias = "...")]` isn't allowed as a crate- level attribute
88 --> $DIR/doc-alias-crate-level.rs:1:8
99 |
1010LL | #![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
22 --> $DIR/doc-attr2.rs:4:7
33 |
44LL | #[doc(test(no_crate_inject))]
@@ -13,7 +13,7 @@ LL | #![deny(warnings)]
1313 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1414 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
1515
16- error: `#![doc(test(...)]` is only allowed as a crate level attribute
16+ error: `#![doc(test(...)]` is only allowed as a crate- level attribute
1717 --> $DIR/doc-attr2.rs:9:12
1818 |
1919LL | #![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
22 --> $DIR/doc-attr2.rs:4:7
33 |
44LL | #[doc(test(no_crate_inject))]
@@ -13,7 +13,7 @@ LL | #![deny(warnings)]
1313 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1414 = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
1515
16- error: `#![doc(test(...)]` is only allowed as a crate level attribute
16+ error: `#![doc(test(...)]` is only allowed as a crate- level attribute
1717 --> $DIR/doc-attr2.rs:9:12
1818 |
1919LL | #![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 = "...")]`
44LL | #[doc(alias = "shouldn't work!")]
55 | ^^^^^^^^^^^^^^^^^
66
7- error: `#![doc(alias = "...")]` isn't allowed as a crate level attribute
7+ error: `#![doc(alias = "...")]` isn't allowed as a crate- level attribute
88 --> $DIR/doc-alias-crate-level.rs:5:8
99 |
1010LL | #![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
1010LL | #[doc(keyword = "hall")]
1111 | ^^^^^^^^^^^^^^^^
1212
13- error: `#![doc(keyword = "...")]` isn't allowed as a crate level attribute
13+ error: `#![doc(keyword = "...")]` isn't allowed as a crate- level attribute
1414 --> $DIR/doc_keyword.rs:4:8
1515 |
1616LL | #![doc(keyword = "hello")]
You can’t perform that action at this time.
0 commit comments