Potentially both. When metal gets hot, it expands. When a long skinny piece of metal (such as a wire or a rail) that expansion makes it longer. If a rail gets longer but doesn't have gaps to fill, then you get a sun kink, and the rails are no longer parallel. That's a bad thing when you try...