[INFO] cloning repository https://github.com/farhat-nawaz/dsa-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/farhat-nawaz/dsa-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffarhat-nawaz%2Fdsa-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffarhat-nawaz%2Fdsa-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0db18bfcc037cb585d5266eb49660bc622a02278 [INFO] checking farhat-nawaz/dsa-rs/0db18bfcc037cb585d5266eb49660bc622a02278 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffarhat-nawaz%2Fdsa-rs" "/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/farhat-nawaz/dsa-rs 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/farhat-nawaz/dsa-rs [INFO] finished tweaking git repo https://github.com/farhat-nawaz/dsa-rs [INFO] tweaked toml for git repo https://github.com/farhat-nawaz/dsa-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/farhat-nawaz/dsa-rs 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-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1af9ffe6aaf2fd12cf3725d9cf9f44bf19cf9bb9efdb9fd91de4c0d63a552da1 [INFO] running `Command { std: "docker" "start" "-a" "1af9ffe6aaf2fd12cf3725d9cf9f44bf19cf9bb9efdb9fd91de4c0d63a552da1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1af9ffe6aaf2fd12cf3725d9cf9f44bf19cf9bb9efdb9fd91de4c0d63a552da1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1af9ffe6aaf2fd12cf3725d9cf9f44bf19cf9bb9efdb9fd91de4c0d63a552da1", kill_on_drop: false }` [INFO] [stdout] 1af9ffe6aaf2fd12cf3725d9cf9f44bf19cf9bb9efdb9fd91de4c0d63a552da1 [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" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e3bf757883d8c48b6ea02e045c80a3165ed20749a58b303ab739891e4a03e75c [INFO] running `Command { std: "docker" "start" "-a" "e3bf757883d8c48b6ea02e045c80a3165ed20749a58b303ab739891e4a03e75c", 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 data-structures-and-algorithms v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/ds/stack.rs (2 fixes) [INFO] [stderr] Fixed src/ds/linked_list.rs (1 fix) [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/ds/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ds/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Node { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DSError` is never used [INFO] [stdout] --> src/ds/mod.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum DSError { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `List` is never constructed [INFO] [stdout] --> src/ds/linked_list.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ds/linked_list.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl List { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn insert(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn insert_at(&mut self, value: T, index: usize) -> Result<(), DSError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn delete(&mut self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn delete_at(&mut self, index: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn get(&mut self, index: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Stack` is never constructed [INFO] [stdout] --> src/ds/stack.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push`, `pop`, `len`, and `clear` are never used [INFO] [stdout] --> src/ds/stack.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Stack { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn push(&mut self, value: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pop(&mut self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `List` in this scope [INFO] [stdout] --> src/ds/linked_list.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let ll: List = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/ds/linked_list.rs:122:29 [INFO] [stdout] | [INFO] [stdout] 122 | let ll: List = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `List` in this scope [INFO] [stdout] --> src/ds/linked_list.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/ds/linked_list.rs:130:33 [INFO] [stdout] | [INFO] [stdout] 130 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `List` in this scope [INFO] [stdout] --> src/ds/linked_list.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/ds/linked_list.rs:144:33 [INFO] [stdout] | [INFO] [stdout] 144 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `List` in this scope [INFO] [stdout] --> src/ds/linked_list.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/ds/linked_list.rs:159:33 [INFO] [stdout] | [INFO] [stdout] 159 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `List` in this scope [INFO] [stdout] --> src/ds/linked_list.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/ds/linked_list.rs:172:33 [INFO] [stdout] | [INFO] [stdout] 172 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `List` in this scope [INFO] [stdout] --> src/ds/linked_list.rs:193:21 [INFO] [stdout] | [INFO] [stdout] 193 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/ds/linked_list.rs:193:33 [INFO] [stdout] | [INFO] [stdout] 193 | let mut ll: List = List::new(); [INFO] [stdout] | ^^^^ use of undeclared type `List` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 120 + use crate::ds::linked_list::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/ds/stack.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | let stack: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::stack::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/ds/stack.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | let stack: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::stack::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/ds/stack.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | let mut ll: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::stack::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `data-structures-and-algorithms` (bin "data-structures-and-algorithms" test) due to 22 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/ds/stack.rs:62:34 [INFO] [stdout] | [INFO] [stdout] 62 | let mut ll: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::stack::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/ds/stack.rs:76:24 [INFO] [stdout] | [INFO] [stdout] 76 | let mut stack: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::stack::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/ds/stack.rs:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | let mut stack: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::stack::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/ds/stack.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 97 | let mut stack: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::stack::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/ds/stack.rs:97:37 [INFO] [stdout] | [INFO] [stdout] 97 | let mut stack: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Stack` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::stack::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DSError` [INFO] [stdout] --> src/ds/stack.rs:104:40 [INFO] [stdout] | [INFO] [stdout] 104 | assert_eq!(value.unwrap_err(), DSError::StackEmpty); [INFO] [stdout] | ^^^^^^^ use of undeclared type `DSError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 52 + use crate::ds::DSError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [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: 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" "e3bf757883d8c48b6ea02e045c80a3165ed20749a58b303ab739891e4a03e75c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3bf757883d8c48b6ea02e045c80a3165ed20749a58b303ab739891e4a03e75c", kill_on_drop: false }` [INFO] [stdout] e3bf757883d8c48b6ea02e045c80a3165ed20749a58b303ab739891e4a03e75c