[INFO] cloning repository https://github.com/dabat/adventofcode2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dabat/adventofcode2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdabat%2Fadventofcode2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdabat%2Fadventofcode2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5871e3d50d8d191008e74057973a7047aa0e7fa4 [INFO] checking dabat/adventofcode2020 against master#158f00a1c5175648af6f6099b075f78d1d014a28 for pr-121251 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdabat%2Fadventofcode2020" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dabat/adventofcode2020 on toolchain 158f00a1c5175648af6f6099b075f78d1d014a28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+158f00a1c5175648af6f6099b075f78d1d014a28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dabat/adventofcode2020 [INFO] finished tweaking git repo https://github.com/dabat/adventofcode2020 [INFO] tweaked toml for git repo https://github.com/dabat/adventofcode2020 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dabat/adventofcode2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+158f00a1c5175648af6f6099b075f78d1d014a28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking dabat/adventofcode2020 against try#b4fc5dbf0bc33be331f9d893db5b3a794f29724a+rustflags=-Dexplicit_range -Dtrait_impl_range -Wrange_syntax -Wrange_bounds for pr-121251 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdabat%2Fadventofcode2020" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dabat/adventofcode2020 on toolchain b4fc5dbf0bc33be331f9d893db5b3a794f29724a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dabat/adventofcode2020 [INFO] finished tweaking git repo https://github.com/dabat/adventofcode2020 [INFO] tweaked toml for git repo https://github.com/dabat/adventofcode2020 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dabat/adventofcode2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e18a5c9cd1aecb591f4f4d99a703c2645c6f186167ab5e9e051879af79d2a6b2 [INFO] running `Command { std: "docker" "start" "-a" "e18a5c9cd1aecb591f4f4d99a703c2645c6f186167ab5e9e051879af79d2a6b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e18a5c9cd1aecb591f4f4d99a703c2645c6f186167ab5e9e051879af79d2a6b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e18a5c9cd1aecb591f4f4d99a703c2645c6f186167ab5e9e051879af79d2a6b2", kill_on_drop: false }` [INFO] [stdout] e18a5c9cd1aecb591f4f4d99a703c2645c6f186167ab5e9e051879af79d2a6b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dexplicit_range -Dtrait_impl_range -Wrange_syntax -Wrange_bounds" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 00f8e1958ec1a012db16dcefa6d6f01ecb2c5f95bdd1e014d07c4d16ea8cef0a [INFO] running `Command { std: "docker" "start" "-a" "00f8e1958ec1a012db16dcefa6d6f01ecb2c5f95bdd1e014d07c4d16ea8cef0a", kill_on_drop: false }` [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking adventofcode2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day2.rs:101:43 [INFO] [stdout] | [INFO] [stdout] 101 | let instance_one = test_value.get(position1..=position1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W range-syntax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day2.rs:103:43 [INFO] [stdout] | [INFO] [stdout] 103 | let instance_two = test_value.get(position2..=position2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/day4.rs:254:30 [INFO] [stdout] | [INFO] [stdout] 254 | height = hgt[0..hgt.find("cm").unwrap()].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/day4.rs:260:30 [INFO] [stdout] | [INFO] [stdout] 260 | height = hgt[0..hgt.find("in").unwrap()].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeFrom` range syntax [INFO] [stdout] --> src/day4.rs:281:39 [INFO] [stdout] | [INFO] [stdout] 281 | let hair_color = &hcl[1..]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeFrom` range syntax [INFO] [stdout] --> src/day4.rs:356:69 [INFO] [stdout] | [INFO] [stdout] 356 | .map(|(key, value)| (String::from(key), String::from(&value[1..]))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/day5.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 88 | for index in 0..seat_ids.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day5.rs:126:27 [INFO] [stdout] | [INFO] [stdout] 126 | let rows: Vec = (0..=127).collect(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day5.rs:127:41 [INFO] [stdout] | [INFO] [stdout] 127 | let row_code = &coded_boarding_pass[0..=6]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day5.rs:151:30 [INFO] [stdout] | [INFO] [stdout] 151 | let columns: Vec = (0..=7).collect(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day5.rs:153:44 [INFO] [stdout] | [INFO] [stdout] 153 | let column_code = &coded_boarding_pass[7..=9]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeFrom` range syntax [INFO] [stdout] --> src/day7.rs:148:67 [INFO] [stdout] | [INFO] [stdout] 148 | .map(|(key, value)| (key.to_string(), String::from(&value[14..]))) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day2.rs:101:43 [INFO] [stdout] | [INFO] [stdout] 101 | let instance_one = test_value.get(position1..=position1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-W range-syntax` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/day9.rs:173:51 [INFO] [stdout] | [INFO] [stdout] 173 | let elements_to_check = &self.numbers[self.start_index..self.end_index]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day9.rs:240:44 [INFO] [stdout] | [INFO] [stdout] 240 | let mut numbers = self.numbers[self.start_index..=self.end_index].to_owned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day2.rs:103:43 [INFO] [stdout] | [INFO] [stdout] 103 | let instance_two = test_value.get(position2..=position2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/day4.rs:254:30 [INFO] [stdout] | [INFO] [stdout] 254 | height = hgt[0..hgt.find("cm").unwrap()].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/day4.rs:260:30 [INFO] [stdout] | [INFO] [stdout] 260 | height = hgt[0..hgt.find("in").unwrap()].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeFrom` range syntax [INFO] [stdout] --> src/day4.rs:281:39 [INFO] [stdout] | [INFO] [stdout] 281 | let hair_color = &hcl[1..]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeFrom` range syntax [INFO] [stdout] --> src/day4.rs:356:69 [INFO] [stdout] | [INFO] [stdout] 356 | .map(|(key, value)| (String::from(key), String::from(&value[1..]))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/day5.rs:88:18 [INFO] [stdout] | [INFO] [stdout] 88 | for index in 0..seat_ids.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day5.rs:126:27 [INFO] [stdout] | [INFO] [stdout] 126 | let rows: Vec = (0..=127).collect(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day5.rs:127:41 [INFO] [stdout] | [INFO] [stdout] 127 | let row_code = &coded_boarding_pass[0..=6]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day5.rs:151:30 [INFO] [stdout] | [INFO] [stdout] 151 | let columns: Vec = (0..=7).collect(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day5.rs:153:44 [INFO] [stdout] | [INFO] [stdout] 153 | let column_code = &coded_boarding_pass[7..=9]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeFrom` range syntax [INFO] [stdout] --> src/day7.rs:148:67 [INFO] [stdout] | [INFO] [stdout] 148 | .map(|(key, value)| (key.to_string(), String::from(&value[14..]))) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Range` range syntax [INFO] [stdout] --> src/day9.rs:173:51 [INFO] [stdout] | [INFO] [stdout] 173 | let elements_to_check = &self.numbers[self.start_index..self.end_index]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `RangeInclusive` range syntax [INFO] [stdout] --> src/day9.rs:240:44 [INFO] [stdout] | [INFO] [stdout] 240 | let mut numbers = self.numbers[self.start_index..=self.end_index].to_owned(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&usize` instead of cloning the inner type [INFO] [stdout] --> src/day8.rs:199:51 [INFO] [stdout] | [INFO] [stdout] 199 | .sorted_by_key(|(index, is_swapped)| index.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&usize` instead of cloning the inner type [INFO] [stdout] --> src/day8.rs:199:51 [INFO] [stdout] | [INFO] [stdout] 199 | .sorted_by_key(|(index, is_swapped)| index.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "00f8e1958ec1a012db16dcefa6d6f01ecb2c5f95bdd1e014d07c4d16ea8cef0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00f8e1958ec1a012db16dcefa6d6f01ecb2c5f95bdd1e014d07c4d16ea8cef0a", kill_on_drop: false }` [INFO] [stdout] 00f8e1958ec1a012db16dcefa6d6f01ecb2c5f95bdd1e014d07c4d16ea8cef0a