-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
C-bugCategory: bugCategory: bug
Description
rust-analyzer version: rust-analyzer 0.3.2053-standalone
rustc version: rustc 1.79.0
editor or extension: neovim v0.9.5 (rust-analyzer installed by mason plugin, running on a debian stable installation)
code snippet to reproduce:
fn main() -> Result<(), ()> {
let v = Some(false);
let _i = match v {
Some(true) => 1,
Some(false) => 2,
None => 3,
};
Ok(())
}"Variable None should have snake_case name, e.g. none [non_snake_case]" in line 6.
rust-analyzer prints that as a warning message for every Option match, also if None occurs within tuples. It doesn't make any sense to me. Other than that, rust-analyzer seems to be working fine as far as I can tell.
Creative-Difficulty, bittermandel, ferologics, Crispy13, gdiShun and 9 more
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bug