Skip to content

clippy_lints compile error due to unresolved import #6387

Closed
@pro-grammer1

Description

@pro-grammer1

I would like to contribute, so I cloned the repo and ran setup-toolchain.sh, which worked. I then tried building clippy_lints, but ran into this error:

error[E0432]: unresolved import `rustc_ast::util::lev_distance`
 --> clippy_lints/src/attrs.rs:8:22
  |
8 | use rustc_ast::util::lev_distance::find_best_match_for_name;
  |                      ^^^^^^^^^^^^ could not find `lev_distance` in `util`

I haven't changed any code and I followed the Basics documentation, so I expected it to work. What am I doing wrong?

Also, is this the right place to ask this question?

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