clippy_utils

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.