Rapist to be publicly hanged