Closed
Description
I tried this code:
#![deny(invalid_doc_attributes)]
#![doc(x)]
I expected to see this happen: An error that x
is invalid.
Instead, this happened: The lint stays at a warning and rustc additionally warns that the lint name isn't recognized (#85457 (comment)):
warning: unknown lint: `invalid_doc_attributes`
--> src/lib.rs:1:9
|
1 | #![deny(invalid_doc_attributes)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unknown_lints)]` on by default
warning: unknown `doc` attribute `x`
--> src/lib.rs:2:8
|
2 | #![doc(x)]
| ^
|
= note: `#[warn(invalid_doc_attributes)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
Meta
rustc --version --verbose
: 1.54.0-nightly (2021-05-18 4e3e6db)