[INFO] cloning repository https://github.com/grajnikanth/rust_book_exs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/grajnikanth/rust_book_exs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrajnikanth%2Frust_book_exs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrajnikanth%2Frust_book_exs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a21fa10a147af0898615d7706e29a64e9691149c
[INFO] testing grajnikanth/rust_book_exs against 1.99.0-beta.8+cargoflags=--release for beta-release-1.100-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrajnikanth%2Frust_book_exs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/grajnikanth/rust_book_exs
[INFO] finished tweaking git repo https://github.com/grajnikanth/rust_book_exs
[INFO] tweaked toml for git repo https://github.com/grajnikanth/rust_book_exs written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/grajnikanth/rust_book_exs on toolchain 1.99.0-beta.8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/grajnikanth/rust_book_exs 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" "+1.99.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594
[INFO] running `Command { std: "docker" "start" "a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594", 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" "a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust_book_exs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: struct `Pair` is never constructed
[INFO] [stdout]   --> src/lib.rs:58:8
[INFO] [stdout]    |
[INFO] [stdout] 58 | struct Pair<T> {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/lib.rs:64:8
[INFO] [stdout]    |
[INFO] [stdout] 63 | impl<T> Pair<T> {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 64 |     fn new(x: T, y: T) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `compare_display` is never used
[INFO] [stdout]   --> src/lib.rs:72:8
[INFO] [stdout]    |
[INFO] [stdout] 69 | impl<T: Display + PartialOrd> Pair<T> {
[INFO] [stdout]    | ------------------------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 72 |     fn compare_display(&self) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `width` and `height` are never read
[INFO] [stdout]  --> src/bin/3_debug_ex.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Rectangle {
[INFO] [stdout]   |        --------- fields in this struct
[INFO] [stdout] 8 |     width: u32,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 9 |     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]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/bin/44_errors_3.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let res = match f {
[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: fields `0`, `1`, `2`, and `3` are never read
[INFO] [stdout]  --> src/bin/6_enum_ex3.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 |     V4(u8, u8, u8, u8),
[INFO] [stdout]   |     -- ^^  ^^  ^^  ^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     fields 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]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]   |
[INFO] [stdout] 7 -     V4(u8, u8, u8, u8),
[INFO] [stdout] 7 +     V4((), (), (), ()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/bin/6_enum_ex3.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 |     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] 8 -     V6(String)
[INFO] [stdout] 8 +     V6(())
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `x` does not live long enough
[INFO] [stdout]   --> src/bin/69_lifetime_1.rs:15:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let x = 5;
[INFO] [stdout]    |             - binding `x` declared here
[INFO] [stdout] 15 |         r = &x; 
[INFO] [stdout]    |             ^^ borrowed value does not live long enough
[INFO] [stdout] 16 |     } // x is dropped at this line, but r is still referencing x memory after it is
[INFO] [stdout]    |     - `x` dropped here while still borrowed
[INFO] [stdout] ...
[INFO] [stdout] 24 |     println!("r: {}", r);
[INFO] [stdout]    |                       - borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `field_name`
[INFO] [stdout]   --> src/bin/37_hashmap_3.rs:20:36
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let field_name = String::from("Favorite color");
[INFO] [stdout]    |         ---------- move occurs because `field_name` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 15 |     map.insert(field_name, field_value);
[INFO] [stdout]    |                ---------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 20 |     println!("Field_name is = {}", field_name);
[INFO] [stdout]    |                                    ^^^^^^^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 15 |     map.insert(field_name.clone(), field_value);
[INFO] [stdout]    |                          ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `field_value`
[INFO] [stdout]   --> src/bin/37_hashmap_3.rs:21:36
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let field_value = String::from("Blue");
[INFO] [stdout]    |         ----------- move occurs because `field_value` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 15 |     map.insert(field_name, field_value);
[INFO] [stdout]    |                            ----------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 21 |     println!("Field_name is = {}", field_value);
[INFO] [stdout]    |                                    ^^^^^^^^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 15 |     map.insert(field_name, field_value.clone());
[INFO] [stdout]    |                                       ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_book_exs` (bin "37_hashmap_3") due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `rust_book_exs` (bin "69_lifetime_1") due to 1 previous error
[INFO] [stdout] error[E0382]: borrow of moved value: `x`
[INFO] [stdout]   --> src/bin/68_closure_2.rs:16:68
[INFO] [stdout]    |
[INFO] [stdout]  6 |     let x = vec![1, 2, 3];
[INFO] [stdout]    |         - move occurs because `x` has type `Vec<i32>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 13 |     let equal_to_x = move |z| {z == x};
[INFO] [stdout]    |                      --------       - variable moved due to use in closure
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      value moved into closure here
[INFO] [stdout] ...
[INFO] [stdout] 16 |     println!("can't use x here as it has moved to closure = {:?}", x);
[INFO] [stdout]    |                                                                    ^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value before moving it into the closure
[INFO] [stdout]    |
[INFO] [stdout] 13 ~     let value = x.clone();
[INFO] [stdout] 14 ~     let equal_to_x = move |z| {z == value};
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_book_exs` (bin "68_closure_2") due to 1 previous error
[INFO] [stdout] error[E0405]: cannot find trait `summary` in this scope
[INFO] [stdout]   --> src/bin/66_traits_4.rs:26:36
[INFO] [stdout]    |
[INFO] [stdout] 26 | fn returns_summarizable2() -> impl summary {
[INFO] [stdout]    |                                    ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/lib.rs:12:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub trait Summary {
[INFO] [stdout]    | ----------------- similarly named trait `Summary` defined here
[INFO] [stdout]    |
[INFO] [stdout] help: a trait with a similar name exists (notice the capitalization)
[INFO] [stdout]    |
[INFO] [stdout] 26 - fn returns_summarizable2() -> impl summary {
[INFO] [stdout] 26 + fn returns_summarizable2() -> impl Summary {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `switch` in this scope
[INFO] [stdout]   --> src/bin/66_traits_4.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 |     if switch {
[INFO] [stdout]    |        ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NewsArticle` in this scope
[INFO] [stdout]   --> src/bin/66_traits_4.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |         NewsArticle {
[INFO] [stdout]    |         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]   --> src/bin/45_errors_4.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res = match f {
[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] error[E0601]: `main` function not found in crate `66_traits_4`
[INFO] [stdout]   --> src/bin/66_traits_4.rs:42:2
[INFO] [stdout]    |
[INFO] [stdout] 42 | }
[INFO] [stdout]    |  ^ consider adding a `main` function to `src/bin/66_traits_4.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0422, E0425, E0601.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_book_exs` (bin "66_traits_4") due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594", kill_on_drop: false }`
[INFO] [stdout] a86c3877e4136c7987eae45ea914eb783e01f9a6f9f49e0e0feedd00fdc84594
