Skip to content

Clippy v0.0.156 fails to build on nightly (981ce7d8d 2017-09-03) #2018

Closed
@CAD97

Description

@CAD97

The change: rust-lang/rust#44253

Install attempt
D:\Christopher\Documents\Code\Rust\rust-unic>rustup run nightly cargo install clippy --force
    Updating registry `https://github.com/rust-lang/crates.io-index`
  Installing clippy v0.0.156
   Compiling bitflags v0.9.1
   Compiling quine-mc_cluskey v0.2.4
   Compiling serde v1.0.11
   Compiling either v1.1.0
   Compiling regex-syntax v0.4.1
   Compiling unicode-xid v0.0.4
   Compiling dtoa v0.4.2
   Compiling itoa v0.3.3
   Compiling semver-parser v0.7.0
   Compiling matches v0.1.6
   Compiling quote v0.3.15
   Compiling lazy_static v0.2.8
   Compiling num-traits v0.1.40
   Compiling pulldown-cmark v0.0.15
   Compiling unicode-normalization v0.1.5
   Compiling getopts v0.2.14
   Compiling itertools v0.6.2
   Compiling synom v0.11.3
   Compiling syn v0.11.11
   Compiling semver v0.6.0
   Compiling toml v0.4.5
   Compiling serde_json v1.0.2
   Compiling serde_derive_internals v0.15.1
   Compiling serde_derive v1.0.11
   Compiling clippy_lints v0.0.156
   Compiling cargo_metadata v0.2.3
error[E0432]: unresolved import `rustc::middle::region::CodeExtent`
 --> C:\Users\Christopher\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.156\src\loops.rs:9:5
  |
9 | use rustc::middle::region::CodeExtent;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `CodeExtent` in `middle::region`

error[E0599]: no method named `region_maps` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
  --> C:\Users\Christopher\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.156\src\escape.rs:73:35
   |
73 |         let region_maps = &cx.tcx.region_maps(fn_def_id);
   |                                   ^^^^^^^^^^^

error[E0599]: no method named `region_maps` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
   --> C:\Users\Christopher\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.156\src\loops.rs:624:46
    |
624 |                     let region_maps = cx.tcx.region_maps(parent_def_id);
    |                                              ^^^^^^^^^^^

error[E0599]: no method named `region_maps` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
    --> C:\Users\Christopher\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.156\src\loops.rs:1071:46
     |
1071 |                     let extent = self.cx.tcx.region_maps(parent_def_id).var_scope(hir_id.local_id);
     |                                              ^^^^^^^^^^^

error[E0599]: no method named `region_maps` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
   --> C:\Users\Christopher\.cargo\registry\src\github.com-1ecc6299db9ec823\clippy_lints-0.0.156\src\needless_pass_by_value.rs:100:39
    |
100 |             let region_maps = &cx.tcx.region_maps(fn_def_id);
    |                                       ^^^^^^^^^^^

error: aborting due to 5 previous errors

error: Could not compile `clippy_lints`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `clippy v0.0.156`, intermediate artifacts can be found at `D:\Temp\cargo-install.gIp27rNCestp`

Caused by:
  build failed

Metadata

Metadata

Assignees

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