chore: Hoist non-generic part out of add_action_internal. (#2981)

add_action_internal shows up often in downstream crates (as it should
be, since it's a generic function it's codegened in each crate that uses
it); it adds non-trivial amounts of LLVM IR to the build as a whole
which we can cut down a bit by doing the inner fn trick.

Release Notes:

- N/A
0598a8243dPiotr Osiewicz committed on 9/18/2023, 9:55:44 AM· committed by GitHubparentc3f6fcc
1 file changedLine totals unavailable