You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
I tried this code:
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)):
Meta
rustc --version --verbose
: 1.54.0-nightly (2021-05-18 4e3e6db)The text was updated successfully, but these errors were encountered: