[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 master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrajnikanth%2Frust_book_exs" "/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/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-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/grajnikanth/rust_book_exs on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ce97170d0939654ae2dd4768e534edf528865494f813911f28004cd0b448305 [INFO] running `Command { std: "docker" "start" "-a" "9ce97170d0939654ae2dd4768e534edf528865494f813911f28004cd0b448305", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ce97170d0939654ae2dd4768e534edf528865494f813911f28004cd0b448305", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ce97170d0939654ae2dd4768e534edf528865494f813911f28004cd0b448305", kill_on_drop: false }` [INFO] [stdout] 9ce97170d0939654ae2dd4768e534edf528865494f813911f28004cd0b448305 [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" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f05818cc22b215714113a32ba114c37b0c47b04ecd80a8584cf36e4131fd1178 [INFO] running `Command { std: "docker" "start" "-a" "f05818cc22b215714113a32ba114c37b0c47b04ecd80a8584cf36e4131fd1178", 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 { [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 Pair { [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 Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | fn compare_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/bin/22_struct_tuples_ex1.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let Point(x,y,z) = origin; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/bin/22_struct_tuples_ex1.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let Point(x,y,z) = origin; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/bin/22_struct_tuples_ex1.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | 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: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/47_errors_6.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let f = File::open("hello.txt").expect("Failed to open hello.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/87_smrt_ptr_drop.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/bin/87_smrt_ptr_drop.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/25_vectors_3.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut v = vec![1, 2, 3, 4, 5]; [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] 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] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use rust_book_exs::NewsArticle; [INFO] [stdout] | [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/36_hashmap_2.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut scores: HashMap<_,_> = [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] error[E0594]: cannot assign to `model_3000.on_sale`, as `model_3000` is not declared as mutable [INFO] [stdout] --> src/bin/79_int_mutability.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | model_3000.on_sale = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 17 | let mut model_3000 = PhoneModel { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0594`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_book_exs` (bin "79_int_mutability") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "f05818cc22b215714113a32ba114c37b0c47b04ecd80a8584cf36e4131fd1178", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f05818cc22b215714113a32ba114c37b0c47b04ecd80a8584cf36e4131fd1178", kill_on_drop: false }` [INFO] [stdout] f05818cc22b215714113a32ba114c37b0c47b04ecd80a8584cf36e4131fd1178