Expand description
Utility functions for attributes, including Clippy’s built-in ones
Structs§
- Limit
Stack - Currently used to keep track of the current value of
#[clippy::cognitive_complexity(N)]
Functions§
- get_
builtin_ attr - Given
attrs, extract all the instances of a built-in Clippy attribute calledname - get_
unique_ builtin_ attr - If
attrscontain exactly one instance of a built-in Clippy attribute calledname, returns that attribute, andNoneotherwise - has_
non_ exhaustive_ attr - Checks whether the given ADT, or any of its fields/variants, are marked as
#[non_exhaustive] - is_
doc_ hidden - Checks whether
attrscontain#[doc(hidden)] - is_
proc_ macro - Checks whether
attrscontain any ofproc_macro,proc_macro_deriveorproc_macro_attribute - parse_
attrs 🔒 - span_
contains_ cfg - Checks whether the given span contains a
#[cfg(..)]attribute