Genetic modifiers of cystic fibrosis-related diabetes have extensive overlap with type 2 diabetes and related traits.