Throwing a warning when a rule is discarded