[INFO] cloning repository https://github.com/mingjingc/hello-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mingjingc/hello-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmingjingc%2Fhello-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmingjingc%2Fhello-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 10dc568ad4ae6769f92aca26a2450be5a9ed8670 [INFO] checking mingjingc/hello-rust against master#85c39893a761fe4c050523278da4e7e45ab42b6e for pr-134688 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmingjingc%2Fhello-rust" "/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/mingjingc/hello-rust on toolchain 85c39893a761fe4c050523278da4e7e45ab42b6e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+85c39893a761fe4c050523278da4e7e45ab42b6e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mingjingc/hello-rust [INFO] finished tweaking git repo https://github.com/mingjingc/hello-rust [INFO] tweaked toml for git repo https://github.com/mingjingc/hello-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mingjingc/hello-rust 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" "+85c39893a761fe4c050523278da4e7e45ab42b6e" "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" "+85c39893a761fe4c050523278da4e7e45ab42b6e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 45dae5f41c091f2e2a64e17ecbd5374be559d05110fffd3b98f672eb8493c3ba [INFO] running `Command { std: "docker" "start" "-a" "45dae5f41c091f2e2a64e17ecbd5374be559d05110fffd3b98f672eb8493c3ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45dae5f41c091f2e2a64e17ecbd5374be559d05110fffd3b98f672eb8493c3ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45dae5f41c091f2e2a64e17ecbd5374be559d05110fffd3b98f672eb8493c3ba", kill_on_drop: false }` [INFO] [stdout] 45dae5f41c091f2e2a64e17ecbd5374be559d05110fffd3b98f672eb8493c3ba [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" "-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" "+85c39893a761fe4c050523278da4e7e45ab42b6e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5cd66d8fed9364409f5db97889253e015dcb4a02170535d75e5f16dee9fb2d5 [INFO] running `Command { std: "docker" "start" "-a" "a5cd66d8fed9364409f5db97889253e015dcb4a02170535d75e5f16dee9fb2d5", kill_on_drop: false }` [INFO] [stderr] Checking hello v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::arch::is_aarch64_feature_detected` [INFO] [stdout] --> src/bin/conversion.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::arch::is_aarch64_feature_detected; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long_lived_binding` [INFO] [stdout] --> src/bin/virable.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let long_lived_binding = 5_f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_long_lived_binding` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable_integer` [INFO] [stdout] --> src/bin/virable.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mutable_integer = mutable_integer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/virable.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut mutable_integer = 7i32; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `long_lived_binding` [INFO] [stdout] --> src/bin/virable.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let long_lived_binding = 5_f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_long_lived_binding` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable_integer` [INFO] [stdout] --> src/bin/virable.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mutable_integer = mutable_integer; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/virable.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut mutable_integer = 7i32; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/bin/expressions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | 2 * x; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 14 | let _ = 2 * x; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/flowofcontroll.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/bin/conversion.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 6 | value: i32, [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] [stdout] warning: unused label [INFO] [stdout] --> src/bin/flowofcontroll.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::arch::is_aarch64_feature_detected` [INFO] [stdout] --> src/bin/conversion.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::arch::is_aarch64_feature_detected; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/flowofcontroll.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 41 | break 'outer; // 这步会直接跳出outer循环 [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 42 | } [INFO] [stdout] 43 | println!("This point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/flowofcontroll.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 41 | break 'outer; // 这步会直接跳出outer循环 [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 42 | } [INFO] [stdout] 43 | println!("This point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin/match.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | (1, y, z) => println!("First is `0`, `y` is {:?}, and `z` is {:?}", y, z), [INFO] [stdout] | --------- matches all the relevant values [INFO] [stdout] 52 | (1, ..) => println!("First is `1` and the rest doesn't matter"), [INFO] [stdout] | ^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/match.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | i => println!("Less than zero"), [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: variant `Fahrenheit` is never constructed [INFO] [stdout] --> src/bin/match.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Temperture { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 16 | Celsius(i32), [INFO] [stdout] 17 | Fahrenheit(i32), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/bin/if.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | if let Foo::Qux(value @ 100) = c { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/bin/conversion.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 6 | value: i32, [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] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin/match.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | (1, y, z) => println!("First is `0`, `y` is {:?}, and `z` is {:?}", y, z), [INFO] [stdout] | --------- matches all the relevant values [INFO] [stdout] 52 | (1, ..) => println!("First is `1` and the rest doesn't matter"), [INFO] [stdout] | ^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/match.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | i => println!("Less than zero"), [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: unused variable: `value` [INFO] [stdout] --> src/bin/if.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | if let Foo::Qux(value @ 100) = c { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fahrenheit` is never constructed [INFO] [stdout] --> src/bin/match.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum Temperture { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 16 | Celsius(i32), [INFO] [stdout] 17 | Fahrenheit(i32), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/bin/expressions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | 2 * x; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 14 | let _ = 2 * x; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "a5cd66d8fed9364409f5db97889253e015dcb4a02170535d75e5f16dee9fb2d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5cd66d8fed9364409f5db97889253e015dcb4a02170535d75e5f16dee9fb2d5", kill_on_drop: false }` [INFO] [stdout] a5cd66d8fed9364409f5db97889253e015dcb4a02170535d75e5f16dee9fb2d5