<!-- Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting Forum for questions: https://users.rust-lang.org/c/ide/14 Before submitting, please make sure that you're not running into one of these known issues: 1. on-the-fly diagnostics are mostly unimplemented (`cargo check` diagnostics will be shown when saving a file): #3107 Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3. --> **rust-analyzer version**: rust-analyzer 1.83.0-nightly (4ac7bcb 2024-09-04) **rustc version**: rustc 1.83.0-nightly (4ac7bcbaa 2024-09-04) **editor or extension**: Neovim v0.10.1 **relevant settings**: `RUSTUP_HOME=~/.local/share/rustup`, `CARGO_HOME=~/.local/share/cargo` **code snippet to reproduce**: ```rust #[expect(non_snake_case)] fn main() { let _FOO = 0; } ``` I don't think this is #6541, because replacing `expect` with `allow` silences the warning. `expect` correctly silences the warning given on saving the file, but does not silence the on-the-fly diagnostics.