[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] building Xiaobin0860/rust_learning against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXiaobin0860%2Frust_learning" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Xiaobin0860/rust_learning on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-2-tc1/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded prettyplease v0.1.10 [INFO] [stderr] Downloaded prost v0.10.3 [INFO] [stderr] Downloaded prost-build v0.10.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 324729ee1bfa14102bd350010de1328d5bf7172fc186e60aca40d11ef48dfa8d [INFO] running `Command { std: "docker" "start" "-a" "324729ee1bfa14102bd350010de1328d5bf7172fc186e60aca40d11ef48dfa8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "324729ee1bfa14102bd350010de1328d5bf7172fc186e60aca40d11ef48dfa8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "324729ee1bfa14102bd350010de1328d5bf7172fc186e60aca40d11ef48dfa8d", kill_on_drop: false }` [INFO] [stdout] 324729ee1bfa14102bd350010de1328d5bf7172fc186e60aca40d11ef48dfa8d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e39277348807358848d0311201a5e040a65cadcc747a7386296871d68d5fcaf [INFO] running `Command { std: "docker" "start" "-a" "6e39277348807358848d0311201a5e040a65cadcc747a7386296871d68d5fcaf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling rust_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.40s [INFO] running `Command { std: "docker" "inspect" "6e39277348807358848d0311201a5e040a65cadcc747a7386296871d68d5fcaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e39277348807358848d0311201a5e040a65cadcc747a7386296871d68d5fcaf", kill_on_drop: false }` [INFO] [stdout] 6e39277348807358848d0311201a5e040a65cadcc747a7386296871d68d5fcaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e54413c2d987edf37f1cb9ddbf3984ab55ad9556f2f964bef169c7361369c4d5 [INFO] running `Command { std: "docker" "start" "-a" "e54413c2d987edf37f1cb9ddbf3984ab55ad9556f2f964bef169c7361369c4d5", kill_on_drop: false }` [INFO] [stderr] Compiling rust_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Vec3` is never constructed [INFO] [stdout] --> tests/test_prints.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Vec3 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: fields `p1` and `p2` are never read [INFO] [stdout] --> tests/test_prints.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | struct Line2D { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 39 | p1: Point, [INFO] [stdout] | ^^ [INFO] [stdout] 40 | p2: Point, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Line2D` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> tests/test_primitives.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | struct M(f32, f32, f32, f32); [INFO] [stdout] | - ^^^ ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `M` 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: 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] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> tests/test_macros.rs:55:70 [INFO] [stdout] | [INFO] [stdout] 55 | println!("{:?} = {:?}", stringify!($expression), $expression); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 64 | / print_result!({ [INFO] [stdout] 65 | | let x = 1u32; [INFO] [stdout] 66 | | x * x + 2 * x - 1 [INFO] [stdout] 67 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `print_result` [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `print_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [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: 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] warning: field `value` is never read [INFO] [stdout] --> tests/test_conversion.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 23 | value: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.30s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rust_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "e54413c2d987edf37f1cb9ddbf3984ab55ad9556f2f964bef169c7361369c4d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e54413c2d987edf37f1cb9ddbf3984ab55ad9556f2f964bef169c7361369c4d5", kill_on_drop: false }` [INFO] [stdout] e54413c2d987edf37f1cb9ddbf3984ab55ad9556f2f964bef169c7361369c4d5