clippy_config::types

Function create_disallowed_map

Source
pub fn create_disallowed_map(
    tcx: TyCtxt<'_>,
    disallowed: &'static [DisallowedPath],
) -> DefIdMap<(&'static str, Option<&'static str>)>
Expand description

Creates a map of disallowed items to the reason they were disallowed.