Before people get excited, search penal code 377. OP is misrepresenting it and slapping a rainbow over it.
377 is a anti-homosexuality law. Protections for men who have been raped are still needed, but are a separate issue from 377.
Here is the text of 377:
Unnatural offences: Whoever voluntarily has carnal intercourse against the order of nature with any man, woman or animal, shall be punished with imprisonment for life, or with imprisonment of either description for a term which may extend to ten years, and shall also be liable to fine. Explanation: Penetration is sufficient to constitute the carnal intercourse necessary to the offence described in this section.
Multiple upvotes on my comment indicates I’m not the only one tired of Boomer “shit on my partner” humor.