# Only \`impl Global\` for \`DebugBelow\` when compiling with \`debug_assertions\` \(\#7102\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1d794dbb3700be20cad1eb5a02ea46b7b6c1632e

Requested commit: 1d794dbb3700be20cad1eb5a02ea46b7b6c1632e

Commit: 1d794dbb3700be20cad1eb5a02ea46b7b6c1632e

Tree: 10f4ec09aee683fbafa6df4213d62cfbea88c4d2

Author: Marshall Bowers

Committer: GitHub

## Message

```
Only `impl Global` for `DebugBelow` when compiling with `debug_assertions` (#7102)

This PR fixes this error when compiling a release build:

<img width="504" alt="Screenshot 2024-01-30 at 2 30 38 PM"
src="https://github.com/zed-industries/zed/assets/1486634/96470735-2b9e-4945-b4c3-c86ef0168b8c">

`DebugBelow` only exists when compiling with `debug_assertions`, so we
only want to implement it using that same criterion.

Release Notes:

- N/A
```

## Parents

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

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