Function clippy_utils::is_in_cfg_test
source · pub fn is_in_cfg_test(tcx: TyCtxt<'_>, id: HirId) -> boolExpand description
Checks if any parent node of HirId has #[cfg(test)] attribute applied
pub fn is_in_cfg_test(tcx: TyCtxt<'_>, id: HirId) -> boolChecks if any parent node of HirId has #[cfg(test)] attribute applied