fn insert_into_map<F: Hash + Eq>(
    ty: &mut RenderType,
    map: &mut FxHashMap<F, usize>,
    itemid: F,
    lastpathid: &mut usize,
    crate_paths: &mut Vec<(ItemType, Symbol)>,
    item_type: ItemType,
    path: Symbol
)