The phrase is an adynaton (late Latin meaning impossibility) which describes a figure of speech in the form of a hyperbole that when taken to extreme lengths describes a near impossibility. The implication of such a phrase is that the circumstances in question will never occur. The "when pigs fly" expression has been used in since the 1600s as sarcasm. (no kidding).
Enjoy your Weekend, Everyone.