[INFO] cloning repository https://github.com/and-mora/rust-playground [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/and-mora/rust-playground" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fand-mora%2Frust-playground", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fand-mora%2Frust-playground'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d11aad468b0246119bb66b5a502524c7e40426a2 [INFO] building and-mora/rust-playground 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%2Fand-mora%2Frust-playground" "/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/and-mora/rust-playground 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/and-mora/rust-playground [INFO] finished tweaking git repo https://github.com/and-mora/rust-playground [INFO] tweaked toml for git repo https://github.com/and-mora/rust-playground written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/and-mora/rust-playground 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] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] f31299a115bd58655fbc55cbdd4bafc7dc89124e031054497e422ce61cafebcb [INFO] running `Command { std: "docker" "start" "-a" "f31299a115bd58655fbc55cbdd4bafc7dc89124e031054497e422ce61cafebcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f31299a115bd58655fbc55cbdd4bafc7dc89124e031054497e422ce61cafebcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f31299a115bd58655fbc55cbdd4bafc7dc89124e031054497e422ce61cafebcb", kill_on_drop: false }` [INFO] [stdout] f31299a115bd58655fbc55cbdd4bafc7dc89124e031054497e422ce61cafebcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 2fd9fde3aeb0f7333d12036a8b1d76cc19ce150a2f085c00f0307920eb251469 [INFO] running `Command { std: "docker" "start" "-a" "2fd9fde3aeb0f7333d12036a8b1d76cc19ce150a2f085c00f0307920eb251469", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling comprehensive_day_2_afternoon v0.1.0 (/opt/rustwide/workdir/comprehensive_day_2_afternoon) [INFO] [stderr] Compiling comprehensive_day_2_morning_health_stats v0.1.0 (/opt/rustwide/workdir/comprehensive_day_2_morning_health_stats) [INFO] [stderr] Compiling comprehensive_day_2_morning_points_polygons v0.1.0 (/opt/rustwide/workdir/comprehensive_day_2_morning_points_polygons) [INFO] [stderr] Compiling collatz_theorem v0.1.0 (/opt/rustwide/workdir/collatz_theorem) [INFO] [stderr] Compiling comprehensive_day_1_afternoon v0.1.0 (/opt/rustwide/workdir/comprehensive_day_1_afternoon) [INFO] [stderr] Compiling matrixmultiply v0.3.2 [INFO] [stdout] warning: function `collatz_iterative` is never used [INFO] [stdout] --> collatz_theorem/src/main.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn collatz_iterative(number: u128) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> comprehensive_day_1_afternoon/src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 55 | / return self.books.iter().fold(self.books.first(), |mut state, x| { [INFO] [stdout] 56 | | // each iteration, we check the oldest between the state and the current [INFO] [stdout] 57 | | if state.unwrap().year > x.year { [INFO] [stdout] 58 | | state = Some(x); [INFO] [stdout] 59 | | } [INFO] [stdout] 60 | | state [INFO] [stdout] 61 | | }); [INFO] [stdout] | |__________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 78 | self.books.iter().min_by_key(|book| book.year) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling getrandom v0.2.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num-complex v0.4.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ndarray v0.15.6 [INFO] [stderr] Compiling guessing_game v0.1.0 (/opt/rustwide/workdir/guessing_game) [INFO] [stderr] Compiling comprehensive_day_1_morning v0.1.0 (/opt/rustwide/workdir/comprehensive_day_1_morning) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.66s [INFO] running `Command { std: "docker" "inspect" "2fd9fde3aeb0f7333d12036a8b1d76cc19ce150a2f085c00f0307920eb251469", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fd9fde3aeb0f7333d12036a8b1d76cc19ce150a2f085c00f0307920eb251469", kill_on_drop: false }` [INFO] [stdout] 2fd9fde3aeb0f7333d12036a8b1d76cc19ce150a2f085c00f0307920eb251469 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 2085cc43a6188bc209d0c435a86ee52c15dc477c06fdcfb96a385ab96115edf8 [INFO] running `Command { std: "docker" "start" "-a" "2085cc43a6188bc209d0c435a86ee52c15dc477c06fdcfb96a385ab96115edf8", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling comprehensive_day_1_afternoon v0.1.0 (/opt/rustwide/workdir/comprehensive_day_1_afternoon) [INFO] [stderr] Compiling comprehensive_day_2_morning_health_stats v0.1.0 (/opt/rustwide/workdir/comprehensive_day_2_morning_health_stats) [INFO] [stderr] Compiling collatz_theorem v0.1.0 (/opt/rustwide/workdir/collatz_theorem) [INFO] [stderr] Compiling comprehensive_day_2_afternoon v0.1.0 (/opt/rustwide/workdir/comprehensive_day_2_afternoon) [INFO] [stderr] Compiling comprehensive_day_2_morning_points_polygons v0.1.0 (/opt/rustwide/workdir/comprehensive_day_2_morning_points_polygons) [INFO] [stderr] Compiling comprehensive_day_1_morning v0.1.0 (/opt/rustwide/workdir/comprehensive_day_1_morning) [INFO] [stderr] Compiling guessing_game v0.1.0 (/opt/rustwide/workdir/guessing_game) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> comprehensive_day_1_afternoon/src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 55 | / return self.books.iter().fold(self.books.first(), |mut state, x| { [INFO] [stdout] 56 | | // each iteration, we check the oldest between the state and the current [INFO] [stdout] 57 | | if state.unwrap().year > x.year { [INFO] [stdout] 58 | | state = Some(x); [INFO] [stdout] 59 | | } [INFO] [stdout] 60 | | state [INFO] [stdout] 61 | | }); [INFO] [stdout] | |__________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 78 | self.books.iter().min_by_key(|book| book.year) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collatz_iterative` is never used [INFO] [stdout] --> collatz_theorem/src/main.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn collatz_iterative(number: u128) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] running `Command { std: "docker" "inspect" "2085cc43a6188bc209d0c435a86ee52c15dc477c06fdcfb96a385ab96115edf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2085cc43a6188bc209d0c435a86ee52c15dc477c06fdcfb96a385ab96115edf8", kill_on_drop: false }` [INFO] [stdout] 2085cc43a6188bc209d0c435a86ee52c15dc477c06fdcfb96a385ab96115edf8