fn doc_collision_error(unit: &Unit, other_unit: &Unit) -> CargoResult<()>