TORONTO — Canada’s main stock index rose while U.S. markets rallied to the edge of an all-time high as oil prices eased.