Skip to content

Unused check for static items #4085

@sakupan102

Description

@sakupan102

Summary

The current unused var pass does not check static items.

Reproducer

I tried this code:

static TEST: usize = 1;

fn main() {}

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