Fix Trac #1988; keep the ru_fn field of a RULE up to date