rustc_lint::map_unit_fn

Function is_unit_type

Source
fn is_unit_type(ty: Ty<'_>) -> bool