[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#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhajavi%2FTheJoyOfRust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/khajavi/TheJoyOfRust on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "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-1-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2726e3b1e6c09d1ae440f309c9023448ea02f4b10a22f0b1a54620b13078d1e8 [INFO] running `Command { std: "docker" "start" "-a" "2726e3b1e6c09d1ae440f309c9023448ea02f4b10a22f0b1a54620b13078d1e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2726e3b1e6c09d1ae440f309c9023448ea02f4b10a22f0b1a54620b13078d1e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2726e3b1e6c09d1ae440f309c9023448ea02f4b10a22f0b1a54620b13078d1e8", kill_on_drop: false }` [INFO] [stdout] 2726e3b1e6c09d1ae440f309c9023448ea02f4b10a22f0b1a54620b13078d1e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b6a0ed9863bf110757f8b0cfcba89a2fa124a30f3be5b9ccb240c028da9e820 [INFO] running `Command { std: "docker" "start" "-a" "0b6a0ed9863bf110757f8b0cfcba89a2fa124a30f3be5b9ccb240c028da9e820", kill_on_drop: false }` [INFO] [stderr] Checking TheJoyOfRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: named argument `first` is not used by name [INFO] [stdout] --> src/main.rs:146:34 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `first` by position [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(named_arguments_used_positionally)]` on by default [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{first:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `second` is not used by name [INFO] [stdout] --> src/main.rs:146:55 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `second` by position [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {second:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `third` is not used by name [INFO] [stdout] --> src/main.rs:146:75 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `third` by position [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {third:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | +++++ [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: named argument `first` is not used by name [INFO] [stdout] --> src/main.rs:146:34 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `first` by position [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(named_arguments_used_positionally)]` on by default [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{first:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `second` is not used by name [INFO] [stdout] --> src/main.rs:146:55 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `second` by position [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {second:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `third` is not used by name [INFO] [stdout] --> src/main.rs:146:75 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `third` by position [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {third:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | +++++ [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: `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: `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: `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: `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: `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: `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: variant `Second` is never constructed [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | enum Day { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 77 | First, [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 `Rich` is never constructed [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 93 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One` and `Three` are never constructed [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 98 | enum Number { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 99 | One = 1, [INFO] [stdout] | ^^^ [INFO] [stdout] 100 | Two = 2, [INFO] [stdout] 101 | Three = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:117:14 [INFO] [stdout] | [INFO] [stdout] 117 | 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] 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] 117 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inference_example` is never used [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 `type_aliasing_example` is never used [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: field `value` is never read [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 215 | value: i32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_example` is never used [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 `tuple_destruction_example` is never used [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 `enum_destruction_example` is never used [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 `struct_destruction_example` is never used [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 `match_guard` is never used [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 `match_binding` is never used [INFO] [stdout] --> src/main.rs:395:4 [INFO] [stdout] | [INFO] [stdout] 395 | fn match_binding() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Foo` and `Bar` are never constructed [INFO] [stdout] --> src/main.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 405 | enum Event { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 406 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] 407 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_example` is never used [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 `example_fn` is never used [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 `generic_example` is never used [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 `S` is never constructed [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 `S` is never constructed [INFO] [stdout] --> src/main.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | struct S; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenericVal` is never constructed [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 `generic_trait_example` is never used [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 `printer` is never used [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 `S` is never constructed [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 `area` is never used [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: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 757 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 758 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 759 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mouse_y` is never read [INFO] [stdout] --> src/main.rs:796:36 [INFO] [stdout] | [INFO] [stdout] 796 | struct OnClick { mouse_x: f32, mouse_y: f32 } [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `OnClick` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [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: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:874:14 [INFO] [stdout] | [INFO] [stdout] 874 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 874 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/main.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 950 | struct CustomSmartPointer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 951 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/main.rs:975:9 [INFO] [stdout] | [INFO] [stdout] 974 | struct CustomSmartPointer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 975 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:996:14 [INFO] [stdout] | [INFO] [stdout] 996 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 996 | Cons((), ()), [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: 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] = note: `#[warn(non_snake_case)]` on by default [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: `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: 62 warnings emitted [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: variant `Second` is never constructed [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | enum Day { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 77 | First, [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 `Rich` is never constructed [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 93 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One` and `Three` are never constructed [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 98 | enum Number { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 99 | One = 1, [INFO] [stdout] | ^^^ [INFO] [stdout] 100 | Two = 2, [INFO] [stdout] 101 | Three = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:117:14 [INFO] [stdout] | [INFO] [stdout] 117 | 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] 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] 117 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inference_example` is never used [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 `type_aliasing_example` is never used [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: field `value` is never read [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 215 | value: i32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_example` is never used [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 `tuple_destruction_example` is never used [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 `enum_destruction_example` is never used [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 `struct_destruction_example` is never used [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 `match_guard` is never used [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 `match_binding` is never used [INFO] [stdout] --> src/main.rs:395:4 [INFO] [stdout] | [INFO] [stdout] 395 | fn match_binding() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Foo` and `Bar` are never constructed [INFO] [stdout] --> src/main.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 405 | enum Event { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 406 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] 407 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_example` is never used [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 `example_fn` is never used [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 `generic_example` is never used [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 `S` is never constructed [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 `S` is never constructed [INFO] [stdout] --> src/main.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | struct S; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenericVal` is never constructed [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 `generic_trait_example` is never used [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 `printer` is never used [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 `S` is never constructed [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 `area` is never used [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: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 757 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 758 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 759 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mouse_y` is never read [INFO] [stdout] --> src/main.rs:796:36 [INFO] [stdout] | [INFO] [stdout] 796 | struct OnClick { mouse_x: f32, mouse_y: f32 } [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `OnClick` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [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: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:874:14 [INFO] [stdout] | [INFO] [stdout] 874 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 874 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/main.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 950 | struct CustomSmartPointer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 951 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/main.rs:975:9 [INFO] [stdout] | [INFO] [stdout] 974 | struct CustomSmartPointer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 975 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:996:14 [INFO] [stdout] | [INFO] [stdout] 996 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 996 | Cons((), ()), [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: 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] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "0b6a0ed9863bf110757f8b0cfcba89a2fa124a30f3be5b9ccb240c028da9e820", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b6a0ed9863bf110757f8b0cfcba89a2fa124a30f3be5b9ccb240c028da9e820", kill_on_drop: false }` [INFO] [stdout] 0b6a0ed9863bf110757f8b0cfcba89a2fa124a30f3be5b9ccb240c028da9e820 [INFO] checking khajavi/TheJoyOfRust against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhajavi%2FTheJoyOfRust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/khajavi/TheJoyOfRust on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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-1-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 458222adcd24f5f5fe2ea0d6e05b56d2d63c8f3d08e9f5e0ad04a146354a9e1a [INFO] running `Command { std: "docker" "start" "-a" "458222adcd24f5f5fe2ea0d6e05b56d2d63c8f3d08e9f5e0ad04a146354a9e1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "458222adcd24f5f5fe2ea0d6e05b56d2d63c8f3d08e9f5e0ad04a146354a9e1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "458222adcd24f5f5fe2ea0d6e05b56d2d63c8f3d08e9f5e0ad04a146354a9e1a", kill_on_drop: false }` [INFO] [stdout] 458222adcd24f5f5fe2ea0d6e05b56d2d63c8f3d08e9f5e0ad04a146354a9e1a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e78c12f351d820f5eb9a0e4c50dccc9757b44d3ca928849cf995bced440246c [INFO] running `Command { std: "docker" "start" "-a" "3e78c12f351d820f5eb9a0e4c50dccc9757b44d3ca928849cf995bced440246c", kill_on_drop: false }` [INFO] [stderr] Checking TheJoyOfRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: named argument `first` is not used by name [INFO] [stdout] --> src/main.rs:146:34 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `first` by position [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(named_arguments_used_positionally)]` on by default [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{first:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `second` is not used by name [INFO] [stdout] --> src/main.rs:146:55 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `second` by position [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {second:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `third` is not used by name [INFO] [stdout] --> src/main.rs:146:75 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `third` by position [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {third:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | +++++ [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: named argument `first` is not used by name [INFO] [stdout] --> src/main.rs:146:34 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `first` by position [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(named_arguments_used_positionally)]` on by default [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{first:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | +++++ [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: named argument `second` is not used by name [INFO] [stdout] --> src/main.rs:146:55 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `second` by position [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {second:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: named argument `third` is not used by name [INFO] [stdout] --> src/main.rs:146:75 [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | ---- ^^^^^ this named argument is referred to by position in formatting string [INFO] [stdout] | | [INFO] [stdout] | this formatting argument uses named argument `third` by position [INFO] [stdout] | [INFO] [stdout] help: use the named argument by name to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 146 | println!("{:?}, {:?}, {third:?}", first = integer_num, second = boolean_a, third = unit) [INFO] [stdout] | +++++ [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: `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: `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: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: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: `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: `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: `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: `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: `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: `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: `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: `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: `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: `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: `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: `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: `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: variant `Second` is never constructed [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | enum Day { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 77 | First, [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 `Rich` is never constructed [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 93 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One` and `Three` are never constructed [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 98 | enum Number { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 99 | One = 1, [INFO] [stdout] | ^^^ [INFO] [stdout] 100 | Two = 2, [INFO] [stdout] 101 | Three = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:117:14 [INFO] [stdout] | [INFO] [stdout] 117 | 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] 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] 117 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [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: function `inference_example` is never used [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn inference_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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: function `type_aliasing_example` is never used [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: 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: field `value` is never read [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 215 | value: i32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_example` is never used [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 `tuple_destruction_example` is never used [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 `enum_destruction_example` is never used [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 `struct_destruction_example` is never used [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 `match_guard` is never used [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 `match_binding` is never used [INFO] [stdout] --> src/main.rs:395:4 [INFO] [stdout] | [INFO] [stdout] 395 | fn match_binding() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Foo` and `Bar` are never constructed [INFO] [stdout] --> src/main.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 405 | enum Event { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 406 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] 407 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_example` is never used [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 `example_fn` is never used [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 `generic_example` is never used [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 `S` is never constructed [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 `S` is never constructed [INFO] [stdout] --> src/main.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | struct S; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenericVal` is never constructed [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 `generic_trait_example` is never used [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 `printer` is never used [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 `S` is never constructed [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 `area` is never used [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: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 757 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 758 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 759 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mouse_y` is never read [INFO] [stdout] --> src/main.rs:796:36 [INFO] [stdout] | [INFO] [stdout] 796 | struct OnClick { mouse_x: f32, mouse_y: f32 } [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `OnClick` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [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: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:874:14 [INFO] [stdout] | [INFO] [stdout] 874 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 874 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/main.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 950 | struct CustomSmartPointer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 951 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/main.rs:975:9 [INFO] [stdout] | [INFO] [stdout] 974 | struct CustomSmartPointer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 975 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:996:14 [INFO] [stdout] | [INFO] [stdout] 996 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 996 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:124:30 [INFO] [stdout] | [INFO] [stdout] 123 | fn prepend(self, elem: i32) -> List { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 124 | List::Cons(elem, Box::new(self)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Second` is never constructed [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 76 | enum Day { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 77 | First, [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 `Rich` is never constructed [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 93 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One` and `Three` are never constructed [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 98 | enum Number { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 99 | One = 1, [INFO] [stdout] | ^^^ [INFO] [stdout] 100 | Two = 2, [INFO] [stdout] 101 | Three = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:117:14 [INFO] [stdout] | [INFO] [stdout] 117 | 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] 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] 117 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inference_example` is never used [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 `type_aliasing_example` is never used [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: field `value` is never read [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | struct Number { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 215 | value: i32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_example` is never used [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 `tuple_destruction_example` is never used [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 `enum_destruction_example` is never used [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 `struct_destruction_example` is never used [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 `match_guard` is never used [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 `match_binding` is never used [INFO] [stdout] --> src/main.rs:395:4 [INFO] [stdout] | [INFO] [stdout] 395 | fn match_binding() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Foo` and `Bar` are never constructed [INFO] [stdout] --> src/main.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 405 | enum Event { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 406 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] 407 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_example` is never used [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 `example_fn` is never used [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 `generic_example` is never used [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 `S` is never constructed [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 `S` is never constructed [INFO] [stdout] --> src/main.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | struct S; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenericVal` is never constructed [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 `generic_trait_example` is never used [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 `printer` is never used [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 `S` is never constructed [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 `area` is never used [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: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 757 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 758 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 759 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mouse_y` is never read [INFO] [stdout] --> src/main.rs:796:36 [INFO] [stdout] | [INFO] [stdout] 796 | struct OnClick { mouse_x: f32, mouse_y: f32 } [INFO] [stdout] | ------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `OnClick` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [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: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:874:14 [INFO] [stdout] | [INFO] [stdout] 874 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 874 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/main.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 950 | struct CustomSmartPointer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 951 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/main.rs:975:9 [INFO] [stdout] | [INFO] [stdout] 974 | struct CustomSmartPointer { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 975 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:996:14 [INFO] [stdout] | [INFO] [stdout] 996 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [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] 996 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:124:30 [INFO] [stdout] | [INFO] [stdout] 123 | fn prepend(self, elem: i32) -> List { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 124 | List::Cons(elem, Box::new(self)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `TheJoyOfRust` (bin "TheJoyOfRust" test) due to 2 previous errors; 62 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `TheJoyOfRust` (bin "TheJoyOfRust") due to 2 previous errors; 62 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3e78c12f351d820f5eb9a0e4c50dccc9757b44d3ca928849cf995bced440246c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e78c12f351d820f5eb9a0e4c50dccc9757b44d3ca928849cf995bced440246c", kill_on_drop: false }` [INFO] [stdout] 3e78c12f351d820f5eb9a0e4c50dccc9757b44d3ca928849cf995bced440246c