Cosmology and stellar evolution