If you remember the Three Stooges films when they cooked their hotdogs where the rivets were heated. I also thought the rivet was heated prior to be formed, so when it got cooler and contract, it gave the preload needed on the joining pieces.