Skip to content

unfulfilled_lint_expectations emitted upon a correct #[expect(clippy::enum_glob_use)] #17685

Open
@its-the-shrimp

Description

@its-the-shrimp

rust-analyzer version: 2024-07-22

rustc version: rustc 1.82.0-nightly (8bfcae730 2024-07-23)

editor or extension: Neovim

code snippet to reproduce:

#![warn(clippy::pedantic)]

#[expect(clippy::enum_glob_use)]
use std::cmp::Ordering::*;

fn main() {
    print!("{Equal:?}");
}

This code is just fine with cargo check or cargo clippy, but rust-analyzer emits an unfulfilled_lint_expectations warning, even though the clippy::enum_glob_use lint is triggered if the expect attribute is commented out

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargocargo related issuesA-diagnosticsdiagnostics / error reportingA-flycheckissues with flycheck a.k.a. "check on save"C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions