Deform object after another object
Create a lattice that has no depth, and is as large as the torus and place it near the torus, where you want it to make contact with the cyclinder:



On the torus add a lattice modifier and select the lattice as control object:



Select the lattice and add a shrinkwrap modifier with the cylinder as target, Mode project, and select the correct axis for the projection: