[INFO] cloning repository https://github.com/init-center/rust_learn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/init-center/rust_learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finit-center%2Frust_learn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finit-center%2Frust_learn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 718104de877363ca20dd09b77ab21d73955faef8 [INFO] checking init-center/rust_learn against master#b44e14f762fd4062faeba97f8f2bc470298ec1ac for pr-135331 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finit-center%2Frust_learn" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/init-center/rust_learn on toolchain b44e14f762fd4062faeba97f8f2bc470298ec1ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/init-center/rust_learn [INFO] finished tweaking git repo https://github.com/init-center/rust_learn [INFO] tweaked toml for git repo https://github.com/init-center/rust_learn written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/init-center/rust_learn 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" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ffeb21eac1c232c5bc75f81448c60cef546b74f33b98749e43fd6c937e955e1c [INFO] running `Command { std: "docker" "start" "-a" "ffeb21eac1c232c5bc75f81448c60cef546b74f33b98749e43fd6c937e955e1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ffeb21eac1c232c5bc75f81448c60cef546b74f33b98749e43fd6c937e955e1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffeb21eac1c232c5bc75f81448c60cef546b74f33b98749e43fd6c937e955e1c", kill_on_drop: false }` [INFO] [stdout] ffeb21eac1c232c5bc75f81448c60cef546b74f33b98749e43fd6c937e955e1c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+b44e14f762fd4062faeba97f8f2bc470298ec1ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2973bcd490aa792a125792874fa272ded85f1bd7c6ceec4cbb121cec223db6bc [INFO] running `Command { std: "docker" "start" "-a" "2973bcd490aa792a125792874fa272ded85f1bd7c6ceec4cbb121cec223db6bc", kill_on_drop: false }` [INFO] [stderr] Checking rust_learn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/main.rs:676:9 [INFO] [stdout] | [INFO] [stdout] 676 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/main.rs:677:9 [INFO] [stdout] | [INFO] [stdout] 677 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hm` [INFO] [stdout] --> src/main.rs:806:13 [INFO] [stdout] | [INFO] [stdout] 806 | let mut hm: HashMap = HashMap::new(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_hm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/main.rs:676:9 [INFO] [stdout] | [INFO] [stdout] 676 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/main.rs:677:9 [INFO] [stdout] | [INFO] [stdout] 677 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hm` [INFO] [stdout] --> src/main.rs:806:13 [INFO] [stdout] | [INFO] [stdout] 806 | let mut hm: HashMap = HashMap::new(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_hm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:806:9 [INFO] [stdout] | [INFO] [stdout] 806 | let mut hm: HashMap = HashMap::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:806:9 [INFO] [stdout] | [INFO] [stdout] 806 | let mut hm: HashMap = HashMap::new(); [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: fields `toast` and `seasonal_fruit` are never read [INFO] [stdout] --> src/main.rs:886:13 [INFO] [stdout] | [INFO] [stdout] 885 | pub struct Breakfast { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 886 | pub toast: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 887 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Appetizer` is never used [INFO] [stdout] --> src/main.rs:892:14 [INFO] [stdout] | [INFO] [stdout] 892 | pub enum Appetizer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/main.rs:479:22 [INFO] [stdout] | [INFO] [stdout] 479 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Color` 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 `0`, `1`, and `2` are never read [INFO] [stdout] --> src/main.rs:481:22 [INFO] [stdout] | [INFO] [stdout] 481 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Point` 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 `width` and `height` are never read [INFO] [stdout] --> src/main.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 550 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 551 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 552 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:591:12 [INFO] [stdout] | [INFO] [stdout] 591 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 591 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:592:12 [INFO] [stdout] | [INFO] [stdout] 592 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 592 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:603:15 [INFO] [stdout] | [INFO] [stdout] 603 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 603 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/main.rs:601:9 [INFO] [stdout] | [INFO] [stdout] 600 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 601 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 602 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 603 | Write(String), [INFO] [stdout] 604 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/main.rs:636:9 [INFO] [stdout] | [INFO] [stdout] 635 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 636 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/main.rs:642:9 [INFO] [stdout] | [INFO] [stdout] 641 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 642 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 643 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 644 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `toast` and `seasonal_fruit` are never read [INFO] [stdout] --> src/main.rs:886:13 [INFO] [stdout] | [INFO] [stdout] 885 | pub struct Breakfast { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 886 | pub toast: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 887 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Appetizer` is never used [INFO] [stdout] --> src/main.rs:892:14 [INFO] [stdout] | [INFO] [stdout] 892 | pub enum Appetizer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] running `Command { std: "docker" "inspect" "2973bcd490aa792a125792874fa272ded85f1bd7c6ceec4cbb121cec223db6bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2973bcd490aa792a125792874fa272ded85f1bd7c6ceec4cbb121cec223db6bc", kill_on_drop: false }` [INFO] [stdout] 2973bcd490aa792a125792874fa272ded85f1bd7c6ceec4cbb121cec223db6bc