[INFO] updating cached repository Lytigas/aoc18 [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/Lytigas/aoc18 [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/Lytigas/aoc18" "work/ex/clippy-test-run/sources/stable/gh/Lytigas/aoc18"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/Lytigas/aoc18'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/Lytigas/aoc18" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Lytigas/aoc18"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Lytigas/aoc18'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 19119b935de2ab5a39ad8a6367f1390c8ca75e35 [INFO] sha for GitHub repo Lytigas/aoc18: 19119b935de2ab5a39ad8a6367f1390c8ca75e35 [INFO] validating manifest of Lytigas/aoc18 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 Lytigas/aoc18 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 Lytigas/aoc18 [INFO] finished frobbing Lytigas/aoc18 [INFO] frobbed toml for Lytigas/aoc18 written to work/ex/clippy-test-run/sources/stable/gh/Lytigas/aoc18/Cargo.toml [INFO] started frobbing Lytigas/aoc18 [INFO] finished frobbing Lytigas/aoc18 [INFO] frobbed toml for Lytigas/aoc18 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Lytigas/aoc18/Cargo.toml [INFO] crate Lytigas/aoc18 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 Lytigas/aoc18 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-2/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/Lytigas/aoc18:/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] c344a8563984318c638cadeb49a1f7e30fc4daf2f3ecaa421b90296a60ea5de2 [INFO] running `"docker" "start" "-a" "c344a8563984318c638cadeb49a1f7e30fc4daf2f3ecaa421b90296a60ea5de2"` [INFO] [stderr] Checking aoc18 v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> src/day02.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(type_ascription)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0554`. [INFO] [stderr] error: Could not compile `aoc18`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> src/day01.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(type_ascription)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0554`. [INFO] [stderr] error: Could not compile `aoc18`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> src/day02.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(type_ascription)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0554`. [INFO] [stderr] error: Could not compile `aoc18`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> src/day01.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(type_ascription)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0554`. [INFO] [stderr] error: Could not compile `aoc18`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> src/day03.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(type_ascription)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0554`. [INFO] [stderr] error: Could not compile `aoc18`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> src/day03.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(type_ascription)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0554`. [INFO] [stderr] error: Could not compile `aoc18`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: trivial regex [INFO] [stderr] --> src/day04.rs:18:48 [INFO] [stderr] | [INFO] [stderr] 18 | static ref WAKE_RE: Regex = Regex::new(r#"wake"#).unwrap(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivial_regex)] on by default [INFO] [stderr] = help: consider using `str::contains` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex [INFO] [stderr] [INFO] [stderr] warning: trivial regex [INFO] [stderr] --> src/day04.rs:19:49 [INFO] [stderr] | [INFO] [stderr] 19 | static ref SLEEP_RE: Regex = Regex::new(r#"falls"#).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using `str::contains` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/day04.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | / match GUARD_RE.captures(line) { [INFO] [stderr] 32 | | Some(cap) => { [INFO] [stderr] 33 | | vec.push(guard); [INFO] [stderr] 34 | | guard = Guard { [INFO] [stderr] ... | [INFO] [stderr] 40 | | _ => (), [INFO] [stderr] 41 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 31 | if let Some(cap) = GUARD_RE.captures(line) { [INFO] [stderr] 32 | vec.push(guard); [INFO] [stderr] 33 | guard = Guard { [INFO] [stderr] 34 | id: (&cap[1]).parse::().unwrap(), [INFO] [stderr] 35 | ckpt: vec![], [INFO] [stderr] 36 | }; [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/day04.rs:55:33 [INFO] [stderr] | [INFO] [stderr] 55 | let mut lines = INPUT.split("\n").collect::>(); [INFO] [stderr] | ^^^^ help: try using a char instead: `'\n'` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: trivial regex [INFO] [stderr] --> src/day04.rs:18:48 [INFO] [stderr] | [INFO] [stderr] 18 | static ref WAKE_RE: Regex = Regex::new(r#"wake"#).unwrap(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivial_regex)] on by default [INFO] [stderr] = help: consider using `str::contains` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex [INFO] [stderr] [INFO] [stderr] warning: trivial regex [INFO] [stderr] --> src/day04.rs:19:49 [INFO] [stderr] | [INFO] [stderr] 19 | static ref SLEEP_RE: Regex = Regex::new(r#"falls"#).unwrap(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using `str::contains` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/day04.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | / match GUARD_RE.captures(line) { [INFO] [stderr] 32 | | Some(cap) => { [INFO] [stderr] 33 | | vec.push(guard); [INFO] [stderr] 34 | | guard = Guard { [INFO] [stderr] ... | [INFO] [stderr] 40 | | _ => (), [INFO] [stderr] 41 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 31 | if let Some(cap) = GUARD_RE.captures(line) { [INFO] [stderr] 32 | vec.push(guard); [INFO] [stderr] 33 | guard = Guard { [INFO] [stderr] 34 | id: (&cap[1]).parse::().unwrap(), [INFO] [stderr] 35 | ckpt: vec![], [INFO] [stderr] 36 | }; [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/day04.rs:55:33 [INFO] [stderr] | [INFO] [stderr] 55 | let mut lines = INPUT.split("\n").collect::>(); [INFO] [stderr] | ^^^^ help: try using a char instead: `'\n'` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "c344a8563984318c638cadeb49a1f7e30fc4daf2f3ecaa421b90296a60ea5de2"` [INFO] running `"docker" "rm" "-f" "c344a8563984318c638cadeb49a1f7e30fc4daf2f3ecaa421b90296a60ea5de2"` [INFO] [stdout] c344a8563984318c638cadeb49a1f7e30fc4daf2f3ecaa421b90296a60ea5de2