Skip to content

#[expect(non_snake_case)] is ignored in on-the-fly diagnostics #18056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TDplai opened this issue Sep 5, 2024 · 0 comments · Fixed by #18099
Closed

#[expect(non_snake_case)] is ignored in on-the-fly diagnostics #18056

TDplai opened this issue Sep 5, 2024 · 0 comments · Fixed by #18099
Labels
C-bug Category: bug

Comments

@TDplai
Copy link

TDplai commented Sep 5, 2024

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:

#[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
1 participant