ryan gosling rachel mcadams cannesFormer lovers Ryan Gosling and Rachel McAdams (pictured here in 2007) were very careful to avoid running into one another at the Cannes Film Festival in the south of France this week.

Rachel arrived earlier in the week to promote her new Woody Allen flick, 'Midnight in Paris.' And just as McAdams was heading out of the city, Gosling arrived at the festival to promote his thriller, 'Drive.'

Cannes is a small city and since there are about three places celebrities hang out -- yachts, the Palais theaters and the Hotel du Cap Eden Roc in Antibes -- the pair likely would have had a run-in were they on the ground at the same time.

While in France, McAdams' relationship with British actor Michael Sheen was finally confirmed by PEOPLE magazine, although the pair have been dating since they filmed 'Midnight in Paris' last summer.