Interesting question. I have never had this happen, and I think I'll be asking a lot of questions if it does.
It's not something an airline can do hastily, as different aircraft (well, at least those of differing type rating) require different crews to operate. So the airline will have to grab a totally different crew to match their replacement aircraft.