[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#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsebastian-navarro%2Fthe_rust_programming_language" "/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/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-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sebastian-navarro/the_rust_programming_language on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e149e4f9c527266df84fe7b17e1336f89580487104525cf463633b07d420775 [INFO] running `Command { std: "docker" "start" "-a" "4e149e4f9c527266df84fe7b17e1336f89580487104525cf463633b07d420775", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e149e4f9c527266df84fe7b17e1336f89580487104525cf463633b07d420775", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e149e4f9c527266df84fe7b17e1336f89580487104525cf463633b07d420775", kill_on_drop: false }` [INFO] [stdout] 4e149e4f9c527266df84fe7b17e1336f89580487104525cf463633b07d420775 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 288354e106907e72fe97f24c5a6e1646e14c360f9909facca35637d8f0dde5d0 [INFO] running `Command { std: "docker" "start" "-a" "288354e106907e72fe97f24c5a6e1646e14c360f9909facca35637d8f0dde5d0", kill_on_drop: false }` [INFO] [stderr] Checking the_rust_programming_language v0.1.0 (/opt/rustwide/workdir) [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] [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: fields `x` and `y` are never read [INFO] [stdout] --> examples/10_1_generics.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 2 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 3 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [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] [stdout] warning: field `height` is never read [INFO] [stdout] --> examples/13_7_closures_sort.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> examples/6_2_enums_example.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 3 | Penny, [INFO] [stdout] 4 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> examples/13_9_closures_fnmut.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `label` are never read [INFO] [stdout] --> examples/17_2_oop_traits.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Button { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | width:u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 19 | height:u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `options` are never read [INFO] [stdout] --> examples/17_2_oop_traits.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 31 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 33 | options: Vec, [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: 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: fields `0` and `1` are never read [INFO] [stdout] --> examples/15_1_box_smart_pointer.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | Cons(i32, Box), [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(i32, Box), [INFO] [stdout] 3 + 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: `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] warning: field `0` is never read [INFO] [stdout] --> examples/8_1_vectors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | First(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Types` 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 field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 - First(String), [INFO] [stdout] 3 + First(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/8_1_vectors.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | Second(i8), [INFO] [stdout] | ------ ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Types` 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] 4 - Second(i8), [INFO] [stdout] 4 + Second(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/8_1_vectors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | Third(char), [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Types` 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] 5 - Third(char), [INFO] [stdout] 5 + Third(()), [INFO] [stdout] | [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] running `Command { std: "docker" "inspect" "288354e106907e72fe97f24c5a6e1646e14c360f9909facca35637d8f0dde5d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "288354e106907e72fe97f24c5a6e1646e14c360f9909facca35637d8f0dde5d0", kill_on_drop: false }` [INFO] [stdout] 288354e106907e72fe97f24c5a6e1646e14c360f9909facca35637d8f0dde5d0