Pt-catalyzed cyclization/1,2-migration for the synthesis of indolizines, pyrrolones, and indolizinones.