Catastrophic evaporation of rocky planets