[INFO] cloning repository https://github.com/kunfan96/rust-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kunfan96/rust-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunfan96%2Frust-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunfan96%2Frust-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bbc68014013786365ca793edd4613b7ffdf9740e [INFO] building kunfan96/rust-demo 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%2Fkunfan96%2Frust-demo" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kunfan96/rust-demo 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/kunfan96/rust-demo [INFO] finished tweaking git repo https://github.com/kunfan96/rust-demo [INFO] tweaked toml for git repo https://github.com/kunfan96/rust-demo written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kunfan96/rust-demo 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 398156cc3322266964719083120e993f4204f0f83e7a9f8a020e5c16380dba43 [INFO] running `Command { std: "docker" "start" "-a" "398156cc3322266964719083120e993f4204f0f83e7a9f8a020e5c16380dba43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "398156cc3322266964719083120e993f4204f0f83e7a9f8a020e5c16380dba43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "398156cc3322266964719083120e993f4204f0f83e7a9f8a020e5c16380dba43", kill_on_drop: false }` [INFO] [stdout] 398156cc3322266964719083120e993f4204f0f83e7a9f8a020e5c16380dba43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] efab84cfea9359e4fa6702e6a97b4c840496969fa951c7f5768b724f81a28485 [INFO] running `Command { std: "docker" "start" "-a" "efab84cfea9359e4fa6702e6a97b4c840496969fa951c7f5768b724f81a28485", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hello_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/utils/demo_fn.rs:94:52 [INFO] [stdout] | [INFO] [stdout] 94 | let arr_1: [String; 8] = core::array::from_fn(|i| String::from("uiuiiu")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_my` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hello_my() -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_you` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn hello_you(str_a: &mut String) -> &String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_hello` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn run_hello() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ch_str` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_ch_str() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tum` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn get_tum() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/utils/demo_fn.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_struct` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn test_struct() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_enum` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn test_enum() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_array` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn test_array() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_condition` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn test_condition() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_match` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn test_match() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_method` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn test_method () { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `show_info`, `show_info2`, and `name` are never used [INFO] [stdout] --> src/utils/demo_fn.rs:220:16 [INFO] [stdout] | [INFO] [stdout] 219 | impl People { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 220 | pub fn new (name: String, age: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn show_info (&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | pub fn show_info2 (&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn name (&self) -> &String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_vector` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn test_vector () { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_hash` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn test_hash () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.26s [INFO] running `Command { std: "docker" "inspect" "efab84cfea9359e4fa6702e6a97b4c840496969fa951c7f5768b724f81a28485", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "efab84cfea9359e4fa6702e6a97b4c840496969fa951c7f5768b724f81a28485", kill_on_drop: false }` [INFO] [stdout] efab84cfea9359e4fa6702e6a97b4c840496969fa951c7f5768b724f81a28485 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 1e792c73944f02a0e4d245aee48c9687e6ef81d607b7654db79432fd5586c32d [INFO] running `Command { std: "docker" "start" "-a" "1e792c73944f02a0e4d245aee48c9687e6ef81d607b7654db79432fd5586c32d", kill_on_drop: false }` [INFO] [stderr] Compiling hello_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/utils/demo_fn.rs:94:52 [INFO] [stdout] | [INFO] [stdout] 94 | let arr_1: [String; 8] = core::array::from_fn(|i| String::from("uiuiiu")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_my` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn hello_my() -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_you` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn hello_you(str_a: &mut String) -> &String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_hello` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn run_hello() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_ch_str` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn get_ch_str() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tum` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn get_tum() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/utils/demo_fn.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_struct` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn test_struct() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_enum` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn test_enum() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_array` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn test_array() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_condition` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn test_condition() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_match` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn test_match() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_method` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn test_method () { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `show_info`, `show_info2`, and `name` are never used [INFO] [stdout] --> src/utils/demo_fn.rs:220:16 [INFO] [stdout] | [INFO] [stdout] 219 | impl People { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 220 | pub fn new (name: String, age: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn show_info (&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | pub fn show_info2 (&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn name (&self) -> &String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_vector` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:247:8 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn test_vector () { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_hash` is never used [INFO] [stdout] --> src/utils/demo_fn.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn test_hash () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.45s [INFO] running `Command { std: "docker" "inspect" "1e792c73944f02a0e4d245aee48c9687e6ef81d607b7654db79432fd5586c32d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e792c73944f02a0e4d245aee48c9687e6ef81d607b7654db79432fd5586c32d", kill_on_drop: false }` [INFO] [stdout] 1e792c73944f02a0e4d245aee48c9687e6ef81d607b7654db79432fd5586c32d