Issue 5121 fns with early lifetime params

See issue #5121 for details.

r? @pnkfelix