element-hq / element-hq/synapse

Rust errors/warnings in editor - `#![feature] may not be used on the stable release channel`

Open
#15,706 0 comments 0 reactions 0 assignees View on GitHub
O-Occasional rust S-Tolerable T-Enhancement Z-Dev-Wishlist
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#15706](https://github.com/matrix-org/synapse/issues/15706).

---

In my editor (VSCode), the following errors/warnings are ever present and annoying to look at. Is there anyway to resolve these to not complain by default?

![](https://github.com/matrix-org/synapse/assets/558581/4044e628-0419-4be7-8870-60fcc16045ce)

```
error[E0554]: `#![feature]` may not be used on the stable release channel
--> rust/benches/glob.rs:15:12
|
15 | #![feature(test)]
| ^^^^
```

I feel like the warning is a more new thing since I only remember the errors being there before.
```
unused import: `std::collections::BTreeSet`
`#[warn(unused_imports)]` on by default
```

Contributor guide

Open the contributing guide

Research direction

Start by inspecting rust/benches/glob.rs, especially the reported feature declaration and unused import, then reproduce the diagnostics in VSCode. Determine the project-supported way to prevent these editor errors and warnings by default; done means the reported diagnostics no longer appear during normal editing without hiding unrelated problems.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.