[INFO] updating cached repository bugabinga/aoc [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/bugabinga/aoc [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/bugabinga/aoc" "work/ex/clippy-test-run/sources/stable/gh/bugabinga/aoc"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/bugabinga/aoc'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/bugabinga/aoc" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bugabinga/aoc"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bugabinga/aoc'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 14e3426460660ba382d3edc45b00cab9a20f75fd [INFO] sha for GitHub repo bugabinga/aoc: 14e3426460660ba382d3edc45b00cab9a20f75fd [INFO] validating manifest of bugabinga/aoc 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 bugabinga/aoc 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 bugabinga/aoc [INFO] finished frobbing bugabinga/aoc [INFO] frobbed toml for bugabinga/aoc written to work/ex/clippy-test-run/sources/stable/gh/bugabinga/aoc/Cargo.toml [INFO] started frobbing bugabinga/aoc [INFO] finished frobbing bugabinga/aoc [INFO] frobbed toml for bugabinga/aoc written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bugabinga/aoc/Cargo.toml [INFO] crate bugabinga/aoc 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 bugabinga/aoc against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-4/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/bugabinga/aoc:/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] ef5f0815ce826e601f8399e5145c78e969f22ead42399fd531d1f2d52e235de9 [INFO] running `"docker" "start" "-a" "ef5f0815ce826e601f8399e5145c78e969f22ead42399fd531d1f2d52e235de9"` [INFO] [stderr] Checking aoc v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error: this file contains an un-closed delimiter [INFO] [stderr] --> src/day_two.rs:69:30 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn part_two() -> String { [INFO] [stderr] | - un-closed delimiter [INFO] [stderr] 69 | let ids = INPUT.lines(); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] error: this file contains an un-closed delimiter [INFO] [stderr] --> src/day_two.rs:69:30 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn part_two() -> String { [INFO] [stderr] | - un-closed delimiter [INFO] [stderr] 69 | let ids = INPUT.lines(); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/day_one.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | const INPUT:&'static str = include_str!("day_one_input.txt"); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/day_one.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | / return INPUT [INFO] [stderr] 25 | | .lines() [INFO] [stderr] 26 | | .map(|line| line.parse::().expect("Input is trusted!")) [INFO] [stderr] 27 | | .sum(); [INFO] [stderr] | |_______________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] help: remove `return` as shown [INFO] [stderr] | [INFO] [stderr] 24 | INPUT [INFO] [stderr] 25 | .lines() [INFO] [stderr] 26 | .map(|line| line.parse::().expect("Input is trusted!")) [INFO] [stderr] 27 | .sum() [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/day_two.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | const INPUT:&'static str = include_str!("day_two_input.txt"); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/day_two.rs:68:29 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn part_two() -> String { [INFO] [stderr] | _____________________________^ [INFO] [stderr] 69 | | let ids = INPUT.lines(); [INFO] [stderr] | |_____________________________^ expected struct `std::string::String`, found () [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::string::String` [INFO] [stderr] found type `()` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `aoc`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/day_one.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | const INPUT:&'static str = include_str!("day_one_input.txt"); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/day_one.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | / return INPUT [INFO] [stderr] 25 | | .lines() [INFO] [stderr] 26 | | .map(|line| line.parse::().expect("Input is trusted!")) [INFO] [stderr] 27 | | .sum(); [INFO] [stderr] | |_______________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] help: remove `return` as shown [INFO] [stderr] | [INFO] [stderr] 24 | INPUT [INFO] [stderr] 25 | .lines() [INFO] [stderr] 26 | .map(|line| line.parse::().expect("Input is trusted!")) [INFO] [stderr] 27 | .sum() [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/day_two.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | const INPUT:&'static str = include_str!("day_two_input.txt"); [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/day_two.rs:68:29 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn part_two() -> String { [INFO] [stderr] | _____________________________^ [INFO] [stderr] 69 | | let ids = INPUT.lines(); [INFO] [stderr] | |_____________________________^ expected struct `std::string::String`, found () [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::string::String` [INFO] [stderr] found type `()` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `aoc`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "ef5f0815ce826e601f8399e5145c78e969f22ead42399fd531d1f2d52e235de9"` [INFO] running `"docker" "rm" "-f" "ef5f0815ce826e601f8399e5145c78e969f22ead42399fd531d1f2d52e235de9"` [INFO] [stdout] ef5f0815ce826e601f8399e5145c78e969f22ead42399fd531d1f2d52e235de9