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