[INFO] cloning repository https://github.com/khajavi/TheJoyOfRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/khajavi/TheJoyOfRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhajavi%2FTheJoyOfRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhajavi%2FTheJoyOfRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a22148f710b5be631f4a16b46a9e13e272edbafa [INFO] checking khajavi/TheJoyOfRust against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhajavi%2FTheJoyOfRust" "/workspace/builds/worker-72/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-72/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/khajavi/TheJoyOfRust on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/khajavi/TheJoyOfRust [INFO] finished tweaking git repo https://github.com/khajavi/TheJoyOfRust [INFO] tweaked toml for git repo https://github.com/khajavi/TheJoyOfRust written to /workspace/builds/worker-72/source/Cargo.toml [INFO] crate git repo https://github.com/khajavi/TheJoyOfRust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78dd99fd4b59f6a211ffd3b95cc83878b4aa845824fbac7cd9b924811bfe771f [INFO] running `Command { std: "docker" "start" "-a" "78dd99fd4b59f6a211ffd3b95cc83878b4aa845824fbac7cd9b924811bfe771f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78dd99fd4b59f6a211ffd3b95cc83878b4aa845824fbac7cd9b924811bfe771f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78dd99fd4b59f6a211ffd3b95cc83878b4aa845824fbac7cd9b924811bfe771f", kill_on_drop: false }` [INFO] [stdout] 78dd99fd4b59f6a211ffd3b95cc83878b4aa845824fbac7cd9b924811bfe771f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6699d7d695bb29b9cb062b357615cb6da56deb109bab87966530ab78163fbd30 [INFO] running `Command { std: "docker" "start" "-a" "6699d7d695bb29b9cb062b357615cb6da56deb109bab87966530ab78163fbd30", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking TheJoyOfRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/main.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 299 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:588:5 [INFO] [stdout] | [INFO] [stdout] 588 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:590:5 [INFO] [stdout] | [INFO] [stdout] 590 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:592:5 [INFO] [stdout] | [INFO] [stdout] 592 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:594:5 [INFO] [stdout] | [INFO] [stdout] 594 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/main.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 299 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:588:5 [INFO] [stdout] | [INFO] [stdout] 588 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:590:5 [INFO] [stdout] | [INFO] [stdout] 590 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:592:5 [INFO] [stdout] | [INFO] [stdout] 592 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:594:5 [INFO] [stdout] | [INFO] [stdout] 594 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 295 | break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 299 | / 'inner: loop { [INFO] [stdout] 300 | | println!("inner"); [INFO] [stdout] 301 | | break 'outer; [INFO] [stdout] 302 | | } [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 295 | break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 299 | / 'inner: loop { [INFO] [stdout] 300 | | println!("inner"); [INFO] [stdout] 301 | | break 'outer; [INFO] [stdout] 302 | | } [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/main.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | Err(e) => 0 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:524:25 [INFO] [stdout] | [INFO] [stdout] 524 | fn work_with_string(s: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:531:25 [INFO] [stdout] | [INFO] [stdout] 531 | fn work_with_string(s: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:539:22 [INFO] [stdout] | [INFO] [stdout] 539 | fn work_with_i32(i: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:548:25 [INFO] [stdout] | [INFO] [stdout] 548 | fn work_with_string(s: &String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `take_ownership` [INFO] [stdout] --> src/main.rs:552:19 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_take_ownership` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_only_borrow` [INFO] [stdout] --> src/main.rs:552:43 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_only_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable_borrow` [INFO] [stdout] --> src/main.rs:552:67 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty` [INFO] [stdout] --> src/main.rs:649:9 [INFO] [stdout] | [INFO] [stdout] 649 | let empty = Empty; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `null` [INFO] [stdout] --> src/main.rs:650:9 [INFO] [stdout] | [INFO] [stdout] 650 | let null = Null; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_null` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:850:13 [INFO] [stdout] | [INFO] [stdout] 850 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/main.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:960:9 [INFO] [stdout] | [INFO] [stdout] 960 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:965:13 [INFO] [stdout] | [INFO] [stdout] 965 | 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: `b` [INFO] [stdout] --> src/main.rs:1005:9 [INFO] [stdout] | [INFO] [stdout] 1005 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:1008:13 [INFO] [stdout] | [INFO] [stdout] 1008 | 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: unused variable: `b1` [INFO] [stdout] --> src/main.rs:1016:9 [INFO] [stdout] | [INFO] [stdout] 1016 | let b1 = Cons(3, a1.clone()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/main.rs:1017:9 [INFO] [stdout] | [INFO] [stdout] 1017 | let c1 = Cons(4, a1.clone()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:834:18 [INFO] [stdout] | [INFO] [stdout] 834 | for (i, c) in self.listeners.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/main.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | Err(e) => 0 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:524:25 [INFO] [stdout] | [INFO] [stdout] 524 | fn work_with_string(s: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:531:25 [INFO] [stdout] | [INFO] [stdout] 531 | fn work_with_string(s: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:539:22 [INFO] [stdout] | [INFO] [stdout] 539 | fn work_with_i32(i: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:548:25 [INFO] [stdout] | [INFO] [stdout] 548 | fn work_with_string(s: &String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `take_ownership` [INFO] [stdout] --> src/main.rs:552:19 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_take_ownership` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_only_borrow` [INFO] [stdout] --> src/main.rs:552:43 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_only_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable_borrow` [INFO] [stdout] --> src/main.rs:552:67 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty` [INFO] [stdout] --> src/main.rs:649:9 [INFO] [stdout] | [INFO] [stdout] 649 | let empty = Empty; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `null` [INFO] [stdout] --> src/main.rs:650:9 [INFO] [stdout] | [INFO] [stdout] 650 | let null = Null; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_null` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:850:13 [INFO] [stdout] | [INFO] [stdout] 850 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/main.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:960:9 [INFO] [stdout] | [INFO] [stdout] 960 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:965:13 [INFO] [stdout] | [INFO] [stdout] 965 | 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: `b` [INFO] [stdout] --> src/main.rs:1005:9 [INFO] [stdout] | [INFO] [stdout] 1005 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:1008:13 [INFO] [stdout] | [INFO] [stdout] 1008 | 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: unused variable: `b1` [INFO] [stdout] --> src/main.rs:1016:9 [INFO] [stdout] | [INFO] [stdout] 1016 | let b1 = Cons(3, a1.clone()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/main.rs:1017:9 [INFO] [stdout] | [INFO] [stdout] 1017 | let c1 = Cons(4, a1.clone()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:834:18 [INFO] [stdout] | [INFO] [stdout] 834 | for (i, c) in self.listeners.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Second` [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | Second, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Second` [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | Second, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rich` [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rich` [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `One` [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | One = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `One` [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | One = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Three` [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | Three = 3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Three` [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | Three = 3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inference_example` [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn inference_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `type_aliasing_example` [INFO] [stdout] --> src/main.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn type_aliasing_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inference_example` [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn inference_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_example` [INFO] [stdout] --> src/main.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn match_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `type_aliasing_example` [INFO] [stdout] --> src/main.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn type_aliasing_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuple_destruction_example` [INFO] [stdout] --> src/main.rs:362:4 [INFO] [stdout] | [INFO] [stdout] 362 | fn tuple_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_example` [INFO] [stdout] --> src/main.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn match_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_destruction_example` [INFO] [stdout] --> src/main.rs:364:4 [INFO] [stdout] | [INFO] [stdout] 364 | fn enum_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuple_destruction_example` [INFO] [stdout] --> src/main.rs:362:4 [INFO] [stdout] | [INFO] [stdout] 362 | fn tuple_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_destruction_example` [INFO] [stdout] --> src/main.rs:364:4 [INFO] [stdout] | [INFO] [stdout] 364 | fn enum_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `struct_destruction_example` [INFO] [stdout] --> src/main.rs:391:4 [INFO] [stdout] | [INFO] [stdout] 391 | fn struct_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_guard` [INFO] [stdout] --> src/main.rs:393:4 [INFO] [stdout] | [INFO] [stdout] 393 | fn match_guard() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_binding` [INFO] [stdout] --> src/main.rs:395:4 [INFO] [stdout] | [INFO] [stdout] 395 | fn match_binding() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Foo` [INFO] [stdout] --> src/main.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bar` [INFO] [stdout] --> src/main.rs:407:9 [INFO] [stdout] | [INFO] [stdout] 407 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_example` [INFO] [stdout] --> src/main.rs:432:4 [INFO] [stdout] | [INFO] [stdout] 432 | fn function_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_fn` [INFO] [stdout] --> src/main.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_example` [INFO] [stdout] --> src/main.rs:572:4 [INFO] [stdout] | [INFO] [stdout] 572 | fn generic_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:584:12 [INFO] [stdout] | [INFO] [stdout] 584 | struct S(A); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | struct S; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `GenericVal` [INFO] [stdout] --> src/main.rs:605:12 [INFO] [stdout] | [INFO] [stdout] 605 | struct GenericVal(T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_trait_example` [INFO] [stdout] --> src/main.rs:637:4 [INFO] [stdout] | [INFO] [stdout] 637 | fn generic_trait_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `printer` [INFO] [stdout] --> src/main.rs:656:8 [INFO] [stdout] | [INFO] [stdout] 656 | fn printer(t: T) { println!("{}", t); } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:658:12 [INFO] [stdout] | [INFO] [stdout] 658 | struct S(T); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/main.rs:670:8 [INFO] [stdout] | [INFO] [stdout] 670 | fn area(t: &T) -> f64 { t.area() } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/main.rs:859:8 [INFO] [stdout] | [INFO] [stdout] 859 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/main.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 951 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/main.rs:975:9 [INFO] [stdout] | [INFO] [stdout] 975 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `struct_destruction_example` [INFO] [stdout] --> src/main.rs:391:4 [INFO] [stdout] | [INFO] [stdout] 391 | fn struct_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_guard` [INFO] [stdout] --> src/main.rs:393:4 [INFO] [stdout] | [INFO] [stdout] 393 | fn match_guard() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_binding` [INFO] [stdout] --> src/main.rs:395:4 [INFO] [stdout] | [INFO] [stdout] 395 | fn match_binding() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Foo` [INFO] [stdout] --> src/main.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `TheJoyOfRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `the_joy_of_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bar` [INFO] [stdout] --> src/main.rs:407:9 [INFO] [stdout] | [INFO] [stdout] 407 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_example` [INFO] [stdout] --> src/main.rs:432:4 [INFO] [stdout] | [INFO] [stdout] 432 | fn function_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_fn` [INFO] [stdout] --> src/main.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_example` [INFO] [stdout] --> src/main.rs:572:4 [INFO] [stdout] | [INFO] [stdout] 572 | fn generic_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:584:12 [INFO] [stdout] | [INFO] [stdout] 584 | struct S(A); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | struct S; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/main.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | 5 + 3; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 260 | let _ = 5 + 3; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `GenericVal` [INFO] [stdout] --> src/main.rs:605:12 [INFO] [stdout] | [INFO] [stdout] 605 | struct GenericVal(T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_trait_example` [INFO] [stdout] --> src/main.rs:637:4 [INFO] [stdout] | [INFO] [stdout] 637 | fn generic_trait_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `printer` [INFO] [stdout] --> src/main.rs:656:8 [INFO] [stdout] | [INFO] [stdout] 656 | fn printer(t: T) { println!("{}", t); } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:658:12 [INFO] [stdout] | [INFO] [stdout] 658 | struct S(T); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/main.rs:670:8 [INFO] [stdout] | [INFO] [stdout] 670 | fn area(t: &T) -> f64 { t.area() } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/main.rs:859:8 [INFO] [stdout] | [INFO] [stdout] 859 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_vs_String_example` should have a snake case name [INFO] [stdout] --> src/main.rs:555:4 [INFO] [stdout] | [INFO] [stdout] 555 | fn str_vs_String_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `str_vs_string_example` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/main.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 951 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/main.rs:975:9 [INFO] [stdout] | [INFO] [stdout] 975 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `TheJoyOfRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `the_joy_of_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/main.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | 5 + 3; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 260 | let _ = 5 + 3; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_vs_String_example` should have a snake case name [INFO] [stdout] --> src/main.rs:555:4 [INFO] [stdout] | [INFO] [stdout] 555 | fn str_vs_String_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `str_vs_string_example` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.87s [INFO] running `Command { std: "docker" "inspect" "6699d7d695bb29b9cb062b357615cb6da56deb109bab87966530ab78163fbd30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6699d7d695bb29b9cb062b357615cb6da56deb109bab87966530ab78163fbd30", kill_on_drop: false }` [INFO] [stdout] 6699d7d695bb29b9cb062b357615cb6da56deb109bab87966530ab78163fbd30