Static MALFORMED_DIAGNOSTIC_ATTRIBUTES

Source
pub static MALFORMED_DIAGNOSTIC_ATTRIBUTES: &Lint
Expand description

The malformed_diagnostic_attributes lint detects malformed diagnostic attributes.

§Example

#[diagnostic::do_not_recommend(message = "message")]
trait Trait {}

{{produces}}

§Explanation

It is usually a mistake to use options or syntax that is not supported. Check the spelling, and check the diagnostic attribute listing for the correct name and syntax. Also consider if you are using an old version of the compiler; perhaps the option or syntax is only available in a newer version. See the reference for a list of diagnostic attributes and the syntax of each.