[INFO] cloning repository https://github.com/niko047/Computer-Science-in-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/niko047/Computer-Science-in-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniko047%2FComputer-Science-in-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniko047%2FComputer-Science-in-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fbd1cf2633151140dc25d3bb4b07c00a43537225 [INFO] checking niko047/Computer-Science-in-Rust against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniko047%2FComputer-Science-in-Rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/niko047/Computer-Science-in-Rust on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/niko047/Computer-Science-in-Rust [INFO] finished tweaking git repo https://github.com/niko047/Computer-Science-in-Rust [INFO] tweaked toml for git repo https://github.com/niko047/Computer-Science-in-Rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/niko047/Computer-Science-in-Rust 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fce4a8e58fbab410fa98b2e86d8cd48e5260e06abe081515b143e0f74313f19 [INFO] running `Command { std: "docker" "start" "-a" "9fce4a8e58fbab410fa98b2e86d8cd48e5260e06abe081515b143e0f74313f19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fce4a8e58fbab410fa98b2e86d8cd48e5260e06abe081515b143e0f74313f19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fce4a8e58fbab410fa98b2e86d8cd48e5260e06abe081515b143e0f74313f19", kill_on_drop: false }` [INFO] [stdout] 9fce4a8e58fbab410fa98b2e86d8cd48e5260e06abe081515b143e0f74313f19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c09ebd511b6d3206e7a859022009f86303690f516d1615edaaecfec40e62d578 [INFO] running `Command { std: "docker" "start" "-a" "c09ebd511b6d3206e7a859022009f86303690f516d1615edaaecfec40e62d578", kill_on_drop: false }` [INFO] [stderr] Checking ComputerScience v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:203:73 [INFO] [stdout] | [INFO] [stdout] 203 | let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {(idx / 2)}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 - let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {(idx / 2)}; [INFO] [stdout] 203 + let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {idx / 2}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:203:73 [INFO] [stdout] | [INFO] [stdout] 203 | let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {(idx / 2)}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 - let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {(idx / 2)}; [INFO] [stdout] 203 + let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {idx / 2}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..capacity { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_node` [INFO] [stdout] --> src/main.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | let start_node = adjacent_nodes[0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedListItem` is never constructed [INFO] [stdout] --> src/main.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct LinkedListItem<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_link` are never used [INFO] [stdout] --> src/main.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a, T> LinkedListItem<'a, T> { [INFO] [stdout] | --------------------------------- associated items in this implementation [INFO] [stdout] 44 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn add_link(&mut self, pointer: &'a LinkedListItem) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Stack { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 77 | fn new(maxsize: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn push(&mut self, element: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn pop(&mut self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Queue` is never constructed [INFO] [stdout] --> src/main.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | struct Queue{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used [INFO] [stdout] --> src/main.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Queue { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 118 | pub fn new(maxsize: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn push(&mut self, item: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn pop(&mut self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Side` is never used [INFO] [stdout] --> src/main.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | enum Side { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeNode` is never constructed [INFO] [stdout] --> src/main.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/main.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl TreeNode { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 163 | fn new(value:T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn add(&mut self, tree: Box>, side: Side) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinHeap` is never constructed [INFO] [stdout] --> src/main.rs:191:8 [INFO] [stdout] | [INFO] [stdout] 191 | struct MinHeap (Vec); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, and `remove` are never used [INFO] [stdout] --> src/main.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 193 | / impl MinHeap [INFO] [stdout] 194 | | where T : PartialOrd + Copy { [INFO] [stdout] | |___________________________- associated items in this implementation [INFO] [stdout] 195 | fn new(capacity: usize) -> MinHeap { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | fn insert(&mut self, elem: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | fn remove(&mut self, index: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_connection` is never used [INFO] [stdout] --> src/main.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 279 | impl BiGraph { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 295 | fn remove_connection(&mut self, node1:usize, node2:usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:285:25 [INFO] [stdout] | [INFO] [stdout] 285 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..capacity { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_node` [INFO] [stdout] --> src/main.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | let start_node = adjacent_nodes[0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let mut i3 = LinkedListItem::new(27); [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/main.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | let mut t2 = TreeNode::new(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/main.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | let mut t3 = TreeNode::new(7); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_connection` is never used [INFO] [stdout] --> src/main.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 279 | impl BiGraph { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 295 | fn remove_connection(&mut self, node1:usize, node2:usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:285:25 [INFO] [stdout] | [INFO] [stdout] 285 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] running `Command { std: "docker" "inspect" "c09ebd511b6d3206e7a859022009f86303690f516d1615edaaecfec40e62d578", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c09ebd511b6d3206e7a859022009f86303690f516d1615edaaecfec40e62d578", kill_on_drop: false }` [INFO] [stdout] c09ebd511b6d3206e7a859022009f86303690f516d1615edaaecfec40e62d578 [INFO] checking niko047/Computer-Science-in-Rust against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniko047%2FComputer-Science-in-Rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/niko047/Computer-Science-in-Rust on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/niko047/Computer-Science-in-Rust [INFO] finished tweaking git repo https://github.com/niko047/Computer-Science-in-Rust [INFO] tweaked toml for git repo https://github.com/niko047/Computer-Science-in-Rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/niko047/Computer-Science-in-Rust 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94ff4f3869eed8bcfdb70d140f8c6137522f120259061ea9f73a08c9746b45af [INFO] running `Command { std: "docker" "start" "-a" "94ff4f3869eed8bcfdb70d140f8c6137522f120259061ea9f73a08c9746b45af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94ff4f3869eed8bcfdb70d140f8c6137522f120259061ea9f73a08c9746b45af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94ff4f3869eed8bcfdb70d140f8c6137522f120259061ea9f73a08c9746b45af", kill_on_drop: false }` [INFO] [stdout] 94ff4f3869eed8bcfdb70d140f8c6137522f120259061ea9f73a08c9746b45af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6069f681c24d69261c72dfbf8832083aa6dfc32dc1ca98471a6f30b6aa622a1c [INFO] running `Command { std: "docker" "start" "-a" "6069f681c24d69261c72dfbf8832083aa6dfc32dc1ca98471a6f30b6aa622a1c", kill_on_drop: false }` [INFO] [stderr] Checking ComputerScience v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:203:73 [INFO] [stdout] | [INFO] [stdout] 203 | let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {(idx / 2)}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 - let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {(idx / 2)}; [INFO] [stdout] 203 + let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {idx / 2}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:203:73 [INFO] [stdout] | [INFO] [stdout] 203 | let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {(idx / 2)}; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 203 - let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {(idx / 2)}; [INFO] [stdout] 203 + let predecessor_idx = if idx % 2 == 0 {(idx / 2) - 1} else {idx / 2}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..capacity { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_node` [INFO] [stdout] --> src/main.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | let start_node = adjacent_nodes[0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedListItem` is never constructed [INFO] [stdout] --> src/main.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct LinkedListItem<'a, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_link` are never used [INFO] [stdout] --> src/main.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a, T> LinkedListItem<'a, T> { [INFO] [stdout] | --------------------------------- associated items in this implementation [INFO] [stdout] 44 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn add_link(&mut self, pointer: &'a LinkedListItem) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Stack { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 77 | fn new(maxsize: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn push(&mut self, element: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn pop(&mut self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Queue` is never constructed [INFO] [stdout] --> src/main.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | struct Queue{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used [INFO] [stdout] --> src/main.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Queue { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 118 | pub fn new(maxsize: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn push(&mut self, item: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | fn pop(&mut self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Side` is never used [INFO] [stdout] --> src/main.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | enum Side { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeNode` is never constructed [INFO] [stdout] --> src/main.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/main.rs:163:8 [INFO] [stdout] | [INFO] [stdout] 162 | impl TreeNode { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 163 | fn new(value:T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn add(&mut self, tree: Box>, side: Side) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinHeap` is never constructed [INFO] [stdout] --> src/main.rs:191:8 [INFO] [stdout] | [INFO] [stdout] 191 | struct MinHeap (Vec); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, and `remove` are never used [INFO] [stdout] --> src/main.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 193 | / impl MinHeap [INFO] [stdout] 194 | | where T : PartialOrd + Copy { [INFO] [stdout] | |___________________________- associated items in this implementation [INFO] [stdout] 195 | fn new(capacity: usize) -> MinHeap { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | fn insert(&mut self, elem: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | fn remove(&mut self, index: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove_connection` is never used [INFO] [stdout] --> src/main.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 279 | impl BiGraph { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 295 | fn remove_connection(&mut self, node1:usize, node2: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/main.rs:165:19 [INFO] [stdout] | [INFO] [stdout] 163 | fn new(value:T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 164 | TreeNode { [INFO] [stdout] 165 | left: None, [INFO] [stdout] | ^^^^ [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:166:20 [INFO] [stdout] | [INFO] [stdout] 163 | fn new(value:T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 166 | right: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:285:25 [INFO] [stdout] | [INFO] [stdout] 285 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..capacity { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_node` [INFO] [stdout] --> src/main.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | let start_node = adjacent_nodes[0]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let mut i3 = LinkedListItem::new(27); [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/main.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | let mut t2 = TreeNode::new(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/main.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | let mut t3 = TreeNode::new(7); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ComputerScience` (bin "ComputerScience") due to 3 previous errors; 21 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `remove_connection` is never used [INFO] [stdout] --> src/main.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 279 | impl BiGraph { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 295 | fn remove_connection(&mut self, node1:usize, node2:usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/main.rs:165:19 [INFO] [stdout] | [INFO] [stdout] 163 | fn new(value:T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 164 | TreeNode { [INFO] [stdout] 165 | left: None, [INFO] [stdout] | ^^^^ [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:166:20 [INFO] [stdout] | [INFO] [stdout] 163 | fn new(value:T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 166 | right: None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 285 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:285:25 [INFO] [stdout] | [INFO] [stdout] 285 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | if node1 < 0 || node2 < 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ComputerScience` (bin "ComputerScience" test) due to 3 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6069f681c24d69261c72dfbf8832083aa6dfc32dc1ca98471a6f30b6aa622a1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6069f681c24d69261c72dfbf8832083aa6dfc32dc1ca98471a6f30b6aa622a1c", kill_on_drop: false }` [INFO] [stdout] 6069f681c24d69261c72dfbf8832083aa6dfc32dc1ca98471a6f30b6aa622a1c