[INFO] cloning repository https://github.com/horou-dsk/algorithm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/horou-dsk/algorithm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhorou-dsk%2Falgorithm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhorou-dsk%2Falgorithm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5995946fc51e6117159076c17c94673469f0aaee [INFO] checking horou-dsk/algorithm against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhorou-dsk%2Falgorithm" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/horou-dsk/algorithm on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/horou-dsk/algorithm [INFO] finished tweaking git repo https://github.com/horou-dsk/algorithm [INFO] tweaked toml for git repo https://github.com/horou-dsk/algorithm written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/horou-dsk/algorithm already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06ffec1ad4833da1d35679e6d5165ccde88c9c8a6229d65e71305a5ce6913c01 [INFO] running `Command { std: "docker" "start" "-a" "06ffec1ad4833da1d35679e6d5165ccde88c9c8a6229d65e71305a5ce6913c01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06ffec1ad4833da1d35679e6d5165ccde88c9c8a6229d65e71305a5ce6913c01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06ffec1ad4833da1d35679e6d5165ccde88c9c8a6229d65e71305a5ce6913c01", kill_on_drop: false }` [INFO] [stdout] 06ffec1ad4833da1d35679e6d5165ccde88c9c8a6229d65e71305a5ce6913c01 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c05b499b6855233b065c431200afa6f838cf0d1603fb197756965a39c5b7704 [INFO] running `Command { std: "docker" "start" "-a" "7c05b499b6855233b065c431200afa6f838cf0d1603fb197756965a39c5b7704", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking algorithm v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating examples/merge_binary_tree/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/reverse_string/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/swap_pairs/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/binary_tree_right_node/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/sort_colors/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/in_and_post_order_create_binary_tree/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/sorted_squares/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/binary_search_tree_min_diff/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/remove_nth_from_end/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/binary_search_tree_lowest_common_ancestor/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/monitor_binary_tree/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/backspace_compare/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/binary_search_tree_insert/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/binary_search_tree_mode/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/common_chars/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed examples/binary_tree_right_node/main.rs (1 fix) [INFO] [stderr] Fixed examples/in_and_post_order_create_binary_tree/main.rs (1 fix) [INFO] [stdout] warning: function is never used: `build_tree` [INFO] [stdout] --> examples/in_and_post_order_create_binary_tree/main.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn build_tree(inorder: Vec, postorder: Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed examples/binary_search_tree_min_diff/main.rs (1 fix) [INFO] [stderr] Fixed examples/binary_search_tree_insert/main.rs (1 fix) [INFO] [stderr] Fixed examples/common_chars/main.rs (2 fixes) [INFO] [stdout] error[E0499]: cannot borrow `*h` as mutable more than once at a time [INFO] [stdout] --> examples/remove_nth_from_end/main.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 62 | prev = unsafe { &mut *h }; [INFO] [stdout] | ------- first mutable borrow occurs here [INFO] [stdout] 63 | h = &mut h.as_mut().unwrap().next; [INFO] [stdout] | ^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 66 | if let Some(p) = prev.as_mut() { [INFO] [stdout] | ---- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/remove_nth_from_end/main.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | prev = unsafe { &mut *h }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `algorithm` due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: constant is never used: `ASCII_A` [INFO] [stdout] --> examples/common_chars/main.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const ASCII_A: u8 = 'a' as u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `common_a_chars` [INFO] [stdout] --> examples/common_chars/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn common_a_chars(a: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [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" "7c05b499b6855233b065c431200afa6f838cf0d1603fb197756965a39c5b7704", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c05b499b6855233b065c431200afa6f838cf0d1603fb197756965a39c5b7704", kill_on_drop: false }` [INFO] [stdout] 7c05b499b6855233b065c431200afa6f838cf0d1603fb197756965a39c5b7704