clippy 0.0.194

A bunch of helpful lints to avoid common pitfalls in Rust
Build #95912 2018-04-15T13:08:28.825495+00:00
# rustc version
rustc 1.26.0-dev (0eb87c9bf 2018-03-16)
# docs.rs version
cratesfyi 0.5.0 (579f83b 2018-03-05)

# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading clippy v0.0.194
Fresh serde v1.0.38
Compiling clippy v0.0.194
Fresh lazy_static v1.0.0
Fresh percent-encoding v1.0.1
Fresh libc v0.2.40
Fresh bitflags v0.9.1
Fresh unicode-xid v0.1.0
Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.194/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=7bceec07b85bc302 -C extra-filename=-7bceec07b85bc302 --out-dir /home/cratesfyi/cratesfyi/debug/build/clippy-7bceec07b85bc302 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Fresh semver-parser v0.7.0
Fresh matches v0.1.6
Fresh utf8-ranges v1.0.0
Fresh if_chain v0.1.2
Fresh either v1.5.0
Fresh itertools v0.7.8
Fresh void v1.0.2
Fresh unreachable v1.0.0
Fresh toml v0.4.6
Fresh unicode-bidi v0.3.4
Fresh ucd-util v0.1.1
Fresh getopts v0.2.17
Fresh quine-mc_cluskey v0.2.4
Fresh unicode-normalization v0.1.5
Fresh idna v0.1.4
Fresh url v1.7.0
Fresh proc-macro2 v0.3.6
Fresh thread_local v0.3.5
Fresh quote v0.5.1
Fresh syn v0.13.1
Fresh serde_derive_internals v0.23.1
Fresh serde_derive v1.0.38
Compiling semver v0.9.0
Fresh pulldown-cmark v0.1.2
Fresh memchr v2.0.1
Running `rustc --crate-name semver .cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="serde"' -C metadata=820f174884dff946 -C extra-filename=-820f174884dff946 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern semver_parser=/home/cratesfyi/cratesfyi/debug/deps/libsemver_parser-4a8c032208a2f4ee.rlib --extern-version semver_parser=semver-parser,0.7.0 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-7ce4795bf6790820.rlib --extern-version serde=serde,1.0.38 --cap-lints allow`
Fresh regex-syntax v0.5.5
Fresh aho-corasick v0.6.4
Fresh regex v0.2.10
Running `/home/cratesfyi/cratesfyi/debug/build/clippy-7bceec07b85bc302/build-script-build`
Compiling clippy_lints v0.0.194
Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=b72b266768849322 -C extra-filename=-b72b266768849322 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-809dd4ee1d9ed616.rlib --extern-version pulldown_cmark=pulldown-cmark,0.1.2 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-3606d0b775511b0c.rlib --extern-version regex_syntax=regex-syntax,0.5.5 --extern quine_mc_cluskey=/home/cratesfyi/cratesfyi/debug/deps/libquine_mc_cluskey-6d8f73fdf7c11d33.rlib --extern-version quine_mc_cluskey=quine-mc_cluskey,0.2.4 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-7ce4795bf6790820.rlib --extern-version serde=serde,1.0.38 --extern if_chain=/home/cratesfyi/cratesfyi/debug/deps/libif_chain-0604e6b6fde947ad.rlib --extern-version if_chain=if_chain,0.1.2 --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern url=/home/cratesfyi/cratesfyi/debug/deps/liburl-bae103a4d2fe2fa7.rlib --extern-version url=url,1.7.0 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-2751bb8d1f83af94.so --extern-version serde_derive=serde_derive,1.0.38 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-d78457efc2ee8353.rlib --extern-version lazy_static=lazy_static,1.0.0 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-83164368626c5cc0.rlib --extern-version toml=toml,0.4.6 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-a15b6570ce0da9e4.rlib --extern-version itertools=itertools,0.7.8 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-820f174884dff946.rlib --extern-version semver=semver,0.9.0 --cap-lints allow`
error[E0609]: no field `ident` on type `&syntax::ast::PathSegment`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/utils/mod.rs:240:25
|
240 |         .all(|(a, b)| a.ident.name == *b)
|                         ^^^^^

error[E0609]: no field `ident` on type `&syntax::ast::MetaItem`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/utils/conf.rs:16:16
|
16 |         if arg.ident.name == "conf_file" {
|                ^^^^^

error[E0609]: no field `ident` on type `&syntax::ast::MetaItem`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/utils/author.rs:466:65
|
466 |                 ast::NestedMetaItemKind::MetaItem(ref it) => it.ident.name == "author",
|                                                                 ^^^^^

error[E0609]: no field `ident` on type `&syntax::ast::MetaItem`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/attrs.rs:135:27
|
135 |                     if mi.ident.name == "since";
|                           ^^^^^

error[E0609]: no field `ident` on type `&syntax::ast::MetaItem`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/attrs.rs:331:28
|
331 |         mi.is_word() && mi.ident.name == expected
|                            ^^^^^

error[E0609]: no field `span` on type `syntax::ast::Ident`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/const_static_lifetime.rs:59:52
|
59 |                                     lifetime.ident.span,
|                                                    ^^^^ unknown field
|
= note: available fields are: `name`, `ctxt`

error[E0609]: no field `ident` on type `syntax::ast::Variant_`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/enum_variants.rs:122:14
|
122 |     var.node.ident.name.as_str()
|              ^^^^^ unknown field
|
= note: available fields are: `name`, `attrs`, `data`, `disr_expr`

error[E0609]: no field `span` on type `syntax::ast::Ident`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/misc_early.rs:198:34
|
198 |                         ty.ident.span,
|                                  ^^^^ unknown field
|
= note: available fields are: `name`, `ctxt`

error[E0609]: no field `ident` on type `&syntax::ast::PathSegment`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/misc_early.rs:212:18
|
212 |                 .ident
|                  ^^^^^

error[E0609]: no field `name` on type `syntax::codemap::Spanned<syntax::ast::Ident>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/misc_early.rs:271:38
|
271 |                 let arg_name = ident.name.to_string();
|                                      ^^^^ unknown field
|
= note: available fields are: `node`, `span`

