[INFO] cloning repository https://github.com/willtraweek/KnapsackAnalysis_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/willtraweek/KnapsackAnalysis_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwilltraweek%2FKnapsackAnalysis_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwilltraweek%2FKnapsackAnalysis_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b1ac3771a60720bf556f0347b88589d0a921cd91 [INFO] checking willtraweek/KnapsackAnalysis_Rust against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwilltraweek%2FKnapsackAnalysis_Rust" "/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/willtraweek/KnapsackAnalysis_Rust on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/willtraweek/KnapsackAnalysis_Rust [INFO] finished tweaking git repo https://github.com/willtraweek/KnapsackAnalysis_Rust [INFO] tweaked toml for git repo https://github.com/willtraweek/KnapsackAnalysis_Rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/willtraweek/KnapsackAnalysis_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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e667441da1964f7cd3205f152009f9430a9b55f1a6cf1254156ba7cb189cee89 [INFO] running `Command { std: "docker" "start" "-a" "e667441da1964f7cd3205f152009f9430a9b55f1a6cf1254156ba7cb189cee89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e667441da1964f7cd3205f152009f9430a9b55f1a6cf1254156ba7cb189cee89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e667441da1964f7cd3205f152009f9430a9b55f1a6cf1254156ba7cb189cee89", kill_on_drop: false }` [INFO] [stdout] e667441da1964f7cd3205f152009f9430a9b55f1a6cf1254156ba7cb189cee89 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4af1ff1fee7424f488a2c815e21a1d95cb497860b66478931940a68337930577 [INFO] running `Command { std: "docker" "start" "-a" "4af1ff1fee7424f488a2c815e21a1d95cb497860b66478931940a68337930577", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking rand_core v0.6.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking knapsack_analysis_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `package` [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod package; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `package`, create file "src/package.rs" or "src/package/mod.rs" [INFO] [stdout] = note: if there is a `mod package` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `package` [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod package; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `package`, create file "src/package.rs" or "src/package/mod.rs" [INFO] [stdout] = note: if there is a `mod package` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::package::Package` [INFO] [stdout] --> src/utilities/set_creation.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::package::Package as Package; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Package` in `package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::package::Package` [INFO] [stdout] --> src/utilities/set_creation.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::package::Package as Package; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Package` in `package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::package::Package` [INFO] [stdout] --> src/truck.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::package::Package; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `Package` in `package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::package::Package` [INFO] [stdout] --> src/truck.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::package::Package; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `Package` in `package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::package::Package` [INFO] [stdout] --> src/warehouse.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::package::Package; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `Package` in `package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::package::Package` [INFO] [stdout] --> src/warehouse.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::package::Package; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `Package` in `package` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `BinaryHeap`, but its trait bounds were not satisfied [INFO] [stdout] --> src/warehouse.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | self.trucks.push(truck); [INFO] [stdout] | ^^^^ method cannot be called on `BinaryHeap` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/truck.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Truck { [INFO] [stdout] | ---------------- doesn't satisfy `Truck: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Truck: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `BinaryHeap`, but its trait bounds were not satisfied [INFO] [stdout] --> src/warehouse.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | self.trucks.push(truck); [INFO] [stdout] | ^^^^ method cannot be called on `BinaryHeap` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/truck.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Truck { [INFO] [stdout] | ---------------- doesn't satisfy `Truck: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Truck: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/knapsack.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | temp.push(Truck::new(truck.capacity())); [INFO] [stdout] | ^^^^ method cannot be called on `Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/truck.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Truck { [INFO] [stdout] | ---------------- doesn't satisfy `Truck: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Truck: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/knapsack.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | temp.push(Truck::new(truck.capacity())); [INFO] [stdout] | ^^^^ method cannot be called on `Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/truck.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Truck { [INFO] [stdout] | ---------------- doesn't satisfy `Truck: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Truck: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&_` [INFO] [stdout] --> src/knapsack.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | let temp = &solution[x-1][y-packages[x].weight()]; [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | let mut curr_max = temp.clone(); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `temp` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 32 | let temp: &_ = &solution[x-1][y-packages[x].weight()]; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&_` [INFO] [stdout] --> src/knapsack.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | let temp = &solution[x-1][y-packages[x].weight()]; [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | let mut curr_max = temp.clone(); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `temp` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 32 | let temp: &_ = &solution[x-1][y-packages[x].weight()]; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&_` [INFO] [stdout] --> src/knapsack.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let prev_max = &solution[x-1][y]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | if prev_max.value() < curr_max.value() { [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `prev_max` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 30 | let prev_max: &_ = &solution[x-1][y]; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&_` [INFO] [stdout] --> src/knapsack.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let prev_max = &solution[x-1][y]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | if prev_max.value() < curr_max.value() { [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `prev_max` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 30 | let prev_max: &_ = &solution[x-1][y]; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0583, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `knapsack_analysis_rust` (bin "knapsack_analysis_rust") due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `knapsack_analysis_rust` (bin "knapsack_analysis_rust" test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "4af1ff1fee7424f488a2c815e21a1d95cb497860b66478931940a68337930577", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4af1ff1fee7424f488a2c815e21a1d95cb497860b66478931940a68337930577", kill_on_drop: false }` [INFO] [stdout] 4af1ff1fee7424f488a2c815e21a1d95cb497860b66478931940a68337930577 [INFO] checking willtraweek/KnapsackAnalysis_Rust against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwilltraweek%2FKnapsackAnalysis_Rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/willtraweek/KnapsackAnalysis_Rust on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/willtraweek/KnapsackAnalysis_Rust [INFO] finished tweaking git repo https://github.com/willtraweek/KnapsackAnalysis_Rust [INFO] tweaked toml for git repo https://github.com/willtraweek/KnapsackAnalysis_Rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/willtraweek/KnapsackAnalysis_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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8095eb6e383aa56604fb5499e42c59e1e4049746e474c9543766c6ae199c53f1 [INFO] running `Command { std: "docker" "start" "-a" "8095eb6e383aa56604fb5499e42c59e1e4049746e474c9543766c6ae199c53f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8095eb6e383aa56604fb5499e42c59e1e4049746e474c9543766c6ae199c53f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8095eb6e383aa56604fb5499e42c59e1e4049746e474c9543766c6ae199c53f1", kill_on_drop: false }` [INFO] [stdout] 8095eb6e383aa56604fb5499e42c59e1e4049746e474c9543766c6ae199c53f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 401c653399635858dbd0f0f9e9a2b133df2190e1d04d9f0d483fcf9892ca4365 [INFO] running `Command { std: "docker" "start" "-a" "401c653399635858dbd0f0f9e9a2b133df2190e1d04d9f0d483fcf9892ca4365", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "401c653399635858dbd0f0f9e9a2b133df2190e1d04d9f0d483fcf9892ca4365", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "401c653399635858dbd0f0f9e9a2b133df2190e1d04d9f0d483fcf9892ca4365", kill_on_drop: false }` [INFO] [stdout] 401c653399635858dbd0f0f9e9a2b133df2190e1d04d9f0d483fcf9892ca4365