[INFO] cloning repository https://github.com/bashhack/grokking_algos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bashhack/grokking_algos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbashhack%2Fgrokking_algos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbashhack%2Fgrokking_algos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fdf7b8b8fdcf9ada507d3c0d4e54e162580deb4a [INFO] checking bashhack/grokking_algos/fdf7b8b8fdcf9ada507d3c0d4e54e162580deb4a against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbashhack%2Fgrokking_algos" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bashhack/grokking_algos on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bashhack/grokking_algos [INFO] finished tweaking git repo https://github.com/bashhack/grokking_algos [INFO] tweaked toml for git repo https://github.com/bashhack/grokking_algos written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bashhack/grokking_algos 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0eb414cbeafd16fb33b42bdfd1787e0d0fc74c224567fc4f232e2b41f518a989 [INFO] running `Command { std: "docker" "start" "-a" "0eb414cbeafd16fb33b42bdfd1787e0d0fc74c224567fc4f232e2b41f518a989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0eb414cbeafd16fb33b42bdfd1787e0d0fc74c224567fc4f232e2b41f518a989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0eb414cbeafd16fb33b42bdfd1787e0d0fc74c224567fc4f232e2b41f518a989", kill_on_drop: false }` [INFO] [stdout] 0eb414cbeafd16fb33b42bdfd1787e0d0fc74c224567fc4f232e2b41f518a989 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0e9984c336e827191761960dbefde4bda77fb4df9bb356196c752314388533c [INFO] running `Command { std: "docker" "start" "-a" "a0e9984c336e827191761960dbefde4bda77fb4df9bb356196c752314388533c", kill_on_drop: false }` [INFO] [stderr] Checking grokking_algos v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `linear_search` is never used [INFO] [stdout] --> src/intro_to_algos/mod.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn linear_search(list: &[T], item: T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterative_binary_search` is never used [INFO] [stdout] --> src/intro_to_algos/mod.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn iterative_binary_search(list: &[T], item: T) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recursive_binary_search` is never used [INFO] [stdout] --> src/intro_to_algos/mod.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn recursive_binary_search( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/quicksort/mod.rs:218:8 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn sum(list: &[u64]) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count` is never used [INFO] [stdout] --> src/quicksort/mod.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn count(list: &[T]) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_max` is never used [INFO] [stdout] --> src/quicksort/mod.rs:298:8 [INFO] [stdout] | [INFO] [stdout] 298 | pub fn find_max(list: &[T]) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quick_sort` is never used [INFO] [stdout] --> src/quicksort/mod.rs:320:8 [INFO] [stdout] | [INFO] [stdout] 320 | pub fn quick_sort(mut list: T) -> Vec [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_recursive_countdown` is never used [INFO] [stdout] --> src/recursion/mod.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn simple_recursive_countdown(i: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greeter` is never used [INFO] [stdout] --> src/recursion/mod.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn greeter(name: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `second_greeter` is never used [INFO] [stdout] --> src/recursion/mod.rs:220:4 [INFO] [stdout] | [INFO] [stdout] 220 | fn second_greeter(name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bye` is never used [INFO] [stdout] --> src/recursion/mod.rs:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn bye() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial` is never used [INFO] [stdout] --> src/recursion/mod.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn factorial(i: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `selection_sort` is never used [INFO] [stdout] --> src/selection_sort/mod.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn selection_sort(list: &mut [T]) -> &mut [T] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/quicksort/mod.rs:327:11 [INFO] [stdout] | [INFO] [stdout] 320 | pub fn quick_sort(mut list: T) -> Vec [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 327 | match list.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `grokking_algos` (bin "grokking_algos") due to 2 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/quicksort/mod.rs:327:11 [INFO] [stdout] | [INFO] [stdout] 320 | pub fn quick_sort(mut list: T) -> Vec [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 327 | match list.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `grokking_algos` (bin "grokking_algos" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "a0e9984c336e827191761960dbefde4bda77fb4df9bb356196c752314388533c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0e9984c336e827191761960dbefde4bda77fb4df9bb356196c752314388533c", kill_on_drop: false }` [INFO] [stdout] a0e9984c336e827191761960dbefde4bda77fb4df9bb356196c752314388533c