Here are some good links to read for that. But the basic premise is that before Ms. Marvel was cancelled, the unpublished issues (later on published in the 90s as Marvel Superheroes 10 and 11) depicted Carol Danvers running into the Hellfire Club and the Brotherhood of Mutants. Both groups were supposed to debut in Ms. Marvel but the book's cancellation meant we didn't see them until UXM for the Dark Phoenix Saga and Days of Future Past respectively. Carol has a vision where she's the Black Queen of the Hellfire Club and brutally beats up Rogue, which was tied into a later story that Claremont mentioned in his UXM run as something he would go back and fill in (although he never did) which featured Sebastian Shaw brutally beating up Rogue. Shaw also sent Tessa to spy on Carol Danvers because she factored into his plans so the implication was that he wanted her as his Black Queen and when the book was cancelled, Claremont brought these plans over for Jean in UXM.
https://www.tapatalk.com/groups/marv...65632#p1065632
http://www.supermegamonkey.net/chron...eroes_11.shtml