[INFO] cloning repository https://github.com/AndreiBarsan/2021-advent-of-code
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AndreiBarsan/2021-advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndreiBarsan%2F2021-advent-of-code", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndreiBarsan%2F2021-advent-of-code'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a34e376e88514b6d35b997f2cce354765ec327eb
[INFO] checking AndreiBarsan/2021-advent-of-code/a34e376e88514b6d35b997f2cce354765ec327eb against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndreiBarsan%2F2021-advent-of-code" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/AndreiBarsan/2021-advent-of-code on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/AndreiBarsan/2021-advent-of-code
[INFO] finished tweaking git repo https://github.com/AndreiBarsan/2021-advent-of-code
[INFO] tweaked toml for git repo https://github.com/AndreiBarsan/2021-advent-of-code written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/AndreiBarsan/2021-advent-of-code 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6adcd319e008a1037c97730ae2ea216a2265f0938bba29e755e18b823ae7f648
[INFO] running `Command { std: "docker" "start" "-a" "6adcd319e008a1037c97730ae2ea216a2265f0938bba29e755e18b823ae7f648", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6adcd319e008a1037c97730ae2ea216a2265f0938bba29e755e18b823ae7f648", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6adcd319e008a1037c97730ae2ea216a2265f0938bba29e755e18b823ae7f648", kill_on_drop: false }`
[INFO] [stdout] 6adcd319e008a1037c97730ae2ea216a2265f0938bba29e755e18b823ae7f648
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e7fca2344eabaa63347469c0b4c39b8356894268525b351dc214407eb2d3a3aa
[INFO] running `Command { std: "docker" "start" "-a" "e7fca2344eabaa63347469c0b4c39b8356894268525b351dc214407eb2d3a3aa", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.109
[INFO] [stderr] Compiling num-traits v0.2.14
[INFO] [stderr] Compiling version_check v0.9.3
[INFO] [stderr] Compiling proc-macro2 v1.0.32
[INFO] [stderr] Compiling syn v1.0.82
[INFO] [stderr] Compiling num-integer v0.1.44
[INFO] [stderr] Checking rawpointer v0.2.1
[INFO] [stderr] Compiling indexmap v1.7.0
[INFO] [stderr] Checking matrixmultiply v0.3.2
[INFO] [stderr] Compiling num-rational v0.4.0
[INFO] [stderr] Compiling unicode-segmentation v1.8.0
[INFO] [stderr] Checking ppv-lite86 v0.2.15
[INFO] [stderr] Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr] Compiling proc-macro-error v1.0.4
[INFO] [stderr] Compiling nom v7.1.0
[INFO] [stderr] Checking either v1.6.1
[INFO] [stderr] Compiling paste v1.0.7
[INFO] [stderr] Compiling heck v0.3.3
[INFO] [stderr] Checking regex-syntax v0.6.25
[INFO] [stderr] Checking itertools v0.10.3
[INFO] [stderr] Compiling quote v1.0.10
[INFO] [stderr] Checking getrandom v0.2.3
[INFO] [stderr] Checking num-complex v0.4.0
[INFO] [stderr] Checking rand_core v0.6.3
[INFO] [stderr] Checking approx v0.5.1
[INFO] [stderr] Checking rand_chacha v0.3.1
[INFO] [stderr] Checking atty v0.2.14
[INFO] [stderr] Checking terminal_size v0.1.17
[INFO] [stderr] Checking clap v2.34.0
[INFO] [stderr] Checking simba v0.5.1
[INFO] [stderr] Checking console v0.15.0
[INFO] [stderr] Checking ndarray v0.15.4
[INFO] [stderr] Checking rand v0.8.4
[INFO] [stderr] Checking noisy_float v0.2.0
[INFO] [stderr] Checking minimal-lexical v0.2.1
[INFO] [stderr] Checking number_prefix v0.4.0
[INFO] [stderr] Checking regex v1.5.4
[INFO] [stderr] Checking indicatif v0.16.2
[INFO] [stderr] Checking ndarray-stats v0.5.0
[INFO] [stderr] Compiling structopt-derive v0.4.18
[INFO] [stderr] Compiling nalgebra-macros v0.1.0
[INFO] [stderr] Checking structopt v0.3.25
[INFO] [stderr] Checking nalgebra v0.27.1
[INFO] [stderr] Checking aoc21 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout] --> src/bin/04_squid_bingo.rs:120:21
[INFO] [stdout] |
[INFO] [stdout] 120 | let mut n_won = (0 as usize);
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 120 - let mut n_won = (0 as usize);
[INFO] [stdout] 120 + let mut n_won = 0 as usize;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/bin/01_depth_scanning.rs:56:8
[INFO] [stdout] |
[INFO] [stdout] 51 | fn read_lines
(filename: P) -> io::Result>>
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 55 | let file = File::open(filename)?;
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 56 | Ok(io::BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/bin/25_sea_cucumber.rs:92:14
[INFO] [stdout] |
[INFO] [stdout] 92 | let (mut new_state, mut n_moved) = step(&state);
[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/bin/25_sea_cucumber.rs:92:29
[INFO] [stdout] |
[INFO] [stdout] 92 | let (mut new_state, mut n_moved) = step(&state);
[INFO] [stdout] | ----^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `row_idx`
[INFO] [stdout] --> src/bin/04_squid_bingo.rs:98:17
[INFO] [stdout] |
[INFO] [stdout] 98 | let mut row_idx = 0;
[INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_row_idx`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `board`
[INFO] [stdout] --> src/bin/04_squid_bingo.rs:122:9
[INFO] [stdout] |
[INFO] [stdout] 122 | for board in &mut boards {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/bin/04_squid_bingo.rs:98:13
[INFO] [stdout] |
[INFO] [stdout] 98 | let mut row_idx = 0;
[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/bin/04_squid_bingo.rs:112:13
[INFO] [stdout] |
[INFO] [stdout] 112 | let mut board = Board {
[INFO] [stdout] | ----^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
[INFO] [stdout] --> src/bin/04_squid_bingo.rs:158:8
[INFO] [stdout] |
[INFO] [stdout] 153 | fn read_lines(filename: P) -> io::Result>>
[INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 157 | let file = File::open(filename)?;
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 158 | Ok(io::BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] |
[INFO] [stdout] = warning: this changes meaning in Rust 2024
[INFO] [stdout] = note: for more information, see issue #123739
[INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 1 previous error; 5 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `ndarray::prelude::*`
[INFO] [stdout] --> src/bin/07_crabs.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use ndarray::prelude::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `ndarray::Array`
[INFO] [stdout] --> src/bin/07_crabs.rs:2:5
[INFO] [stdout] |
[INFO] [stdout] 2 | use ndarray::Array;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `aview1`
[INFO] [stdout] --> src/bin/07_crabs.rs:3:22
[INFO] [stdout] |
[INFO] [stdout] 3 | use ndarray::{array, aview1, Axis};
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `aoc21` (bin "04_squid_bingo" test) due to 2 previous errors; 5 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `demo_data`
[INFO] [stdout] --> src/bin/07_crabs.rs:9:9
[INFO] [stdout] |
[INFO] [stdout] 9 | let demo_data = array![16., 1., 2., 0., 4., 2., 7., 1., 2., 14.];
[INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_demo_data`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `aoc21` (bin "01_depth_scanning" test) due to 2 previous errors
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: value assigned to `packet_start` is never read
[INFO] [stdout] --> src/bin/16_packet_decoder.rs:159:17
[INFO] [stdout] |
[INFO] [stdout] 159 | let mut packet_start = 0;
[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: value assigned to `end` is never read
[INFO] [stdout] --> src/bin/16_packet_decoder.rs:160:17
[INFO] [stdout] |
[INFO] [stdout] 160 | let mut end = 0;
[INFO] [stdout] | ^^^
[INFO] [stdout] |
[INFO] [stdout] = help: maybe it is overwritten before being read?
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/bin/16_packet_decoder.rs:158:13
[INFO] [stdout] |
[INFO] [stdout] 158 | let mut bit_type_id = bits[6];
[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: unreachable pattern
[INFO] [stdout] --> src/bin/16_packet_decoder.rs:458:13
[INFO] [stdout] |
[INFO] [stdout] 458 | _ => panic!("Unsupported oepration type for packet: {:?}", packet),
[INFO] [stdout] | ^ no value can reach this
[INFO] [stdout] |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout] --> src/bin/16_packet_decoder.rs:458:13
[INFO] [stdout] |
[INFO] [stdout] 433 | OperatorType::SUM => sub.iter().map(|packet| evaluate(packet)).sum::(),
[INFO] [stdout] | ----------------- matches some of the same values
[INFO] [stdout] 434 | OperatorType::PROD => sub.iter().map(|packet| evaluate(packet)).product::(),
[INFO] [stdout] | ------------------ matches some of the same values
[INFO] [stdout] 435 | OperatorType::MIN => sub.iter().map(|packet| evaluate(packet)).min().unwrap(),
[INFO] [stdout] | ----------------- matches some of the same values
[INFO] [stdout] 436 | OperatorType::MAX => sub.iter().map(|packet| evaluate(packet)).max().unwrap(),
[INFO] [stdout] | ----------------- matches some of the same values
[INFO] [stdout] ...
[INFO] [stdout] 458 | _ => panic!("Unsupported oepration type for packet: {:?}", packet),
[INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable
[INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] running `Command { std: "docker" "inspect" "e7fca2344eabaa63347469c0b4c39b8356894268525b351dc214407eb2d3a3aa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e7fca2344eabaa63347469c0b4c39b8356894268525b351dc214407eb2d3a3aa", kill_on_drop: false }`
[INFO] [stdout] e7fca2344eabaa63347469c0b4c39b8356894268525b351dc214407eb2d3a3aa