# chore: Hoist non-generic part out of add_action_internal\. \(\#2981\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0598a8243d291969232d45ee4a3fe1588b1ee488)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0598a8243d291969232d45ee4a3fe1588b1ee488

Requested commit: 0598a8243d291969232d45ee4a3fe1588b1ee488

Commit: 0598a8243d291969232d45ee4a3fe1588b1ee488

Tree: b7c8d90160f68653785cf06461b7cd24f5742d67

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
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
```

## Parents

- [c3f6fcc6826f843d6d26599a3384a1a57aaa4ccb](https://git.cafe/gitcafe/zed/commit/c3f6fcc6826f843d6d26599a3384a1a57aaa4ccb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0598a8243d291969232d45ee4a3fe1588b1ee488?format=markdown)
