[INFO] cloning repository https://github.com/mackoctavian/the_book
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mackoctavian/the_book" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmackoctavian%2Fthe_book", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmackoctavian%2Fthe_book'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f4a40fd5246b00c35f0963b4271ff3af30605949
[INFO] checking mackoctavian/the_book against try#b152f5575a2ac7126ae0019e4e679abe9399213e for pr-157841
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmackoctavian%2Fthe_book" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/mackoctavian/the_book
[INFO] finished tweaking git repo https://github.com/mackoctavian/the_book
[INFO] tweaked toml for git repo https://github.com/mackoctavian/the_book written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/mackoctavian/the_book on toolchain b152f5575a2ac7126ae0019e4e679abe9399213e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b152f5575a2ac7126ae0019e4e679abe9399213e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/mackoctavian/the_book 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" "+b152f5575a2ac7126ae0019e4e679abe9399213e" "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-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 6141229cf47c33bda561d2dd5c2891bf6bd582e97a81bffff96e5b88300db1e8
[INFO] running `Command { std: "docker" "start" "6141229cf47c33bda561d2dd5c2891bf6bd582e97a81bffff96e5b88300db1e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6141229cf47c33bda561d2dd5c2891bf6bd582e97a81bffff96e5b88300db1e8" "/opt/rustwide/cargo-home/bin/cargo" "+b152f5575a2ac7126ae0019e4e679abe9399213e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6141229cf47c33bda561d2dd5c2891bf6bd582e97a81bffff96e5b88300db1e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6141229cf47c33bda561d2dd5c2891bf6bd582e97a81bffff96e5b88300db1e8" "/opt/rustwide/cargo-home/bin/cargo" "+b152f5575a2ac7126ae0019e4e679abe9399213e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking concurrency v0.1.0 (/opt/rustwide/workdir/concurrency)
[INFO] [stderr]     Checking generics v0.1.0 (/opt/rustwide/workdir/generics)
[INFO] [stderr]     Checking the_book v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking automated_test v0.1.0 (/opt/rustwide/workdir/automated_test)
[INFO] [stderr]     Checking error_handling v0.1.0 (/opt/rustwide/workdir/error_handling)
[INFO] [stderr]     Checking iterators v0.1.0 (/opt/rustwide/workdir/iterators)
[INFO] [stderr]     Checking collections v0.1.0 (/opt/rustwide/workdir/collections)
[INFO] [stdout] warning: unused import: `mem`
[INFO] [stdout]  --> collections/src/main.rs:1:33
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{collections::HashMap, mem};
[INFO] [stdout]   |                                 ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `greeting`
[INFO] [stdout]  --> error_handling/src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let greeting = match greeting_file_result {
[INFO] [stdout]   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `greeting_file`
[INFO] [stdout]   --> error_handling/src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let greeting_file = File::open("hello.txt").unwrap_or_else(|error| {
[INFO] [stdout]    |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]   --> automated_test/src/lib.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 | struct Rectangle {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file` is never used
[INFO] [stdout]   --> error_handling/src/main.rs:35:4
[INFO] [stdout]    |
[INFO] [stdout] 35 | fn read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `can_hold` is never used
[INFO] [stdout]   --> automated_test/src/lib.rs:37:8
[INFO] [stdout]    |
[INFO] [stdout] 36 | impl Rectangle {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] 37 |     fn can_hold(&self, other: &Rectangle) -> bool {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file_short` is never used
[INFO] [stdout]   --> error_handling/src/main.rs:51:4
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn read_username_from_file_short() -> Result<String, io::Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shorter_read_username_from_file` is never used
[INFO] [stdout]   --> error_handling/src/main.rs:58:4
[INFO] [stdout]    |
[INFO] [stdout] 58 | fn shorter_read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `greeting`
[INFO] [stdout]  --> error_handling/src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let greeting = match greeting_file_result {
[INFO] [stdout]   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `greeting_file`
[INFO] [stdout]   --> error_handling/src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let greeting_file = File::open("hello.txt").unwrap_or_else(|error| {
[INFO] [stdout]    |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file` is never used
[INFO] [stdout]   --> error_handling/src/main.rs:35:4
[INFO] [stdout]    |
[INFO] [stdout] 35 | fn read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file_short` is never used
[INFO] [stdout]   --> error_handling/src/main.rs:51:4
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn read_username_from_file_short() -> Result<String, io::Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shorter_read_username_from_file` is never used
[INFO] [stdout]   --> error_handling/src/main.rs:58:4
[INFO] [stdout]    |
[INFO] [stdout] 58 | fn shorter_read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mem`
[INFO] [stdout]  --> collections/src/main.rs:1:33
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{collections::HashMap, mem};
[INFO] [stdout]   |                                 ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `>` cannot be applied to type `&T`
[INFO] [stdout]   --> generics/src/main.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 |         if item > largest {
[INFO] [stdout]    |            ---- ^ ------- &T
[INFO] [stdout]    |            |
[INFO] [stdout]    |            &T
[INFO] [stdout]    |
[INFO] [stdout] help: consider restricting type parameter `T` with trait `PartialOrd`
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn another_largest<T: std::cmp::PartialOrd>(list: &[T]) -> &T {
[INFO] [stdout]    |                     ++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `closure_annotated`
[INFO] [stdout]   --> iterators/src/main.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let closure_annotated = |i: i32| -> i32 { i + outer_val };
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closure_annotated`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `integer`
[INFO] [stdout]  --> generics/src/main.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let integer = Point { x: 5, y: 4 };
[INFO] [stdout]   |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `float`
[INFO] [stdout]  --> generics/src/main.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let float = Point { x: 5.0, y: 4.0 };
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_float`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0369`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `closure_annotated`
[INFO] [stdout]   --> iterators/src/main.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let closure_annotated = |i: i32| -> i32 { i + outer_val };
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closure_annotated`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0369]: binary operation `>` cannot be applied to type `&T`
[INFO] [stdout]   --> generics/src/main.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 |         if item > largest {
[INFO] [stdout]    |            ---- ^ ------- &T
[INFO] [stdout]    |            |
[INFO] [stdout]    |            &T
[INFO] [stdout]    |
[INFO] [stdout] help: consider restricting type parameter `T` with trait `PartialOrd`
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn another_largest<T: std::cmp::PartialOrd>(list: &[T]) -> &T {
[INFO] [stdout]    |                     ++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v2`
[INFO] [stdout]   --> collections/src/main.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let v2 = Vec::from([1,2,3,4]);
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_v2`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v3`
[INFO] [stdout]   --> collections/src/main.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let v3 = vec![0; 5];
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_v3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `integer`
[INFO] [stdout]  --> generics/src/main.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let integer = Point { x: 5, y: 4 };
[INFO] [stdout]   |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `float`
[INFO] [stdout]  --> generics/src/main.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let float = Point { x: 5.0, y: 4.0 };
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_float`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `row`
[INFO] [stdout]   --> collections/src/main.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let row = vec![
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_row`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v2`
[INFO] [stdout]   --> collections/src/main.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let v2 = Vec::from([1,2,3,4]);
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_v2`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v3`
[INFO] [stdout]   --> collections/src/main.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let v3 = vec![0; 5];
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_v3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `row`
[INFO] [stdout]   --> collections/src/main.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |     let row = vec![
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_row`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0369`.
[INFO] [stdout] 
[INFO] [stdout] warning: function `using_vec` is never used
[INFO] [stdout]  --> collections/src/main.rs:8:4
[INFO] [stdout]   |
[INFO] [stdout] 8 | fn using_vec() {
[INFO] [stdout]   |    ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `generics` (bin "generics" test) due to 1 previous error; 2 warnings emitted
[INFO] [stdout] warning: function `store_multiple_types` is never used
[INFO] [stdout]   --> collections/src/main.rs:43:4
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn store_multiple_types() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `using_strings` is never used
[INFO] [stdout]   --> collections/src/main.rs:57:4
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn using_strings() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `learning_hashmap` is never used
[INFO] [stdout]   --> collections/src/main.rs:67:4
[INFO] [stdout]    |
[INFO] [stdout] 67 | fn learning_hashmap() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `using_vec` is never used
[INFO] [stdout]  --> collections/src/main.rs:8:4
[INFO] [stdout]   |
[INFO] [stdout] 8 | fn using_vec() {
[INFO] [stdout]   |    ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `store_multiple_types` is never used
[INFO] [stdout]   --> collections/src/main.rs:43:4
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn store_multiple_types() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `using_strings` is never used
[INFO] [stdout]   --> collections/src/main.rs:57:4
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn using_strings() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `learning_hashmap` is never used
[INFO] [stdout]   --> collections/src/main.rs:67:4
[INFO] [stdout]    |
[INFO] [stdout] 67 | fn learning_hashmap() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `generics` (bin "generics") due to 1 previous error; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6141229cf47c33bda561d2dd5c2891bf6bd582e97a81bffff96e5b88300db1e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6141229cf47c33bda561d2dd5c2891bf6bd582e97a81bffff96e5b88300db1e8", kill_on_drop: false }`
[INFO] [stdout] 6141229cf47c33bda561d2dd5c2891bf6bd582e97a81bffff96e5b88300db1e8
