fn get_initial_source_id( gctx: &GlobalContext, reg_or_index: Option<&RegistryOrIndex>, ) -> CargoResult<SourceId>