From Trent on Justification, Chapter 6:
http://www.thecounciloftrent.com/ch6.htmCANON III.-If any one saith, that without the prevenient inspiration of the Holy Ghost, and without his help, man can believe, hope, love, or be penitent as he ought, so as that the grace of Justification may be bestowed upon him; let him be anathema.--Catholics believe that one cannot have faith, hope or charity without the inspiration of the Holy Ghost.
CANON IV.-If any one saith, that man's free will moved and excited by God, by assenting to God exciting and calling, nowise co-operates towards disposing and preparing itself for obtaining the grace of Justification; that it cannot refuse its consent, if it would, but that, as something inanimate, it does nothing whatever and is merely passive; let him be anathema.--Catholics believe that one's free will, moved and excited by God (i.e. actual grace) is a co-oerating factor for being properly disposed to receive justification. Receiving justification is NOT a passive action, which can't be refused and over which man has no consent. In other words, God does not force grace on people.
CANON IX.-If any one saith, that by faith alone the impious is justified; in such wise as to mean, that nothing else is required to co-operate in order to the obtaining the grace of Justification, and that it is not in any way necessary, that he be prepared and disposed by the movement of his own will; let him be anathema.--Faith alone does not provide justification. (This canon alone, destroys BOD, for it shows that an implicit desire by a non-catholic is insufficient for salvation.) To be justified requires a proper preparation and dispostion, which only comes "by hearing" the truths of the Faith, in their details, so that the non-catholic understands Catholicism's beliefs. An implicit, hazy, generalized "love of God" does not suffice for the reception of justification, and certainly not Baptism.
In the Preamble to these decrees, Trent explains that:Chapter I: The inability for Nature or the Law to JustifyThe holy Synod declares first, that, for the correct and sound understanding of the doctrine of Justification, it is necessary that each one recognise and confess, that (paraphrasing)...Summary: One must believe in Original Sin, free will and the impairment of human nature.--(An ignorant person, or a muslim/hindu/etc does not believe in original sin, so BOD is not possible for them; only for a catechumen.)Chapter 2: On the IncarnationSummary: One must believe in the Incarnation and its necessity--(Same as above...BOD is only possible for a catechumen)Chapter 3: Who are Justified through ChristSummary: One must believe that through Original Sin, all are born in sin and require a Redeemer, who is Christ, who died for our sins, and provided a way to become adopted sons of God and have our sins washed away. These graces are for all men, though not all will receive them.--(Same as above...)Chapter 4: Justification of the Impious and the Law of GraceSummary: One cannot have grace and be re-born except through Baptism, whereby we are justified through it, or the desire thereof. --(This desire must be explicitly FOR BAPTISM, and not just FOR GOD. An ignorant person cannot desire baptism, so they can't be justified. Ignorance isn't a virtue; it's a punishment for sin).Chapter 5: On the Necessity, in adults, of a Preparation for JustificationSummary: The beginning of justification is by God's grace, where sinful men are called, through no merits of their own; those who are called are quickened by God's grace to co-operate with the illumination of the Holy Ghost, yet sinful man has the power to reject this illumination, but this illumination is not due to their free will. --(If man does not receive the Holy Ghost's illumination, he cannot be justified. Ergo, BOD is not possible for those who haven't received illumination from the Holy Ghost, for by definition an ignorant person hasn't received any illumination from God. Further, an ignorant person or a "good willed" Muslm haven't had ANY preparation for baptism. A desire "for God or heaven" is not sufficient.)
Chapter 6: The manner of PreparationSummary: Those are disposed to unto justice, who assisted by Divine Grace (i.e. actual grace), conceiving faith by hearing (i.e. have an idea of the Church), are freely moved towards God, believing those things to be true which God has revealed and promised,...understanding themselves to be sinners...turn from the fear of divine justice towards the mercy of God...confiding, by hope, that God will be propitious to them for Christ's sake....they begin to love God as the fountain of justice; and are therefore moved against sins by a certain hatred and detestation, to wit, by that penitence which must be performed before baptism: lastly, when they purpose to receive baptism, to begin a new life, and to keep the commandments of God.Concerning this disposition it is written; He that cometh to God, must believe that he is, and is a rewarder to them that seek him; and, Be of good faith, son, thy sins are forgiven thee; and, The fear of the Lord driveth out sin; and, Do penance, and be baptized every one of you in the name of Jesus Christ, for the remission of your sins, and you shall receive the gift of the Holy Ghost; and, Going, therefore, teach ye all nations, baptizing them in the name of the Father, and of the Son, and of the Holy Ghost; finally, Prepare your hearts unto the Lord.
--(An ignorant person cannot purpose to receive Baptism, or begin a new life. They can, arguably, decide to keep the commandments, since all these are written in man's heart, except for the first 3, being the Divine Commandments, which they would learn about during their "hearing" of the Faith. But since they haven't heard, being still ignorant, they cannot decide to keep ALL the commandments.
Secondly, one who desires to receive baptism, even if they are muslim, hindu, etc cannot be properly called a muslim or hindu anymore, for if they truly desire to enter the Church and to being a new spiritual life, they will have had to discard their erroneous religion in order to accept Christ's. Therefore, it is wrong to say that muslims or hindus etc can receive BOD, since Trent tells us that only those who desire the Faith (i.e. catechumens) are properly disposed to receive baptism. Therefore, as Trent teaches, only formal catechumens are properly disposed and prepared to receive Baptism, whether in fact or by desire.)