[INFO] cloning repository https://github.com/Norman-h/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/Norman-h/hello_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNorman-h%2Fhello_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNorman-h%2Fhello_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] eb254f1bfbb5299b3156af365316d93560e19ad3
[INFO] checking Norman-h/hello_rust against master#507271bc119683008ec719ecee48814e8ac86c65 for pr-146440
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNorman-h%2Fhello_rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Norman-h/hello_rust
[INFO] finished tweaking git repo https://github.com/Norman-h/hello_rust
[INFO] tweaked toml for git repo https://github.com/Norman-h/hello_rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Norman-h/hello_rust on toolchain 507271bc119683008ec719ecee48814e8ac86c65
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+507271bc119683008ec719ecee48814e8ac86c65" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Norman-h/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" "+507271bc119683008ec719ecee48814e8ac86c65" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+507271bc119683008ec719ecee48814e8ac86c65" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a1cb3021ee1bbdfabb096e82ddb5ecd64bf819c8bb8df3bee29adf99a918a06a
[INFO] running `Command { std: "docker" "start" "-a" "a1cb3021ee1bbdfabb096e82ddb5ecd64bf819c8bb8df3bee29adf99a918a06a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a1cb3021ee1bbdfabb096e82ddb5ecd64bf819c8bb8df3bee29adf99a918a06a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a1cb3021ee1bbdfabb096e82ddb5ecd64bf819c8bb8df3bee29adf99a918a06a", kill_on_drop: false }`
[INFO] [stdout] a1cb3021ee1bbdfabb096e82ddb5ecd64bf819c8bb8df3bee29adf99a918a06a
[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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+507271bc119683008ec719ecee48814e8ac86c65" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d7758d8eb3d2e2f1a17fe52e60c1a855f873e66b433c368c8bce392c5b097ca7
[INFO] running `Command { std: "docker" "start" "-a" "d7758d8eb3d2e2f1a17fe52e60c1a855f873e66b433c368c8bce392c5b097ca7", kill_on_drop: false }`
[INFO] [stderr]     Checking hello_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/test_error.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]  --> src/lib.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub mod test_error;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/test_error.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]  --> src/lib.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub mod test_error;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `error::Error` and `fmt::Debug`
[INFO] [stdout]  --> src/test_error.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 |     use std::{fs::File, error::Error, fmt::Debug, io::{self, Read}};
[INFO] [stdout]   |                         ^^^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]  --> src/test_error.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub mod my_test_error {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/test_vec_and_hash.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]  --> src/lib.rs:7:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub mod test_vec_and_hash;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> src/test_time.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use chrono::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]  --> src/lib.rs:9:1
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub mod test_time;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Local`
[INFO] [stdout]  --> src/test_time.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::Local;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]  --> src/lib.rs:9:1
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub mod test_time;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/test_enum.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let res = match card {
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/test_error.rs:11:16
[INFO] [stdout]    |
[INFO] [stdout] 11 |             Ok(file) => {
[INFO] [stdout]    |                ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `Error`
[INFO] [stdout]   --> src/test_error.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |             Error => {
[INFO] [stdout]    |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/test_error.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sample` is never used
[INFO] [stdout]  --> src/test_closure.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fn sample(a: i16) -> i16 {
[INFO] [stdout]   |        ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cacher` is never constructed
[INFO] [stdout]  --> src/test_closure.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 |     struct Cacher<T, E>
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `value` are never used
[INFO] [stdout]   --> src/test_closure.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | /     impl<T, E> Cacher<T, E>
[INFO] [stdout] 17 | |     where
[INFO] [stdout] 18 | |         T: Fn(E) -> E,
[INFO] [stdout] 19 | |         E: Copy,
[INFO] [stdout]    | |________________- associated items in this implementation
[INFO] [stdout] 20 |       {
[INFO] [stdout] 21 |           fn new(query: T) -> Cacher<T, E> {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |           fn value(&mut self, arg: E) -> E {
[INFO] [stdout]    |              ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/test_error.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `active` is never read
[INFO] [stdout]  --> src/test_struct.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     pub struct User {
[INFO] [stdout]   |                ---- field in this struct
[INFO] [stdout] 4 |         active: bool,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add` is never used
[INFO] [stdout]   --> src/test_struct.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn add<T: std::ops::Add<Output = T>>(a:T, b:T) -> T {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `y` is never read
[INFO] [stdout]   --> src/test_struct.rs:52:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     pub struct Point<T: std::ops::Mul<Output = T>> {
[INFO] [stdout]    |                ----- field in this struct
[INFO] [stdout] 51 |         x: T,
[INFO] [stdout] 52 |         y: T,
[INFO] [stdout]    |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Error` should have a snake case name
[INFO] [stdout]   --> src/test_error.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |             Error => {
[INFO] [stdout]    |             ^^^^^ help: convert the identifier to snake case: `error`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `error::Error` and `fmt::Debug`
[INFO] [stdout]  --> src/test_error.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 |     use std::{fs::File, error::Error, fmt::Debug, io::{self, Read}};
[INFO] [stdout]   |                         ^^^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/test_vec_and_hash.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]  --> src/test_time.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use chrono::Utc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Local`
[INFO] [stdout]  --> src/test_time.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::Local;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/test_enum.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let res = match card {
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/test_error.rs:11:16
[INFO] [stdout]    |
[INFO] [stdout] 11 |             Ok(file) => {
[INFO] [stdout]    |                ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `Error`
[INFO] [stdout]   --> src/test_error.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |             Error => {
[INFO] [stdout]    |             ^^^^^ help: if this is intentional, prefix it with an underscore: `_Error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/test_vec_and_hash.rs:36:13
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let mut teams_map: HashMap<_,_> = teams_list.into_iter().collect();
[INFO] [stdout]    |             ----^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `active` is never read
[INFO] [stdout]  --> src/test_struct.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     pub struct User {
[INFO] [stdout]   |                ---- field in this struct
[INFO] [stdout] 4 |         active: bool,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add` is never used
[INFO] [stdout]   --> src/test_struct.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 |     fn add<T: std::ops::Add<Output = T>>(a:T, b:T) -> T {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `y` is never read
[INFO] [stdout]   --> src/test_struct.rs:52:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     pub struct Point<T: std::ops::Mul<Output = T>> {
[INFO] [stdout]    |                ----- field in this struct
[INFO] [stdout] 51 |         x: T,
[INFO] [stdout] 52 |         y: T,
[INFO] [stdout]    |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Error` should have a snake case name
[INFO] [stdout]   --> src/test_error.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |             Error => {
[INFO] [stdout]    |             ^^^^^ help: convert the identifier to snake case: `error`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s
[INFO] running `Command { std: "docker" "inspect" "d7758d8eb3d2e2f1a17fe52e60c1a855f873e66b433c368c8bce392c5b097ca7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d7758d8eb3d2e2f1a17fe52e60c1a855f873e66b433c368c8bce392c5b097ca7", kill_on_drop: false }`
[INFO] [stdout] d7758d8eb3d2e2f1a17fe52e60c1a855f873e66b433c368c8bce392c5b097ca7
