Function clippy_utils::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
pub fn is_in_cfg_test(tcx: TyCtxt<'_>, id: HirId) -> bool
Checks if any parent node of HirId
has #[cfg(test)]
attribute applied