[INFO] cloning repository https://github.com/Xiaobin0860/rust_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Xiaobin0860/rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXiaobin0860%2Frust_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXiaobin0860%2Frust_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca22993d82c8fca285d70548a685466fcbd47c70 [INFO] checking Xiaobin0860/rust_learning/ca22993d82c8fca285d70548a685466fcbd47c70 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%2FXiaobin0860%2Frust_learning" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Xiaobin0860/rust_learning 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/Xiaobin0860/rust_learning [INFO] finished tweaking git repo https://github.com/Xiaobin0860/rust_learning [INFO] tweaked toml for git repo https://github.com/Xiaobin0860/rust_learning written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Xiaobin0860/rust_learning 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] e8ce37918cbc18ecef1a4ca3b441fafaa4e8e7ee5f9ac80172f30c0281f276df [INFO] running `Command { std: "docker" "start" "-a" "e8ce37918cbc18ecef1a4ca3b441fafaa4e8e7ee5f9ac80172f30c0281f276df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8ce37918cbc18ecef1a4ca3b441fafaa4e8e7ee5f9ac80172f30c0281f276df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8ce37918cbc18ecef1a4ca3b441fafaa4e8e7ee5f9ac80172f30c0281f276df", kill_on_drop: false }` [INFO] [stdout] e8ce37918cbc18ecef1a4ca3b441fafaa4e8e7ee5f9ac80172f30c0281f276df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 321b8c99d51ef1a78c88c04f4e9f459032f8175cf340ec5cbb1d7c2138dd33d2 [INFO] running `Command { std: "docker" "start" "-a" "321b8c99d51ef1a78c88c04f4e9f459032f8175cf340ec5cbb1d7c2138dd33d2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling rust_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking tracing-core v0.1.26 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Compiling which v4.1.0 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling prost-build v0.10.3 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Checking http v0.2.7 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Checking httpdate v1.0.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking http-range-header v0.3.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking matchit v0.5.0 [INFO] [stderr] Checking sync_wrapper v0.1.1 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking sharded-slab v0.1.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Checking dashmap v5.2.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking tracing-subscriber v0.3.11 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> tests/test_custom_types.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct Person<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | // The 'a defines a lifetime [INFO] [stdout] 12 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` 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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/test_traits.rs:142:16 [INFO] [stdout] | [INFO] [stdout] 142 | struct Seconds(i32); [INFO] [stdout] | ------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> tests/test_std_libs.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 37 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 38 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] --> tests/test_std_libs.rs:627:8 [INFO] [stdout] | [INFO] [stdout] 622 | fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 626 | let file = File::open(filename)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 627 | Ok(io::BufReader::new(file).lines()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> tests/test_std_libs.rs:702:11 [INFO] [stdout] | [INFO] [stdout] 700 | let mut f = File::open(path)?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 701 | let mut s = String::new(); [INFO] [stdout] 702 | match f.read_to_string(&mut s) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_learning` (test "test_std_libs") due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/test_error_handling.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 155 | struct Cooked(Food); [INFO] [stdout] | ------ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Cooked` 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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> tests/test_error_handling.rs:421:23 [INFO] [stdout] | [INFO] [stdout] 421 | .and_then(|s| s.parse::().map_err(|e| e.into()).map(|i| 2 * i)) [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; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_learning` (test "test_error_handling") due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "321b8c99d51ef1a78c88c04f4e9f459032f8175cf340ec5cbb1d7c2138dd33d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "321b8c99d51ef1a78c88c04f4e9f459032f8175cf340ec5cbb1d7c2138dd33d2", kill_on_drop: false }` [INFO] [stdout] 321b8c99d51ef1a78c88c04f4e9f459032f8175cf340ec5cbb1d7c2138dd33d2