Skip to main content

MALFORMED_DIAGNOSTIC_FILTERS

Static MALFORMED_DIAGNOSTIC_FILTERS 

Source
pub static MALFORMED_DIAGNOSTIC_FILTERS: &'static Lint
Expand description

The malformed_diagnostic_filters lint detects malformed filters in diagnostic attributes.

§Example

 #![feature(rustc_attrs)]
 #![allow(internal_features)]

 #[rustc_on_unimplemented(on(invalid, message = "unused"))]
 trait Trait {}

{{produces}}

§Explanation

A rustc_on_unimplemented filter must use a supported flag, a name-value predicate, or the all, any, and not predicate operators. Invalid filters are ignored.