[INFO] cloning repository https://github.com/bbq191/rust-basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bbq191/rust-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbbq191%2Frust-basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbbq191%2Frust-basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 779bf16d96ab308d3fbf69e96968c2d682d191e1 [INFO] checking bbq191/rust-basics/779bf16d96ab308d3fbf69e96968c2d682d191e1 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%2Fbbq191%2Frust-basics" "/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/bbq191/rust-basics 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/bbq191/rust-basics [INFO] finished tweaking git repo https://github.com/bbq191/rust-basics [INFO] tweaked toml for git repo https://github.com/bbq191/rust-basics written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bbq191/rust-basics 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-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f9676d861b9e6dba35dfbf6994eb9bc8d121853e76e61b26828bcd071b3a1477 [INFO] running `Command { std: "docker" "start" "-a" "f9676d861b9e6dba35dfbf6994eb9bc8d121853e76e61b26828bcd071b3a1477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9676d861b9e6dba35dfbf6994eb9bc8d121853e76e61b26828bcd071b3a1477", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9676d861b9e6dba35dfbf6994eb9bc8d121853e76e61b26828bcd071b3a1477", kill_on_drop: false }` [INFO] [stdout] f9676d861b9e6dba35dfbf6994eb9bc8d121853e76e61b26828bcd071b3a1477 [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 -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] 0f272d776cb1683b34b5281e776f60e1ab44b31e51e1f1fbec9fbd8542c0bced [INFO] running `Command { std: "docker" "start" "-a" "0f272d776cb1683b34b5281e776f60e1ab44b31e51e1f1fbec9fbd8542c0bced", kill_on_drop: false }` [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking by-example v0.1.0 (/opt/rustwide/workdir/by-example) [INFO] [stdout] warning: unused variable: `noisy_unused_variable` [INFO] [stdout] --> by-example/03-variable-binding/variable-binding.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let noisy_unused_variable = 2u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused_variable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logical` [INFO] [stdout] --> by-example/01-primitives/primitives.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let logical: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logical` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_float` [INFO] [stdout] --> by-example/01-primitives/primitives.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let a_float: f64 = 1.0; // 常规说明 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `an_integer` [INFO] [stdout] --> by-example/01-primitives/primitives.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let an_integer = 5i32; // 后缀说明 [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_an_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_float` [INFO] [stdout] --> by-example/01-primitives/primitives.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let default_float = 3.0; // `f64` [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_integer` [INFO] [stdout] --> by-example/01-primitives/primitives.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let default_integer = 7; // `i32` [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inferred_type` is assigned to, but never used [INFO] [stdout] --> by-example/01-primitives/primitives.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut inferred_type = 12; // 根据下一行的赋值推断为 i64 类型 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inferred_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inferred_type` is never read [INFO] [stdout] --> by-example/01-primitives/primitives.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | inferred_type = 4294967296i64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutable` is assigned to, but never used [INFO] [stdout] --> by-example/01-primitives/primitives.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut mutable = 12; // Mutable `i32` [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_mutable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mutable` is never read [INFO] [stdout] --> by-example/01-primitives/primitives.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mutable = 21; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable` [INFO] [stdout] --> by-example/01-primitives/primitives.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mutable = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [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] --> by-example/02-custom-type/enum/link-list.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 19 | fn prepend(self, elem: u32) -> List { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | // `Cons` 同样为 List 类型 [INFO] [stdout] 21 | Cons(elem, Box::new(self)) [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] Checking datastructure v0.1.0 (/opt/rustwide/workdir/datastructure) [INFO] [stderr] error: could not compile `by-example` (bin "link-list") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `noisy_unused_variable` [INFO] [stdout] --> by-example/03-variable-binding/variable-binding.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let noisy_unused_variable = 2u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused_variable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0f272d776cb1683b34b5281e776f60e1ab44b31e51e1f1fbec9fbd8542c0bced", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f272d776cb1683b34b5281e776f60e1ab44b31e51e1f1fbec9fbd8542c0bced", kill_on_drop: false }` [INFO] [stdout] 0f272d776cb1683b34b5281e776f60e1ab44b31e51e1f1fbec9fbd8542c0bced