2cff3e90bc
This commit moves the `#[do_not_recommend]` attribute to the `#[diagnostic]` namespace. It still requires `#![feature(do_not_recommend)]` to work.
15 lines
388 B
Plaintext
15 lines
388 B
Plaintext
error: unknown diagnostic attribute
|
|
--> $DIR/unstable-feature.rs:4:15
|
|
|
|
|
LL | #[diagnostic::do_not_recommend]
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unstable-feature.rs:1:9
|
|
|
|
|
LL | #![deny(unknown_or_malformed_diagnostic_attributes)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|