clippy_utils

Function in_automatically_derived

Source
pub fn in_automatically_derived(tcx: TyCtxt<'_>, id: HirId) -> bool
Expand description

Checks if the given HIR node is inside an impl block with the automatically_derived attribute.