[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 master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsebastian-navarro%2Fthe_rust_programming_language" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sebastian-navarro/the_rust_programming_language on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef650853678fc4885bcdd34d9f153466a9128ec6da2c11d543f8162eccf8a21e [INFO] running `Command { std: "docker" "start" "-a" "ef650853678fc4885bcdd34d9f153466a9128ec6da2c11d543f8162eccf8a21e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef650853678fc4885bcdd34d9f153466a9128ec6da2c11d543f8162eccf8a21e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef650853678fc4885bcdd34d9f153466a9128ec6da2c11d543f8162eccf8a21e", kill_on_drop: false }` [INFO] [stdout] ef650853678fc4885bcdd34d9f153466a9128ec6da2c11d543f8162eccf8a21e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e4bc1e6f2f3662f9554617c16eefc331bbafb9fccae500448fba0f3e66f0358 [INFO] running `Command { std: "docker" "start" "-a" "8e4bc1e6f2f3662f9554617c16eefc331bbafb9fccae500448fba0f3e66f0358", kill_on_drop: false }` [INFO] [stderr] Checking the_rust_programming_language v0.1.0 (/opt/rustwide/workdir) [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] 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: `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] 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: unused variable: `t` [INFO] [stdout] --> examples/10_2_traits.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | fn some_function(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> examples/10_2_traits.rs:65:31 [INFO] [stdout] | [INFO] [stdout] 65 | fn some_function(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> examples/10_2_traits.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn some_function(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8e4bc1e6f2f3662f9554617c16eefc331bbafb9fccae500448fba0f3e66f0358", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e4bc1e6f2f3662f9554617c16eefc331bbafb9fccae500448fba0f3e66f0358", kill_on_drop: false }` [INFO] [stdout] 8e4bc1e6f2f3662f9554617c16eefc331bbafb9fccae500448fba0f3e66f0358