error[E0609]: no field `ident` on type `&syntax::ast::PathSegment`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/misc_early.rs:337:53
|
337 |                     if ident == (&path.segments[0]).ident {
|                                                     ^^^^^

error[E0609]: no field `name` on type `syntax::codemap::Spanned<syntax::ast::Ident>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/non_expressive_names.rs:107:78
|
107 |             PatKind::Ident(_, ident, _) => self.check_name(ident.span, ident.name),
|                                                                              ^^^^ unknown field
|
= note: available fields are: `node`, `span`

error[E0609]: no field `name` on type `syntax::codemap::Spanned<syntax::ast::Ident>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/returns.rs:117:46
|
117 |             if match_path_ast(path, &[&ident.name.as_str()]);
|                                              ^^^^ unknown field
|
= note: available fields are: `node`, `span`

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/types.rs:979:24
|
979 |                 if let ty::TyRawPtr(from_ptr_ty) = &cast_from.sty;
|                        ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ty::TyRawPtr(from_ptr_ty)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/types.rs:980:24
|
980 |                 if let ty::TyRawPtr(to_ptr_ty) = &cast_to.sty;
|                        ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ty::TyRawPtr(to_ptr_ty)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/unsafe_removed_from_name.rs:46:29
|
46 |         UseTreeKind::Simple(Some(new_name)) => {
|                             ^^^^^^^^^^^^^^ expected struct `syntax::ast::Ident`, found enum `std::option::Option`
|
= note: expected type `syntax::ast::Ident`
found type `std::option::Option<_>`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/unsafe_removed_from_name.rs:55:29
|
55 |         UseTreeKind::Simple(None) |
|                             ^^^^ expected struct `syntax::ast::Ident`, found enum `std::option::Option`
|
= note: expected type `syntax::ast::Ident`
found type `std::option::Option<_>`

error[E0609]: no field `ident` on type `&syntax::ast::PathSegment`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/unsafe_removed_from_name.rs:52:18
|
52 |                 .ident;
|                  ^^^^^

error: aborting due to 18 previous errors

Some errors occurred: E0308, E0609, E0658.
For more information about an error, try `rustc --explain E0308`.
thread 'main' panicked at 'Error(
CargoError(
ChainedError {
error: Could not compile `clippy_lints`.,
cause: process didn't exit successfully: `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.194/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=b72b266768849322 -C extra-filename=-b72b266768849322 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-809dd4ee1d9ed616.rlib --extern-version pulldown_cmark=pulldown-cmark,0.1.2 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-3606d0b775511b0c.rlib --extern-version regex_syntax=regex-syntax,0.5.5 --extern quine_mc_cluskey=/home/cratesfyi/cratesfyi/debug/deps/libquine_mc_cluskey-6d8f73fdf7c11d33.rlib --extern-version quine_mc_cluskey=quine-mc_cluskey,0.2.4 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-7ce4795bf6790820.rlib --extern-version serde=serde,1.0.38 --extern if_chain=/home/cratesfyi/cratesfyi/debug/deps/libif_chain-0604e6b6fde947ad.rlib --extern-version if_chain=if_chain,0.1.2 --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern url=/home/cratesfyi/cratesfyi/debug/deps/liburl-bae103a4d2fe2fa7.rlib --extern-version url=url,1.7.0 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-2751bb8d1f83af94.so --extern-version serde_derive=serde_derive,1.0.38 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-d78457efc2ee8353.rlib --extern-version lazy_static=lazy_static,1.0.0 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-83164368626c5cc0.rlib --extern-version toml=toml,0.4.6 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-a15b6570ce0da9e4.rlib --extern-version itertools=itertools,0.7.8 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-820f174884dff946.rlib --extern-version semver=semver,0.9.0 --cap-lints allow` (exit code: 101)
}
),
State {
next_error: None,
backtrace: None
}
)', src/bin/cratesfyi.rs:142:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.