clippy_utils

Function is_in_cfg_test

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

Checks if any parent node of HirId has #[cfg(test)] attribute applied