[INFO] cloning repository https://github.com/sebastian-navarro/the_rust_programming_language [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sebastian-navarro/the_rust_programming_language" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsebastian-navarro%2Fthe_rust_programming_language", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsebastian-navarro%2Fthe_rust_programming_language'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5f28ac3d67048d5b48d5fc3176c4ceaa8cb9cc45 [INFO] checking sebastian-navarro/the_rust_programming_language against try#e071e73523bfcdcab2878dbf652ac8ebb9b9eee4 for pr-144386 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsebastian-navarro%2Fthe_rust_programming_language" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sebastian-navarro/the_rust_programming_language [INFO] finished tweaking git repo https://github.com/sebastian-navarro/the_rust_programming_language [INFO] tweaked toml for git repo https://github.com/sebastian-navarro/the_rust_programming_language written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sebastian-navarro/the_rust_programming_language on toolchain e071e73523bfcdcab2878dbf652ac8ebb9b9eee4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sebastian-navarro/the_rust_programming_language 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" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7950da7f087336dd5fe2d9b2c6f8b29d1bee9891da00642cb5e158cfc6655746 [INFO] running `Command { std: "docker" "start" "-a" "7950da7f087336dd5fe2d9b2c6f8b29d1bee9891da00642cb5e158cfc6655746", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7950da7f087336dd5fe2d9b2c6f8b29d1bee9891da00642cb5e158cfc6655746", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7950da7f087336dd5fe2d9b2c6f8b29d1bee9891da00642cb5e158cfc6655746", kill_on_drop: false }` [INFO] [stdout] 7950da7f087336dd5fe2d9b2c6f8b29d1bee9891da00642cb5e158cfc6655746 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d693373a4cc7e3593bdf7595f43628e748ddc5251323756d62db87c0f4f37cba [INFO] running `Command { std: "docker" "start" "-a" "d693373a4cc7e3593bdf7595f43628e748ddc5251323756d62db87c0f4f37cba", kill_on_drop: false }` [INFO] [stderr] Checking the_rust_programming_language v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `active`, `username`, and `sign_in_count` are never read [INFO] [stdout] --> examples/5_1_structs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | email: String, [INFO] [stdout] 6 | sign_in_count : u64, [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_user` is never used [INFO] [stdout] --> examples/5_1_structs.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> examples/15_4_rc_smartpointer.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> examples/15_4_rc_smartpointer.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> examples/15_4_rc_smartpointer.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 2 - Cons(i32, Rc), [INFO] [stdout] 2 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> examples/15_3_drop_sp.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> examples/15_3_drop_sp.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `approve` found for unit type `()` in the current scope [INFO] [stdout] --> examples/17_3_state_patter_opp.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 40 | fn approve(self: Box) -> Box; [INFO] [stdout] | --------- the method might not be found because of this arbitrary self type [INFO] [stdout] ... [INFO] [stdout] 93 | let post = post.approve(); [INFO] [stdout] | ^^^^^^^ method not found in `()` [INFO] [stdout] | [INFO] [stdout] note: there's an earlier shadowed binding `post` of type `Post` that has method `approve` available [INFO] [stdout] --> examples/17_3_state_patter_opp.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut post = Post::new(); [INFO] [stdout] | ^^^^^^^^ `post` of type `Post` that has method `approve` defined earlier here [INFO] [stdout] ... [INFO] [stdout] 91 | let post = post.request_review(); [INFO] [stdout] | ---- earlier `post` shadowed here with type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> examples/17_3_state_patter_opp.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `the_rust_programming_language` (example "17_3_state_patter_opp") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> examples/15_5_refcell_rc.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` 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] 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] 3 - Cons(Rc>, Rc), [INFO] [stdout] 3 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d693373a4cc7e3593bdf7595f43628e748ddc5251323756d62db87c0f4f37cba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d693373a4cc7e3593bdf7595f43628e748ddc5251323756d62db87c0f4f37cba", kill_on_drop: false }` [INFO] [stdout] d693373a4cc7e3593bdf7595f43628e748ddc5251323756d62db87c0f4f37cba