[INFO] cloning repository https://github.com/Squirre17/rust-algo-impl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Squirre17/rust-algo-impl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSquirre17%2Frust-algo-impl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSquirre17%2Frust-algo-impl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3584c160bba38b1ef19111545a27fa4ebeec6dc [INFO] checking Squirre17/rust-algo-impl/d3584c160bba38b1ef19111545a27fa4ebeec6dc against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSquirre17%2Frust-algo-impl" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Squirre17/rust-algo-impl 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/Squirre17/rust-algo-impl [INFO] finished tweaking git repo https://github.com/Squirre17/rust-algo-impl [INFO] tweaked toml for git repo https://github.com/Squirre17/rust-algo-impl written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Squirre17/rust-algo-impl 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] ca40924722d97310b780e762c293af4d03b499aa8c7c692d47996be486a4a66f [INFO] running `Command { std: "docker" "start" "-a" "ca40924722d97310b780e762c293af4d03b499aa8c7c692d47996be486a4a66f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca40924722d97310b780e762c293af4d03b499aa8c7c692d47996be486a4a66f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca40924722d97310b780e762c293af4d03b499aa8c7c692d47996be486a4a66f", kill_on_drop: false }` [INFO] [stdout] ca40924722d97310b780e762c293af4d03b499aa8c7c692d47996be486a4a66f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 99957fd895a2051723c3281e7339ce8e7a7a01ca85a96621a848e3b579f346b4 [INFO] running `Command { std: "docker" "start" "-a" "99957fd895a2051723c3281e7339ce8e7a7a01ca85a96621a848e3b579f346b4", 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 rust_algo_coll v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/link_list/mod.rs (3 fixes) [INFO] [stderr] Fixed src/link_list/node.rs (1 fix) [INFO] [stderr] Fixed src/tree/node.rs (1 fix) [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/tree/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `year_registered`, and `username` are never read [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | year_registered: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LinkedList` is never constructed [INFO] [stdout] --> src/link_list/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct LinkedList{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_end`, `push_front`, `pop_front`, `traverse`, and `gen_arr` are never used [INFO] [stdout] --> src/link_list/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl LinkedList { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(data : i32) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn push_end(&mut self, elem : i32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn push_front(&mut self, elem : i32){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn pop_front(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn traverse(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn gen_arr(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/link_list/node.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Node { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(data : i32) -> NodeRef { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/link_list/node.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl LinkListIter { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new(start : NodeOpt) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TnRef` is never used [INFO] [stdout] --> src/tree/node.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type TnRef = Rc>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TnWeak` is never used [INFO] [stdout] --> src/tree/node.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type TnWeak = Weak>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeNode` is never constructed [INFO] [stdout] --> src/tree/node.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_child`, and `pprint` are never used [INFO] [stdout] --> src/tree/node.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl TreeNode { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 21 | pub fn new(value : Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn add_child(&mut self, node : &TnRef) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn pprint(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/link_list/mod.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | while let Some(node_ref) = node_opt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/link_list/mod.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/link_list/mod.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | while let Some(node_ref) = node_opt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/link_list/mod.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NodeRef` in this scope [INFO] [stdout] --> src/link_list/node.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | let node : NodeRef = Node::new(1); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias through its public re-export [INFO] [stdout] | [INFO] [stdout] 67 + use crate::link_list::NodeRef; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/link_list/node.rs:69:30 [INFO] [stdout] | [INFO] [stdout] 69 | let node : NodeRef = Node::new(1); [INFO] [stdout] | ^^^^ use of undeclared type `Node` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 67 + use crate::link_list::Node; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LinkListIter` [INFO] [stdout] --> src/link_list/node.rs:70:23 [INFO] [stdout] | [INFO] [stdout] 70 | let mut lli = LinkListIter::new( [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `LinkListIter` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 67 + use crate::link_list::node::LinkListIter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LinkedList` [INFO] [stdout] --> src/link_list/mod.rs:134:22 [INFO] [stdout] | [INFO] [stdout] 134 | let mut ll = LinkedList::new(1); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `LinkedList` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 132 + use crate::link_list::LinkedList; [INFO] [stdout] | [INFO] [stdout] 132 + use std::collections::LinkedList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/tree/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 `rust_algo_coll` (bin "rust_algo_coll" test) due to 5 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" "99957fd895a2051723c3281e7339ce8e7a7a01ca85a96621a848e3b579f346b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99957fd895a2051723c3281e7339ce8e7a7a01ca85a96621a848e3b579f346b4", kill_on_drop: false }` [INFO] [stdout] 99957fd895a2051723c3281e7339ce8e7a7a01ca85a96621a848e3b579f346b4