2cff3e90bc
This commit moves the `#[do_not_recommend]` attribute to the `#[diagnostic]` namespace. It still requires `#![feature(do_not_recommend)]` to work.
9 lines
218 B
Rust
9 lines
218 B
Rust
#![deny(unknown_or_malformed_diagnostic_attributes)]
|
|
trait Foo {}
|
|
|
|
#[diagnostic::do_not_recommend]
|
|
//~^ ERROR unknown diagnostic attribute [unknown_or_malformed_diagnostic_attributes]
|
|
impl Foo for i32 {}
|
|
|
|
fn main() {}
|