If a new peremptory norm of general international law emerges, any existing treaty which is in conflict with that norm becomes void and terminates.
Article 64 Emergence of a new peremptory norm of general international law (jus cogens)
If a new peremptory norm of general international law emerges, any existing treaty which is in conflict with that norm becomes void and terminates.