# rust: reduce false positives in runnables query \(\#11845\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 266643440c94d883190feff2f36650476e78e6a4

Requested commit: 266643440c94d883190feff2f36650476e78e6a4

Commit: 266643440c94d883190feff2f36650476e78e6a4

Tree: c61b187552211f6ace87d0cc29eaa839664b2e92

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
rust: reduce false positives in runnables query (#11845)

We were marking `#[cfg(test)]`ed function as a test, which is wrong.
Also allow for other attribute_items (such as #[should_panic]) between
test attribute and a function item.

Release Notes:

- N/A
```

## Parents

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

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