[INFO] cloning repository https://github.com/ManjulaNishanth/algorithms [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ManjulaNishanth/algorithms" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FManjulaNishanth%2Falgorithms", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FManjulaNishanth%2Falgorithms'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 38c6b26202baf3e474c1fff25c17c33cd8b1702d [INFO] checking ManjulaNishanth/algorithms/38c6b26202baf3e474c1fff25c17c33cd8b1702d against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FManjulaNishanth%2Falgorithms" "/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/ManjulaNishanth/algorithms on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ManjulaNishanth/algorithms [INFO] finished tweaking git repo https://github.com/ManjulaNishanth/algorithms [INFO] tweaked toml for git repo https://github.com/ManjulaNishanth/algorithms written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ManjulaNishanth/algorithms 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e8d65685fe5d0d85e8bfa5a573615fddb12101329b02e5af047f29b7afdfb5af [INFO] running `Command { std: "docker" "start" "-a" "e8d65685fe5d0d85e8bfa5a573615fddb12101329b02e5af047f29b7afdfb5af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8d65685fe5d0d85e8bfa5a573615fddb12101329b02e5af047f29b7afdfb5af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8d65685fe5d0d85e8bfa5a573615fddb12101329b02e5af047f29b7afdfb5af", kill_on_drop: false }` [INFO] [stdout] e8d65685fe5d0d85e8bfa5a573615fddb12101329b02e5af047f29b7afdfb5af [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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa1b70db47fb23bb2bd8a5f81fc9f1df4fa353342dd333f4dfd68affc6772de4 [INFO] running `Command { std: "docker" "start" "-a" "aa1b70db47fb23bb2bd8a5f81fc9f1df4fa353342dd333f4dfd68affc6772de4", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking algorithms v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/hash_map/h_map.rs (1 fix) [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map/h_map.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | fn put(&mut self, key: T, value: V) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `binary_search` is never used [INFO] [stdout] --> src/binary_search.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn binary_search(input: &[T], target: &T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Viking` is never constructed [INFO] [stdout] --> src/hash_map/h_map.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Viking { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_MAX_SIZE` is never used [INFO] [stdout] --> src/hash_map/h_map.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const DEFAULT_MAX_SIZE: u64 = 256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HashMap` is never constructed [INFO] [stdout] --> src/hash_map/h_map.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HashMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeyValue` is never constructed [INFO] [stdout] --> src/hash_map/h_map.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct KeyValue { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `KeyValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_key` is never used [INFO] [stdout] --> src/hash_map/h_map.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn hash_key(key: T) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `INIT`, `new`, and `put` are never used [INFO] [stdout] --> src/hash_map/h_map.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 41 | impl HashMap { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 42 | const INIT: Option> = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | pub fn new() -> HashMap { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn put(&mut self, key: T, value: V) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HashTable` is never constructed [INFO] [stdout] --> src/hash_map/model.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HashTable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HashTable` is never constructed [INFO] [stdout] --> src/hash_table/model.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct HashTable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/hash_map/h_map.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | let mut my_hash: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 70 + use crate::hash_map::h_map::HashMap; [INFO] [stdout] | [INFO] [stdout] 70 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/hash_map/h_map.rs:75:49 [INFO] [stdout] | [INFO] [stdout] 75 | let mut my_hash: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 70 + use crate::hash_map::h_map::HashMap; [INFO] [stdout] | [INFO] [stdout] 70 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/hash_map/h_map.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | fn put(&mut self, key: T, value: V) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `algorithms` (bin "algorithms" test) due to 3 previous errors; 1 warning emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "aa1b70db47fb23bb2bd8a5f81fc9f1df4fa353342dd333f4dfd68affc6772de4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa1b70db47fb23bb2bd8a5f81fc9f1df4fa353342dd333f4dfd68affc6772de4", kill_on_drop: false }` [INFO] [stdout] aa1b70db47fb23bb2bd8a5f81fc9f1df4fa353342dd333f4dfd68affc6772de4