# gpui: Skip \`test\` attribute expansion for rust-analyzer \(\#37611\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4124bedab796d2ac0a1e57f8b94f72500969797a

Requested commit: 4124bedab796d2ac0a1e57f8b94f72500969797a

Commit: 4124bedab796d2ac0a1e57f8b94f72500969797a

Tree: c22d3bb3ce0fee946d39a154d70ec926c43461f1

Author: Lukas Wirth

Committer: GitHub

## Message

```
gpui: Skip `test` attribute expansion for rust-analyzer (#37611)

The `test` attribute doesn't really matter to rust-analyzer, so we can
make use of its cfg to have it think its just the standard test
attribute which should make rust-analyzer slightly less resource
intensive in zed. It also should prevent some IDE features from possibly
failing within tests.

Notably this has no effect outside of this repo, as the `rust-analyzer`
cfg only takes effect on workspace member crates.

Ideally we'd use the ignored proc macro config here but rust-analyzer
still doesn't have toml configs working unfortunately.

Release Notes:

- N/A
```

## Parents

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

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