Cucumber leaves infected with powdery mildew should not be composted. The fungus can survive in compost and spread to other plants. Infected leaves should be disposed of in the trash or burned.