I was hoping to try out the available Leaf examples but I wasn't able to get the CLI to compile.
When I ran cargo build, several thousand errors all related to clippy killed the compile (truncated below). I'm guessing it's because I installed the nightly build of Rust (1.9.0-nightly (7b0b80ae2 2016-03-02)) and the old version of clippy isn't compatible with it:
➜ leaf-examples git:(master) cargo build
Compiling gcc v0.3.19
Compiling regex-syntax v0.2.2
Compiling modifier v0.1.0
Compiling unicase v1.0.1
Compiling bitflags v0.3.2
Compiling winapi v0.2.5
Compiling glob v0.2.10
Compiling clippy v0.0.23
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:8:5: 8:28 error: a type named `Node` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:8 use rustc::front::map::Node;
^~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:8:5: 8:28 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:5:5: 5:20 note: previous import of `Node` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/ptr_arg.rs:5 use rustc::lint::*;
^~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `Local` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `Local` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `TyParam` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `TyParam` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `Mod` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `Mod` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `ForeignMod` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `ForeignMod` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `PrimTy` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `PrimTy` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 error: a type named `Variant` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:7:5: 7:25 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6:5: 6:32 note: previous import of `Variant` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/consts.rs:6 use rustc::middle::def::Def::*;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:3:5: 3:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:3 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:3:5: 3:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/loops.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:2:5: 2:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:2 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:2:5: 2:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:1:5: 1:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lifetimes.rs:1 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:3:5: 3:23 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:3 use syntax::ast::Ident;
^~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:3:5: 3:23 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/map_clone.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:4:5: 4:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:4 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:4:5: 4:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:3:5: 3:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:3 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:3:5: 3:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:3 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:3:5: 3:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/utils.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:5:5: 5:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:5 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:5:5: 5:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:4:5: 4:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/attrs.rs:4 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:3:5: 3:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:3 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:3:5: 3:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/shadow.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:3:5: 3:17 error: a type named `Ident` has already been imported in this module [E0252]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:3 use reexport::*;
^~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:3:5: 3:17 help: run `rustc --explain E0252` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:2:5: 2:25 note: previous import of `Ident` here
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/types.rs:2 use rustc_front::hir::*;
^~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lib.rs:20:5: 20:28 error: unresolved import `rustc::plugin::Registry`. Could not find `plugin` in `rustc` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lib.rs:20 use rustc::plugin::Registry;
^~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/lib.rs:20:5: 20:28 help: run `rustc --explain E0432` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:7:5: 7:31 error: unresolved import `rustc_front::visit::FnKind`. Could not find `visit` in `rustc_front` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:7 use rustc_front::visit::FnKind;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/misc.rs:7:5: 7:31 help: run `rustc --explain E0432` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/open_options.rs:5:5: 5:31 error: unresolved import `syntax::ast::Lit_::LitBool`. Could not find `Lit_` in `syntax::ast` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/open_options.rs:5 use syntax::ast::Lit_::LitBool;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/open_options.rs:5:5: 5:31 help: run `rustc --explain E0432` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2:26: 2:35 error: unresolved import `rustc::middle::def::DefStruct`. There is no `DefStruct` in `rustc::middle::def` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2 use rustc::middle::def::{DefStruct, DefVariant};
^~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2:26: 2:35 help: run `rustc --explain E0432` to see a detailed explanation
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2:37: 2:47 error: unresolved import `rustc::middle::def::DefVariant`. There is no `DefVariant` in `rustc::middle::def` [E0432]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:2 use rustc::middle::def::{DefStruct, DefVariant};
^~~~~~~~~~
....
^~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:32:22: 32:31 error: `DefStruct` is not an enum variant, struct or const [E0418]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:32 Some(DefStruct(..)) |
^~~~~~~~~
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:33:22: 33:32 error: `DefVariant` is not an enum variant, struct or const [E0418]
/Users/Jon/.cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.23/src/no_effect.rs:33 Some(DefVariant(..)) => {
^~~~~~~~~~
Compiling url v0.2.37
error: cannot continue compilation due to previous error
Build failed, waiting for other jobs to finish...
Could not compile `clippy`.
It looks like the cuticula and phloem libraries are using version 0.0.23 of clippy but the most recent version of clippy is 0.0.45. Also, it looks like you guys deprecated phloem.
Am I doing something wrong here or does this repo just need to be cleaned of bit rot (happy to work on it)?
I was hoping to try out the available Leaf examples but I wasn't able to get the CLI to compile.
When I ran
cargo build
, several thousand errors all related toclippy
killed the compile (truncated below). I'm guessing it's because I installed thenightly
build of Rust (1.9.0-nightly (7b0b80ae2 2016-03-02)
) and the old version ofclippy
isn't compatible with it:It looks like the
cuticula
andphloem
libraries are using version0.0.23
of clippy but the most recent version of clippy is0.0.45
. Also, it looks like you guys deprecatedphloem
.Am I doing something wrong here or does this repo just need to be cleaned of bit rot (happy to work on it)?
Meta