#trying to contribute to clippy - unresolved import `rustc_hir_analysis` [...]

6 messages · Page 1 of 1 (latest)

elder igloo
#

hello! i want to try contributing to clippy, however after cloning the repository and running cargo check i get some errors that i have no clue how to solve and couldn't find anything about. this is not the first time this is happening - it's my second time trying to contribute to clippy and having this problem (not the exact same, but very similar - unresolved imports & etc).

error[E0432]: unresolved import `rustc_hir_analysis::expr_use_visitor`
  --> clippy_utils\src\sugg.rs:15:25
   |
15 | use rustc_hir_analysis::expr_use_visitor::{Delegate, ExprUseVisitor, PlaceBase, PlaceWithHirId};
   |                         ^^^^^^^^^^^^^^^^ could not find `expr_use_visitor` in `rustc_hir_analysis`

error[E0432]: unresolved import `rustc_hir_analysis::expr_use_visitor`
 --> clippy_utils\src\usage.rs:8:25
  |
8 | use rustc_hir_analysis::expr_use_visitor::{Delegate, ExprUseVisitor, PlaceBase, PlaceWithHirId};
  |                         ^^^^^^^^^^^^^^^^ could not find `expr_use_visitor` in `rustc_hir_analysis`

error[E0433]: failed to resolve: could not find `expr_use_visitor` in `rustc_hir_analysis`
    --> clippy_utils\src\sugg.rs:1060:33
     |
1060 |         _: &rustc_hir_analysis::expr_use_visitor::PlaceWithHirId<'tcx>,
     |                                 ^^^^^^^^^^^^^^^^ could not find `expr_use_visitor` in `rustc_hir_analysis`

error[E0433]: failed to resolve: could not find `expr_use_visitor` in `rustc_hir_analysis`
  --> clippy_utils\src\usage.rs:78:33
   |
78 |         _: &rustc_hir_analysis::expr_use_visitor::PlaceWithHirId<'tcx>,
   |                                 ^^^^^^^^^^^^^^^^ could not find `expr_use_visitor` in `rustc_hir_analysis`

any help would be appreciated :)

tawdry terrace
#

Are you on the master branch for both?

#

I think some of hir_analysis was moved to hir_typeck

#

Id recommend you ask on zulip tbh

elder igloo
elder igloo