Skip to content

Incorrect UPPER_SNAKE_CASE hint with short constant names #6397

@quest-sage

Description

@quest-sage

image
The image says it all really. I'm using the current most recent version of non-nightly rust-analyzer (updated about an hour ago when I launched VS Code, not sure exactly which version it is).

I have found that the hint incorrectly shows up if and only if there are no underscores between two non-underscore characters. E.g. AMOUNT_ shows the hint (it says I should write A_M_O_U_N_T_), but AMOUNT_2 does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions