Pathogen-induced rapid evolution in a vertebrate life-history trait