CO2-promoted direct acylation of amines and phenols by the activation of inert thioacid salts.