[INFO] cloning repository https://github.com/brucedo/advent-Challenge1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brucedo/advent-Challenge1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrucedo%2Fadvent-Challenge1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrucedo%2Fadvent-Challenge1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 881044009205492c4283253873da74bea318d6d3 [INFO] building brucedo/advent-Challenge1 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrucedo%2Fadvent-Challenge1" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/brucedo/advent-Challenge1 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/brucedo/advent-Challenge1 [INFO] finished tweaking git repo https://github.com/brucedo/advent-Challenge1 [INFO] tweaked toml for git repo https://github.com/brucedo/advent-Challenge1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/brucedo/advent-Challenge1 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f64804f7f9406a04336ab805cc44d5151de876de1757a44d3fc49b7c6e6b8423 [INFO] running `Command { std: "docker" "start" "-a" "f64804f7f9406a04336ab805cc44d5151de876de1757a44d3fc49b7c6e6b8423", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f64804f7f9406a04336ab805cc44d5151de876de1757a44d3fc49b7c6e6b8423", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f64804f7f9406a04336ab805cc44d5151de876de1757a44d3fc49b7c6e6b8423", kill_on_drop: false }` [INFO] [stdout] f64804f7f9406a04336ab805cc44d5151de876de1757a44d3fc49b7c6e6b8423 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4f686a40c31487139da23c38c10690aa19cbc31614c349b1433eada517783c7 [INFO] running `Command { std: "docker" "start" "-a" "d4f686a40c31487139da23c38c10690aa19cbc31614c349b1433eada517783c7", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling libc v0.2.109 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling challenge1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/day/day10.rs:103:93 [INFO] [stdout] | [INFO] [stdout] 103 | println!("The middle score which apparently matters is {}, located at index {}", scores[(scores.len() / 2)], (scores.len() / 2)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - println!("The middle score which apparently matters is {}, located at index {}", scores[(scores.len() / 2)], (scores.len() / 2)) [INFO] [stdout] 103 + println!("The middle score which apparently matters is {}, located at index {}", scores[scores.len() / 2], (scores.len() / 2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `hash_map::Entry` [INFO] [stdout] --> src/day/day15.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::BufReader, fs::File, collections::{HashMap, hash_map::Entry, BinaryHeap}, cmp::Ordering}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> src/day/day16.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp, }; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msb_mask` [INFO] [stdout] --> src/day/day16.rs:596:17 [INFO] [stdout] | [INFO] [stdout] 596 | let mut msb_mask:u8; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_msb_mask` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_x` is never used [INFO] [stdout] --> src/day/day17.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn simulate_x(x_min: i32, x_max: i32) -> HashMap> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_y` is never used [INFO] [stdout] --> src/day/day17.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn simulate_y(y_min: i32, y_max: i32) -> HashMap> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/graph/graph.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | struct Node [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 10 | { [INFO] [stdout] 11 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/day/day8.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | drop(display); [INFO] [stdout] | ^^^^^-------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 150 - drop(display); [INFO] [stdout] 150 + let _ = display; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.41s [INFO] running `Command { std: "docker" "inspect" "d4f686a40c31487139da23c38c10690aa19cbc31614c349b1433eada517783c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4f686a40c31487139da23c38c10690aa19cbc31614c349b1433eada517783c7", kill_on_drop: false }` [INFO] [stdout] d4f686a40c31487139da23c38c10690aa19cbc31614c349b1433eada517783c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d1d55946d83fcb96f549ad8e7c3a4e0ebc202e7df546c1a32b40dd4ca917d16 [INFO] running `Command { std: "docker" "start" "-a" "9d1d55946d83fcb96f549ad8e7c3a4e0ebc202e7df546c1a32b40dd4ca917d16", kill_on_drop: false }` [INFO] [stderr] Compiling challenge1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/day/day10.rs:103:93 [INFO] [stdout] | [INFO] [stdout] 103 | println!("The middle score which apparently matters is {}, located at index {}", scores[(scores.len() / 2)], (scores.len() / 2)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - println!("The middle score which apparently matters is {}, located at index {}", scores[(scores.len() / 2)], (scores.len() / 2)) [INFO] [stdout] 103 + println!("The middle score which apparently matters is {}, located at index {}", scores[scores.len() / 2], (scores.len() / 2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `hash_map::Entry` [INFO] [stdout] --> src/day/day15.rs:1:50 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::BufReader, fs::File, collections::{HashMap, hash_map::Entry, BinaryHeap}, cmp::Ordering}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> src/day/day16.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cmp, }; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/day/day17.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::day::day11::part_one` [INFO] [stdout] --> src/day/day17.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | use crate::day::day11::part_one; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msb_mask` [INFO] [stdout] --> src/day/day16.rs:596:17 [INFO] [stdout] | [INFO] [stdout] 596 | let mut msb_mask:u8; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_msb_mask` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y_velocities` is never read [INFO] [stdout] --> src/day/day17.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | y_velocities = simulate_y(min_y, max_y); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day/day17.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | let mut min_y = -2; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day/day17.rs:362:13 [INFO] [stdout] | [INFO] [stdout] 362 | let mut max_y = -1; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day/day17.rs:367:13 [INFO] [stdout] | [INFO] [stdout] 367 | let mut min_y = -10; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day/day17.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 368 | let mut max_y = -5; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_x` is never used [INFO] [stdout] --> src/day/day17.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn simulate_x(x_min: i32, x_max: i32) -> HashMap> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/graph/graph.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | struct Node [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 10 | { [INFO] [stdout] 11 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/day/day8.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | drop(display); [INFO] [stdout] | ^^^^^-------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 150 - drop(display); [INFO] [stdout] 150 + let _ = display; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.60s [INFO] running `Command { std: "docker" "inspect" "9d1d55946d83fcb96f549ad8e7c3a4e0ebc202e7df546c1a32b40dd4ca917d16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d1d55946d83fcb96f549ad8e7c3a4e0ebc202e7df546c1a32b40dd4ca917d16", kill_on_drop: false }` [INFO] [stdout] 9d1d55946d83fcb96f549ad8e7c3a4e0ebc202e7df546c1a32b40dd4ca917d16