[INFO] updating cached repository snoyberg/lightsout-rs [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/snoyberg/lightsout-rs [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/snoyberg/lightsout-rs" "work/ex/clippy-test-run/sources/stable/gh/snoyberg/lightsout-rs"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/snoyberg/lightsout-rs'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/snoyberg/lightsout-rs" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/snoyberg/lightsout-rs"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/snoyberg/lightsout-rs'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 76008bccf87b0685164b2da45eeaf82f440a9de8 [INFO] sha for GitHub repo snoyberg/lightsout-rs: 76008bccf87b0685164b2da45eeaf82f440a9de8 [INFO] validating manifest of snoyberg/lightsout-rs 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 snoyberg/lightsout-rs 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 snoyberg/lightsout-rs [INFO] finished frobbing snoyberg/lightsout-rs [INFO] frobbed toml for snoyberg/lightsout-rs written to work/ex/clippy-test-run/sources/stable/gh/snoyberg/lightsout-rs/Cargo.toml [INFO] started frobbing snoyberg/lightsout-rs [INFO] finished frobbing snoyberg/lightsout-rs [INFO] frobbed toml for snoyberg/lightsout-rs written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/snoyberg/lightsout-rs/Cargo.toml [INFO] crate snoyberg/lightsout-rs 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 snoyberg/lightsout-rs against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-3/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/snoyberg/lightsout-rs:/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] fab072be9de0fdb963ccac365915b85e2597b4938749d686530188c6ad9fb141 [INFO] running `"docker" "start" "-a" "fab072be9de0fdb963ccac365915b85e2597b4938749d686530188c6ad9fb141"` [INFO] [stderr] Compiling stdweb-internal-runtime v0.1.2 [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling base-x v0.2.3 [INFO] [stderr] Checking discard v1.0.4 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Compiling stdweb-internal-macros v0.2.2 [INFO] [stderr] Compiling stdweb v0.4.10 [INFO] [stderr] Compiling syn v0.15.22 [INFO] [stderr] Compiling serde_json v1.0.33 [INFO] [stderr] Checking rand v0.6.1 [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Compiling stdweb-derive v0.5.1 [INFO] [stderr] Checking lightsout v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0599]: no method named `clone` found for type `Game` in the current scope [INFO] [stderr] --> src/main.rs:346:31 [INFO] [stderr] | [INFO] [stderr] 147 | struct Game { [INFO] [stderr] | ----------- method `clone` not found for this [INFO] [stderr] ... [INFO] [stderr] 346 | let mut game2 = game1.clone(); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `clone`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `std::clone::Clone` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0599`. [INFO] [stderr] error: Could not compile `lightsout`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: method is never used: `new_random` [INFO] [stderr] --> src/main.rs:166:5 [INFO] [stderr] | [INFO] [stderr] 166 | fn new_random(difficulty: usize, rng: &mut R) -> Game { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: method is never used: `all_off` [INFO] [stderr] --> src/main.rs:220:5 [INFO] [stderr] | [INFO] [stderr] 220 | fn all_off(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_usize` [INFO] [stderr] --> src/main.rs:258:1 [INFO] [stderr] | [INFO] [stderr] 258 | fn read_usize(buffer: &mut String, stdin: &std::io::Stdin, stdout: &std::io::Stdout, label: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/main.rs:84:5 [INFO] [stderr] | [INFO] [stderr] 84 | / fn lock<'a>(&'a mut self) -> ReactiveMut<'a, T> { [INFO] [stderr] 85 | | ReactiveMut { [INFO] [stderr] 86 | | reactive: self [INFO] [stderr] 87 | | } [INFO] [stderr] 88 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is only used to index `toggles`. [INFO] [stderr] --> src/main.rs:171:18 [INFO] [stderr] | [INFO] [stderr] 171 | for i in 0..difficulty { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 171 | for in toggles.iter_mut().take(difficulty) { [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `toggles` [INFO] [stderr] --> src/main.rs:176:18 [INFO] [stderr] | [INFO] [stderr] 176 | for i in 0..25 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 176 | for (i, ) in toggles.iter().enumerate() { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "fab072be9de0fdb963ccac365915b85e2597b4938749d686530188c6ad9fb141"` [INFO] running `"docker" "rm" "-f" "fab072be9de0fdb963ccac365915b85e2597b4938749d686530188c6ad9fb141"` [INFO] [stdout] fab072be9de0fdb963ccac365915b85e2597b4938749d686530188c6ad9fb141