If the diode and resistor are in series, for the positive half cycle of AC, the current through the resistor will be DC. But for the next half cycle the current through the resistor will be zero. As a diode is a device that converts AC into DC, current through the resistor will be DC.