This is not a mandatory rule. It's something which is
often done (thus, to me, optional), per Swan.
Which part is not mandatory? I may have misunderstood, but I'm assuming the rule you are referring to is: will cannot be used in a when clause where when
is an adverbial conjunction. I...