Maybe I'm misremembering, but I had this a month ago in PEK when another United flight had to be cancelled shortly before boarding. All the passengers on the PEK-EWR cancelled flight got dumped over to the PEK-IAD flight (actually not "all", but that's a separate issue). It meant they needed to add catering and get the bags from one plane to the other, and sort out seating.