Skip to content

clippy fails compile on nightly -- QSelf undefined #1381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
leshow opened this issue Dec 11, 2016 · 2 comments
Closed

clippy fails compile on nightly -- QSelf undefined #1381

leshow opened this issue Dec 11, 2016 · 2 comments

Comments

@leshow
Copy link

leshow commented Dec 11, 2016

I wasn't able to find this error in the issues list.

>  ~  rustup default nightly
info: using existing install for 'nightly-x86_64-unknown-linux-gnu'
info: default toolchain set to 'nightly-x86_64-unknown-linux-gnu'

  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.15.0-nightly (daf8c1dfc 2016-12-05)

>  ~  cargo install clippy --force
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling matches v0.1.4
   Compiling regex-syntax v0.3.9
   Compiling unicode-normalization v0.1.2
   Compiling quine-mc_cluskey v0.2.4
   Compiling nom v1.2.4
   Compiling rustc-serialize v0.3.22
   Compiling semver v0.2.3
   Compiling toml v0.1.30
   Compiling clippy_lints v0.0.103
error[E0412]: type name `QSelf` is undefined or not in scope
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/utils/hir.rs:211:31
    |
211 |     fn eq_qself(&self, left: &QSelf, right: &QSelf) -> bool {
    |                               ^^^^^ undefined or not in scope
    |
    = help: you can import it into scope: `use syntax::ast::QSelf;`.

error[E0412]: type name `QSelf` is undefined or not in scope
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/utils/hir.rs:211:46
    |
211 |     fn eq_qself(&self, left: &QSelf, right: &QSelf) -> bool {
    |                                              ^^^^^ undefined or not in scope
    |
    = help: you can import it into scope: `use syntax::ast::QSelf;`.

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/enum_glob_use.rs:52:20
   |
52 |             if let ViewPath_::ViewPathGlob(_) = item_use.node {
   |                    ^^^^^^^^^^^^^^^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0531]: unresolved tuple struct/variant `ty::TyTrait`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/len_zero.rs:211:9
    |
211 |         ty::TyTrait(_) => {
    |         ^^^^^^^^^^^

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/unsafe_removed_from_name.rs:41:17
   |
41 |                 ViewPath_::ViewPathSimple(ref name, ref path) => {
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/unsafe_removed_from_name.rs:51:17
   |
51 |                 ViewPath_::ViewPathList(_, ref path_list_items) => {
   |                 ^^^^^^^^^^^^^^^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0433]: failed to resolve. Use of undeclared type or module `ViewPath_`
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/unsafe_removed_from_name.rs:59:17
   |
59 |                 ViewPath_::ViewPathGlob(_) => {}
   |                 ^^^^^^^^^^^^^^^^^^^^^^^ Use of undeclared type or module `ViewPath_`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/utils/internal_lints.rs:163:1
    |
163 | impl<'v, 'a: 'v> Visitor<'v> for LintCollector<'a> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/block_in_if_condition.rs:56:1
   |
56 | impl<'v> Visitor<'v> for ExVisitor<'v> {
   | ^ missing `nested_visit_map` in implementation
   |
   = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/booleans.rs:387:1
    |
387 | impl<'a, 'v, 'tcx> Visitor<'v> for NonminimalBoolVisitor<'a, 'tcx> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/cyclomatic_complexity.rs:130:1
    |
130 | impl<'a, 'b, 'tcx, 'gcx> Visitor<'a> for CCHelper<'b, 'gcx, 'tcx> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/entry.rs:114:1
    |
114 | impl<'a, 'tcx, 'v, 'b> Visitor<'v> for InsertVisitor<'a, 'tcx, 'b> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/eval_order_dependence.rs:123:1
    |
123 | impl<'a, 'tcx, 'v> Visitor<'v> for DivergenceVisitor<'a, 'tcx> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/eval_order_dependence.rs:289:1
    |
289 | impl<'v, 't> Visitor<'v> for ReadVisitor<'v, 't> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/functions.rs:154:1
    |
154 | impl<'a, 'tcx, 'v> hir::intravisit::Visitor<'v> for DerefVisitor<'a, 'tcx> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/let_if_seq.rs:137:1
    |
137 | impl<'a, 'tcx, 'v> hir::intravisit::Visitor<'v> for UsedVisitor<'a, 'tcx> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/lifetimes.rs:269:1
    |
269 | impl<'v, 't> Visitor<'v> for RefVisitor<'v, 't> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/lifetimes.rs:330:1
    |
330 | impl<'v> Visitor<'v> for LifetimeChecker {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/loops.rs:752:1
    |
752 | impl<'a> Visitor<'a> for UsedVisitor {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/loops.rs:772:1
    |
772 | impl<'v, 't> Visitor<'v> for VarVisitor<'v, 't> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/loops.rs:837:1
    |
837 | impl<'v, 't> Visitor<'v> for VarUsedAfterLoopVisitor<'v, 't> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/loops.rs:945:1
    |
945 | impl<'v, 't> Visitor<'v> for IncrementVisitor<'v, 't> {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
    --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/loops.rs:1000:1
     |
1000 | impl<'v, 't> Visitor<'v> for InitializeVisitor<'v, 't> {
     | ^ missing `nested_visit_map` in implementation
     |
     = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/mut_mut.rs:50:1
   |
50 | impl<'a, 'tcx, 'v> intravisit::Visitor<'v> for MutVisitor<'a, 'tcx> {
   | ^ missing `nested_visit_map` in implementation
   |
   = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/shadow.rs:361:1
    |
361 |   impl<'v> Visitor<'v> for ContainsSelf {
    |  _^ starting here...
362 | |     fn visit_name(&mut self, _: Span, name: Name) {
363 | |         if self.name == name {
364 | |             self.result = true;
365 | |         }
366 | |     }
367 | | }
    | |_^ ...ending here: missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/types.rs:622:1
    |
622 | impl<'v> Visitor<'v> for TypeComplexityVisitor {
    | ^ missing `nested_visit_map` in implementation
    |
    = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error[E0046]: not all trait items implemented, missing: `nested_visit_map`
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.103/src/unused_label.rs:64:1
   |
64 | impl<'v> Visitor<'v> for UnusedLabelVisitor {
   | ^ missing `nested_visit_map` in implementation
   |
   = note: `nested_visit_map` from trait: `fn(&'this mut Self) -> rustc::hir::intravisit::NestedVisitorMap<'this, 'v>`

error: aborting due to 20 previous errors

error: failed to compile `clippy v0.0.103`, intermediate artifacts can be found at `/tmp/leshow/cargo-install.7PHcL6aKPrcp`

Caused by:
  Could not compile `clippy_lints`.

To learn more, run the command again with --verbose.
@sinkuu
Copy link
Contributor

sinkuu commented Dec 11, 2016

This is the same error as #1371

@mcarton
Copy link
Member

mcarton commented Dec 11, 2016

Indeed, clippy has been broken for a while now. AFAIK the latest rustc version that works is 1.15.0-nightly (2217bd7 2016-11-25) for clippy v0.0.103.
See #1373 for progress about that.

@mcarton mcarton closed this as completed Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants