rustdoc: Rename invalid_codeblock_attribute lint to be plural
This commit is contained in:
parent
c86039b333
commit
56fb71786a
9 changed files with 14 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// compile-flags:--test
|
||||
|
||||
#![deny(invalid_codeblock_attribute)]
|
||||
#![deny(invalid_codeblock_attributes)]
|
||||
|
||||
/// foo
|
||||
///
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ error: unknown attribute `compile-fail`. Did you mean `compile_fail`?
|
|||
note: the lint level is defined here
|
||||
--> $DIR/check-attr-test.rs:3:9
|
||||
|
|
||||
3 | #![deny(invalid_codeblock_attribute)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 | #![deny(invalid_codeblock_attributes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
|
||||
|
||||
error: unknown attribute `compilefail`. Did you mean `compile_fail`?
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![deny(invalid_codeblock_attribute)]
|
||||
#![deny(invalid_codeblock_attributes)]
|
||||
|
||||
/// foo
|
||||
//~^ ERROR
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ LL | | /// ```
|
|||
note: the lint level is defined here
|
||||
--> $DIR/check-attr.rs:1:9
|
||||
|
|
||||
LL | #![deny(invalid_codeblock_attribute)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(invalid_codeblock_attributes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
|
||||
|
||||
error: unknown attribute `compilefail`. Did you mean `compile_fail`?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue