Trent was where it was pronounced infallibly by the Church. There was still an accepted Scripture, which I imagine had to have contained the DC, long before that. (I don’t really know the specifics of any of this.)
Such infallible pronouncements are as far as I understand generally made to officially clarify errors, such as the one you identify here.