It can't be done, the flange distance is much shorter for RF.
That's just for starters. The RF mounting face is 20mm in front of the sensor, the EF is 44mm, the bayonets are practically the same size, so the RF lens would be at least 35mm too far from the sensor to focus on infinity if you could make a mechanical adapter. The RF lenses communicate with the camera much faster than EF lenses do, using 12 contacts instead of eight. While RF mount cameras can also use the EF protocol, there's no reason for RF lenses to understand the EF protocol, so even macro focussing and opening the iris could be a problem.
Ef lenses do work as well or better on adapters to RF mount as they do on EF mount though.