# Prevent \`ArenaRef\` from being cloned \(\#3738\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 90db278724b8f8e8f5fcef4215be17bb47bc880e

Requested commit: 90db278724b8f8e8f5fcef4215be17bb47bc880e

Commit: 90db278724b8f8e8f5fcef4215be17bb47bc880e

Tree: daca496464851fa842099c2711c720a4c1155ecb

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Prevent `ArenaRef` from being cloned (#3738)

This could cause multiple mutable references to be acquired for the same
arena element, which is unsafe. I didn't see it cause problems in
practice, but I realized this could have been a problem and fixed it
before it bit us.

Release Notes:

- N/A
```

## Parents

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

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

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