[INFO] updating cached repository TheWaWaR/cita-create-genesis [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/TheWaWaR/cita-create-genesis [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/TheWaWaR/cita-create-genesis" "work/ex/clippy-test-run/sources/stable/gh/TheWaWaR/cita-create-genesis"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/TheWaWaR/cita-create-genesis'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/TheWaWaR/cita-create-genesis" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/TheWaWaR/cita-create-genesis"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/TheWaWaR/cita-create-genesis'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 472f49e98401937633f24bd5d1b677e88ee7d4f6 [INFO] sha for GitHub repo TheWaWaR/cita-create-genesis: 472f49e98401937633f24bd5d1b677e88ee7d4f6 [INFO] validating manifest of TheWaWaR/cita-create-genesis on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of TheWaWaR/cita-create-genesis on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing TheWaWaR/cita-create-genesis [INFO] finished frobbing TheWaWaR/cita-create-genesis [INFO] frobbed toml for TheWaWaR/cita-create-genesis written to work/ex/clippy-test-run/sources/stable/gh/TheWaWaR/cita-create-genesis/Cargo.toml [INFO] started frobbing TheWaWaR/cita-create-genesis [INFO] finished frobbing TheWaWaR/cita-create-genesis [INFO] frobbed toml for TheWaWaR/cita-create-genesis written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/TheWaWaR/cita-create-genesis/Cargo.toml [INFO] crate TheWaWaR/cita-create-genesis has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting TheWaWaR/cita-create-genesis against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-7/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/TheWaWaR/cita-create-genesis:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 24cfeac65e8cf49a1287b3c9181b58bd5061a09939ccd4b084bc7f030e9ddf88 [INFO] running `"docker" "start" "-a" "24cfeac65e8cf49a1287b3c9181b58bd5061a09939ccd4b084bc7f030e9ddf88"` [INFO] [stderr] Blocking waiting for file lock on the registry index [INFO] [stderr] Checking etcommon-hexutil v0.2.3 [INFO] [stderr] Checking elastic-array-plus v0.9.1 [INFO] [stderr] Checking byteorder v1.2.4 [INFO] [stderr] Checking blockchain v0.2.0 [INFO] [stderr] Checking error-chain v0.11.0 [INFO] [stderr] Checking rustc-hex v2.0.0 [INFO] [stderr] Compiling secp256k1-plus v0.5.7 [INFO] [stderr] Checking generic-array v0.8.3 [INFO] [stderr] Compiling uint v0.2.1 [INFO] [stderr] Compiling ethereum-types v0.3.2 [INFO] [stderr] Checking ethereum-types-serialize v0.2.1 [INFO] [stderr] Checking fixed-hash v0.2.1 [INFO] [stderr] Checking block-buffer v0.2.0 [INFO] [stderr] Checking digest v0.6.2 [INFO] [stderr] Checking etcommon-rlp v0.2.3 [INFO] [stderr] Checking ethbloom v0.5.0 [INFO] [stderr] Checking sha3 v0.6.0 [INFO] [stderr] Checking sha2 v0.6.0 [INFO] [stderr] Checking ripemd160 v0.6.0 [INFO] [stderr] Checking etcommon-bigint v0.2.9 [INFO] [stderr] Checking etcommon-trie v0.3.11 [INFO] [stderr] Checking etcommon-bloom v0.2.1 [INFO] [stderr] Checking etcommon-block-core v0.1.0 [INFO] [stderr] Checking etcommon-block v0.3.4 [INFO] [stderr] Checking sputnikvm v0.10.1 [INFO] [stderr] Checking sputnikvm-network-classic v0.10.0 [INFO] [stderr] Checking sputnikvm-stateful v0.10.0 [INFO] [stderr] Checking ethabi v5.1.1 [INFO] [stderr] Checking cita-create-genesis v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/main.rs:286:30 [INFO] [stderr] | [INFO] [stderr] 286 | gas_limit: Gas::from(10000000000000u64), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: consider: `10_000_000_000_000u64` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/main.rs:293:20 [INFO] [stderr] | [INFO] [stderr] 293 | timestamp: 1533284582935, [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider: `1_533_284_582_935` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/main.rs:372:20 [INFO] [stderr] | [INFO] [stderr] 372 | timestamp: 1533284582935, [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider: `1_533_284_582_935` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/main.rs:286:30 [INFO] [stderr] | [INFO] [stderr] 286 | gas_limit: Gas::from(10000000000000u64), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: consider: `10_000_000_000_000u64` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/main.rs:293:20 [INFO] [stderr] | [INFO] [stderr] 293 | timestamp: 1533284582935, [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider: `1_533_284_582_935` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/main.rs:372:20 [INFO] [stderr] | [INFO] [stderr] 372 | timestamp: 1533284582935, [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider: `1_533_284_582_935` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/main.rs:271:9 [INFO] [stderr] | [INFO] [stderr] 271 | format!("0x00") [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider using .to_string(): `"0x00".to_string()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_format)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] [INFO] [stderr] error: using `clone` on a double-reference; this will copy the reference instead of cloning the inner type [INFO] [stderr] --> src/main.rs:360:47 [INFO] [stderr] | [INFO] [stderr] 360 | let mut full_path = PathBuf::from(directory.clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::clone_double_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref [INFO] [stderr] help: try dereferencing it [INFO] [stderr] | [INFO] [stderr] 360 | let mut full_path = PathBuf::from(&(*directory).clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: or try being explicit about what type to clone [INFO] [stderr] | [INFO] [stderr] 360 | let mut full_path = PathBuf::from(&str::clone(directory)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:491:26 [INFO] [stderr] | [INFO] [stderr] 491 | let right_item = right.alloc.get(address).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&right.alloc[address]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::get_unwrap)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `cita-create-genesis`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/main.rs:271:9 [INFO] [stderr] | [INFO] [stderr] 271 | format!("0x00") [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider using .to_string(): `"0x00".to_string()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_format)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] [INFO] [stderr] error: using `clone` on a double-reference; this will copy the reference instead of cloning the inner type [INFO] [stderr] --> src/main.rs:360:47 [INFO] [stderr] | [INFO] [stderr] 360 | let mut full_path = PathBuf::from(directory.clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::clone_double_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref [INFO] [stderr] help: try dereferencing it [INFO] [stderr] | [INFO] [stderr] 360 | let mut full_path = PathBuf::from(&(*directory).clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: or try being explicit about what type to clone [INFO] [stderr] | [INFO] [stderr] 360 | let mut full_path = PathBuf::from(&str::clone(directory)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a HashMap. Using `[]` is more clear and more concise [INFO] [stderr] --> src/main.rs:491:26 [INFO] [stderr] | [INFO] [stderr] 491 | let right_item = right.alloc.get(address).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&right.alloc[address]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::get_unwrap)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `cita-create-genesis`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "24cfeac65e8cf49a1287b3c9181b58bd5061a09939ccd4b084bc7f030e9ddf88"` [INFO] running `"docker" "rm" "-f" "24cfeac65e8cf49a1287b3c9181b58bd5061a09939ccd4b084bc7f030e9ddf88"` [INFO] [stdout] 24cfeac65e8cf49a1287b3c9181b58bd5061a09939ccd4b084bc7f030e9ddf88