Skip to content

clippy_lints compile error due to unresolved import #6387

@pro-grammer1

Description

@pro-grammer1
Contributor

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?

Activity

giraffate

giraffate commented on Nov 27, 2020

@giraffate
Contributor

Oh, it's not your fault. We seem to need the sync process from rust-lang/rust.

giraffate

giraffate commented on Nov 27, 2020

@giraffate
Contributor

The sync process will be done by #6389. So, please wait until this is merged.

pro-grammer1

pro-grammer1 commented on Nov 27, 2020

@pro-grammer1
ContributorAuthor

Ok, everything seems to be working now. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @giraffate@pro-grammer1

        Issue actions

          clippy_lints compile error due to unresolved import · Issue #6387 · rust-lang/rust-clippy