Let's analyze these infallible quotes:
"The Holy Roman Church firmly believes, professes, and teaches, that none of those who are not within the Catholic Church, not only pagans, but Jєωs, heretics and schismatics, can ever be partakers of eternal life, but are to go into the eternal fire 'prepared for the devil, and his angels' (Mt. 25: 41)., unless before the close of their lives they shall have entered into that Church; also that the unity of the ecclesiastical body is such that the Church's sacraments avail only those abiding in that Church, and that fasts, almsdeeds, and other works of piety which play their part in the Christian combat are in her alone productive of eternal rewards; moreover, that no one, no matter what alms he may have given, not even if he were to shed his blood for Christ's sake, can be saved unless he abide in the bosom and unity of the Catholic Church." (Mansi, Concilia, xxxi, 1739; Pope Eugene IV, in the bull, Cantate Domino, 144 1. Denz. 13 5 1.)
Pope Francis:
"Non-Christians, by God’s gracious initiative, when they are faithful to their own consciences, can live “justified by the grace of God”,[199] and thus be “associated to the paschal mystery of Jesus Christ”.[200] But due to the sacramental dimension of sanctifying grace, God’s working in them tends to produce signs and rites, sacred expressions which in turn bring others to a communitarian experience of journeying towards God.[201] While these lack the meaning and efficacy of the sacraments instituted by Christ, they can be channels which the Holy Spirit raises up in order to liberate non-Christians from atheistic immanentism or from purely individual religious experiences. The same Spirit everywhere brings forth various forms of practical wisdom which help people to bear suffering and to live in greater peace and harmony. As Christians, we can also benefit from these treasures built up over many centuries, which can help us better to live our own beliefs." (Apostolic Exhortation, Evangelii Gaudium, no. 254)