[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] testing khajavi/TheJoyOfRust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhajavi%2FTheJoyOfRust" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/khajavi/TheJoyOfRust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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/source/Cargo.toml [INFO] crate git repo https://github.com/khajavi/TheJoyOfRust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b51055e32fed0ef85c0130bc281c8579c275d7575263e0387630c31c1b2c0a9c [INFO] running `Command { std: "docker" "start" "-a" "b51055e32fed0ef85c0130bc281c8579c275d7575263e0387630c31c1b2c0a9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b51055e32fed0ef85c0130bc281c8579c275d7575263e0387630c31c1b2c0a9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b51055e32fed0ef85c0130bc281c8579c275d7575263e0387630c31c1b2c0a9c", kill_on_drop: false }` [INFO] [stdout] b51055e32fed0ef85c0130bc281c8579c275d7575263e0387630c31c1b2c0a9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 460387aeb6961c779badb5e4f25bb45cf48c346d8665922d880579844d4780ab [INFO] running `Command { std: "docker" "start" "-a" "460387aeb6961c779badb5e4f25bb45cf48c346d8665922d880579844d4780ab", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling TheJoyOfRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/main.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 299 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:588:5 [INFO] [stdout] | [INFO] [stdout] 588 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:590:5 [INFO] [stdout] | [INFO] [stdout] 590 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:592:5 [INFO] [stdout] | [INFO] [stdout] 592 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:594:5 [INFO] [stdout] | [INFO] [stdout] 594 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 295 | break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 299 | / 'inner: loop { [INFO] [stdout] 300 | | println!("inner"); [INFO] [stdout] 301 | | break 'outer; [INFO] [stdout] 302 | | } [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/main.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | Err(e) => 0 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:524:25 [INFO] [stdout] | [INFO] [stdout] 524 | fn work_with_string(s: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:531:25 [INFO] [stdout] | [INFO] [stdout] 531 | fn work_with_string(s: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:539:22 [INFO] [stdout] | [INFO] [stdout] 539 | fn work_with_i32(i: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:548:25 [INFO] [stdout] | [INFO] [stdout] 548 | fn work_with_string(s: &String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `take_ownership` [INFO] [stdout] --> src/main.rs:552:19 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_take_ownership` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_only_borrow` [INFO] [stdout] --> src/main.rs:552:43 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_only_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable_borrow` [INFO] [stdout] --> src/main.rs:552:67 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty` [INFO] [stdout] --> src/main.rs:649:9 [INFO] [stdout] | [INFO] [stdout] 649 | let empty = Empty; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `null` [INFO] [stdout] --> src/main.rs:650:9 [INFO] [stdout] | [INFO] [stdout] 650 | let null = Null; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_null` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:850:13 [INFO] [stdout] | [INFO] [stdout] 850 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/main.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:960:9 [INFO] [stdout] | [INFO] [stdout] 960 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:965:13 [INFO] [stdout] | [INFO] [stdout] 965 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:1005:9 [INFO] [stdout] | [INFO] [stdout] 1005 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:1008:13 [INFO] [stdout] | [INFO] [stdout] 1008 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> src/main.rs:1016:9 [INFO] [stdout] | [INFO] [stdout] 1016 | let b1 = Cons(3, a1.clone()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/main.rs:1017:9 [INFO] [stdout] | [INFO] [stdout] 1017 | let c1 = Cons(4, a1.clone()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:834:18 [INFO] [stdout] | [INFO] [stdout] 834 | for (i, c) in self.listeners.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Second` [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | Second, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rich` [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `One` [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | One = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Three` [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | Three = 3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inference_example` [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn inference_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `type_aliasing_example` [INFO] [stdout] --> src/main.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn type_aliasing_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [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] --> src/main.rs:213:14 [INFO] [stdout] | [INFO] [stdout] 213 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_example` [INFO] [stdout] --> src/main.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn match_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuple_destruction_example` [INFO] [stdout] --> src/main.rs:362:4 [INFO] [stdout] | [INFO] [stdout] 362 | fn tuple_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_destruction_example` [INFO] [stdout] --> src/main.rs:364:4 [INFO] [stdout] | [INFO] [stdout] 364 | fn enum_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `struct_destruction_example` [INFO] [stdout] --> src/main.rs:391:4 [INFO] [stdout] | [INFO] [stdout] 391 | fn struct_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_guard` [INFO] [stdout] --> src/main.rs:393:4 [INFO] [stdout] | [INFO] [stdout] 393 | fn match_guard() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_binding` [INFO] [stdout] --> src/main.rs:395:4 [INFO] [stdout] | [INFO] [stdout] 395 | fn match_binding() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Foo` [INFO] [stdout] --> src/main.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bar` [INFO] [stdout] --> src/main.rs:407:9 [INFO] [stdout] | [INFO] [stdout] 407 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_example` [INFO] [stdout] --> src/main.rs:432:4 [INFO] [stdout] | [INFO] [stdout] 432 | fn function_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_fn` [INFO] [stdout] --> src/main.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_example` [INFO] [stdout] --> src/main.rs:572:4 [INFO] [stdout] | [INFO] [stdout] 572 | fn generic_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:584:12 [INFO] [stdout] | [INFO] [stdout] 584 | struct S(A); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | struct S; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `GenericVal` [INFO] [stdout] --> src/main.rs:605:12 [INFO] [stdout] | [INFO] [stdout] 605 | struct GenericVal(T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_trait_example` [INFO] [stdout] --> src/main.rs:637:4 [INFO] [stdout] | [INFO] [stdout] 637 | fn generic_trait_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `printer` [INFO] [stdout] --> src/main.rs:656:8 [INFO] [stdout] | [INFO] [stdout] 656 | fn printer(t: T) { println!("{}", t); } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:658:12 [INFO] [stdout] | [INFO] [stdout] 658 | struct S(T); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/main.rs:670:8 [INFO] [stdout] | [INFO] [stdout] 670 | fn area(t: &T) -> f64 { t.area() } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 758 | x: 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] --> src/main.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:759:9 [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] --> src/main.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mouse_y` [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] note: `OnClick` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:795:14 [INFO] [stdout] | [INFO] [stdout] 795 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/main.rs:859:8 [INFO] [stdout] | [INFO] [stdout] 859 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/main.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 951 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/main.rs:975:9 [INFO] [stdout] | [INFO] [stdout] 975 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `TheJoyOfRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `the_joy_of_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/main.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | 5 + 3; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 260 | let _ = 5 + 3; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_vs_String_example` should have a snake case name [INFO] [stdout] --> src/main.rs:555:4 [INFO] [stdout] | [INFO] [stdout] 555 | fn str_vs_String_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `str_vs_string_example` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.49s [INFO] running `Command { std: "docker" "inspect" "460387aeb6961c779badb5e4f25bb45cf48c346d8665922d880579844d4780ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "460387aeb6961c779badb5e4f25bb45cf48c346d8665922d880579844d4780ab", kill_on_drop: false }` [INFO] [stdout] 460387aeb6961c779badb5e4f25bb45cf48c346d8665922d880579844d4780ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c951f76c5d3bd83ef9d3e393b9fa3b00395d2a2c7e375517c1eaab67fa930e3d [INFO] running `Command { std: "docker" "start" "-a" "c951f76c5d3bd83ef9d3e393b9fa3b00395d2a2c7e375517c1eaab67fa930e3d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling TheJoyOfRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/main.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 299 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:588:5 [INFO] [stdout] | [INFO] [stdout] 588 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:590:5 [INFO] [stdout] | [INFO] [stdout] 590 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:592:5 [INFO] [stdout] | [INFO] [stdout] 592 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:594:5 [INFO] [stdout] | [INFO] [stdout] 594 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 295 | break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 299 | / 'inner: loop { [INFO] [stdout] 300 | | println!("inner"); [INFO] [stdout] 301 | | break 'outer; [INFO] [stdout] 302 | | } [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/main.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | let my_string = String::from(my_str); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | Err(e) => 0 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:524:25 [INFO] [stdout] | [INFO] [stdout] 524 | fn work_with_string(s: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:531:25 [INFO] [stdout] | [INFO] [stdout] 531 | fn work_with_string(s: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:539:22 [INFO] [stdout] | [INFO] [stdout] 539 | fn work_with_i32(i: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:548:25 [INFO] [stdout] | [INFO] [stdout] 548 | fn work_with_string(s: &String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `take_ownership` [INFO] [stdout] --> src/main.rs:552:19 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_take_ownership` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_only_borrow` [INFO] [stdout] --> src/main.rs:552:43 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_only_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable_borrow` [INFO] [stdout] --> src/main.rs:552:67 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_borrow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty` [INFO] [stdout] --> src/main.rs:649:9 [INFO] [stdout] | [INFO] [stdout] 649 | let empty = Empty; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `null` [INFO] [stdout] --> src/main.rs:650:9 [INFO] [stdout] | [INFO] [stdout] 650 | let null = Null; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_null` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:850:13 [INFO] [stdout] | [INFO] [stdout] 850 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/main.rs:879:9 [INFO] [stdout] | [INFO] [stdout] 879 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:960:9 [INFO] [stdout] | [INFO] [stdout] 960 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:965:13 [INFO] [stdout] | [INFO] [stdout] 965 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:1005:9 [INFO] [stdout] | [INFO] [stdout] 1005 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:1008:13 [INFO] [stdout] | [INFO] [stdout] 1008 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> src/main.rs:1016:9 [INFO] [stdout] | [INFO] [stdout] 1016 | let b1 = Cons(3, a1.clone()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/main.rs:1017:9 [INFO] [stdout] | [INFO] [stdout] 1017 | let c1 = Cons(4, a1.clone()); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:834:18 [INFO] [stdout] | [INFO] [stdout] 834 | for (i, c) in self.listeners.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Second` [INFO] [stdout] --> src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | Second, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rich` [INFO] [stdout] --> src/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | Rich, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `One` [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | One = 1, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Three` [INFO] [stdout] --> src/main.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | Three = 3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inference_example` [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn inference_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `type_aliasing_example` [INFO] [stdout] --> src/main.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn type_aliasing_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [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] --> src/main.rs:213:14 [INFO] [stdout] | [INFO] [stdout] 213 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_example` [INFO] [stdout] --> src/main.rs:360:4 [INFO] [stdout] | [INFO] [stdout] 360 | fn match_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuple_destruction_example` [INFO] [stdout] --> src/main.rs:362:4 [INFO] [stdout] | [INFO] [stdout] 362 | fn tuple_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_destruction_example` [INFO] [stdout] --> src/main.rs:364:4 [INFO] [stdout] | [INFO] [stdout] 364 | fn enum_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `struct_destruction_example` [INFO] [stdout] --> src/main.rs:391:4 [INFO] [stdout] | [INFO] [stdout] 391 | fn struct_destruction_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_guard` [INFO] [stdout] --> src/main.rs:393:4 [INFO] [stdout] | [INFO] [stdout] 393 | fn match_guard() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_binding` [INFO] [stdout] --> src/main.rs:395:4 [INFO] [stdout] | [INFO] [stdout] 395 | fn match_binding() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Foo` [INFO] [stdout] --> src/main.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | Foo, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bar` [INFO] [stdout] --> src/main.rs:407:9 [INFO] [stdout] | [INFO] [stdout] 407 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_example` [INFO] [stdout] --> src/main.rs:432:4 [INFO] [stdout] | [INFO] [stdout] 432 | fn function_example() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_fn` [INFO] [stdout] --> src/main.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_example` [INFO] [stdout] --> src/main.rs:572:4 [INFO] [stdout] | [INFO] [stdout] 572 | fn generic_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:584:12 [INFO] [stdout] | [INFO] [stdout] 584 | struct S(A); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | struct S; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `GenericVal` [INFO] [stdout] --> src/main.rs:605:12 [INFO] [stdout] | [INFO] [stdout] 605 | struct GenericVal(T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_trait_example` [INFO] [stdout] --> src/main.rs:637:4 [INFO] [stdout] | [INFO] [stdout] 637 | fn generic_trait_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `printer` [INFO] [stdout] --> src/main.rs:656:8 [INFO] [stdout] | [INFO] [stdout] 656 | fn printer(t: T) { println!("{}", t); } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `S` [INFO] [stdout] --> src/main.rs:658:12 [INFO] [stdout] | [INFO] [stdout] 658 | struct S(T); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/main.rs:670:8 [INFO] [stdout] | [INFO] [stdout] 670 | fn area(t: &T) -> f64 { t.area() } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 758 | x: 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] --> src/main.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:759:9 [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] --> src/main.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mouse_y` [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] note: `OnClick` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:795:14 [INFO] [stdout] | [INFO] [stdout] 795 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/main.rs:859:8 [INFO] [stdout] | [INFO] [stdout] 859 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/main.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 951 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/main.rs:975:9 [INFO] [stdout] | [INFO] [stdout] 975 | data: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `TheJoyOfRust` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `the_joy_of_rust` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/main.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | 5 + 3; [INFO] [stdout] | ^^^^^ the arithmetic operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 260 | let _ = 5 + 3; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `str_vs_String_example` should have a snake case name [INFO] [stdout] --> src/main.rs:555:4 [INFO] [stdout] | [INFO] [stdout] 555 | fn str_vs_String_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `str_vs_string_example` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 60 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 33.69s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/TheJoyOfRust-f4ef97f6b45bf0e4) [INFO] running `Command { std: "docker" "inspect" "c951f76c5d3bd83ef9d3e393b9fa3b00395d2a2c7e375517c1eaab67fa930e3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c951f76c5d3bd83ef9d3e393b9fa3b00395d2a2c7e375517c1eaab67fa930e3d", kill_on_drop: false }` [INFO] [stdout] c951f76c5d3bd83ef9d3e393b9fa3b00395d2a2c7e375517c1eaab67fa930e3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c1a1b9ede4b1416ecdcec10decc3f687a9950a096c57afccecdb44c5030dc6e7 [INFO] running `Command { std: "docker" "start" "-a" "c1a1b9ede4b1416ecdcec10decc3f687a9950a096c57afccecdb44c5030dc6e7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused label [INFO] [stderr] --> src/main.rs:299:9 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] running 0 tests [INFO] [stderr] 299 | 'inner: loop { [INFO] [stdout] [INFO] [stderr] | ^^^^^^ [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] = note: `#[warn(unused_labels)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/main.rs:588:5 [INFO] [stderr] | [INFO] [stderr] 588 | ; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/main.rs:590:5 [INFO] [stderr] | [INFO] [stderr] 590 | ; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/main.rs:592:5 [INFO] [stderr] | [INFO] [stderr] 592 | ; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/main.rs:594:5 [INFO] [stderr] | [INFO] [stderr] 594 | ; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/main.rs:299:9 [INFO] [stderr] | [INFO] [stderr] 295 | break; [INFO] [stderr] | ----- any code following this expression is unreachable [INFO] [stderr] ... [INFO] [stderr] 299 | / 'inner: loop { [INFO] [stderr] 300 | | println!("inner"); [INFO] [stderr] 301 | | break 'outer; [INFO] [stderr] 302 | | } [INFO] [stderr] | |_________^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `my_string` [INFO] [stderr] --> src/main.rs:210:9 [INFO] [stderr] | [INFO] [stderr] 210 | let my_string = String::from(my_str); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/main.rs:246:13 [INFO] [stderr] | [INFO] [stderr] 246 | Err(e) => 0 [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:524:25 [INFO] [stderr] | [INFO] [stderr] 524 | fn work_with_string(s: String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:531:25 [INFO] [stderr] | [INFO] [stderr] 531 | fn work_with_string(s: String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/main.rs:539:22 [INFO] [stderr] | [INFO] [stderr] 539 | fn work_with_i32(i: i32) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:548:25 [INFO] [stderr] | [INFO] [stderr] 548 | fn work_with_string(s: &String) {} [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `take_ownership` [INFO] [stderr] --> src/main.rs:552:19 [INFO] [stderr] | [INFO] [stderr] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_take_ownership` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `read_only_borrow` [INFO] [stderr] --> src/main.rs:552:43 [INFO] [stderr] | [INFO] [stderr] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_only_borrow` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mutable_borrow` [INFO] [stderr] --> src/main.rs:552:67 [INFO] [stderr] | [INFO] [stderr] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable_borrow` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `empty` [INFO] [stderr] --> src/main.rs:649:9 [INFO] [stderr] | [INFO] [stderr] 649 | let empty = Empty; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `null` [INFO] [stderr] --> src/main.rs:650:9 [INFO] [stderr] | [INFO] [stderr] 650 | let null = Null; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_null` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/main.rs:850:13 [INFO] [stderr] | [INFO] [stderr] 850 | let x = 5; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `list` [INFO] [stderr] --> src/main.rs:879:9 [INFO] [stderr] | [INFO] [stderr] 879 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/main.rs:960:9 [INFO] [stderr] | [INFO] [stderr] 960 | let c = CustomSmartPointer { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `d` [INFO] [stderr] --> src/main.rs:965:13 [INFO] [stderr] | [INFO] [stderr] 965 | let d = CustomSmartPointer { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/main.rs:1005:9 [INFO] [stderr] | [INFO] [stderr] 1005 | let b = Cons(3, Rc::clone(&a)); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/main.rs:1008:13 [INFO] [stderr] | [INFO] [stderr] 1008 | let c = Cons(4, Rc::clone(&a)); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b1` [INFO] [stderr] --> src/main.rs:1016:9 [INFO] [stderr] | [INFO] [stderr] 1016 | let b1 = Cons(3, a1.clone()); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c1` [INFO] [stderr] --> src/main.rs:1017:9 [INFO] [stderr] | [INFO] [stderr] 1017 | let c1 = Cons(4, a1.clone()); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/main.rs:834:18 [INFO] [stderr] | [INFO] [stderr] 834 | for (i, c) in self.listeners.iter() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Second` [INFO] [stderr] --> src/main.rs:78:9 [INFO] [stderr] | [INFO] [stderr] 78 | Second, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Rich` [INFO] [stderr] --> src/main.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | Rich, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:91:10 [INFO] [stderr] | [INFO] [stderr] 91 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `One` [INFO] [stderr] --> src/main.rs:99:5 [INFO] [stderr] | [INFO] [stderr] 99 | One = 1, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:97:10 [INFO] [stderr] | [INFO] [stderr] 97 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Three` [INFO] [stderr] --> src/main.rs:101:5 [INFO] [stderr] | [INFO] [stderr] 101 | Three = 3, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:97:10 [INFO] [stderr] | [INFO] [stderr] 97 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `inference_example` [INFO] [stderr] --> src/main.rs:198:4 [INFO] [stderr] | [INFO] [stderr] 198 | fn inference_example() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `type_aliasing_example` [INFO] [stderr] --> src/main.rs:203:4 [INFO] [stderr] | [INFO] [stderr] 203 | fn type_aliasing_example() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `value` [INFO] [stderr] --> src/main.rs:215:9 [INFO] [stderr] | [INFO] [stderr] 215 | value: i32 [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Number` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:213:14 [INFO] [stderr] | [INFO] [stderr] 213 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `match_example` [INFO] [stderr] --> src/main.rs:360:4 [INFO] [stderr] | [INFO] [stderr] 360 | fn match_example() {} [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `tuple_destruction_example` [INFO] [stderr] --> src/main.rs:362:4 [INFO] [stderr] | [INFO] [stderr] 362 | fn tuple_destruction_example() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `enum_destruction_example` [INFO] [stderr] --> src/main.rs:364:4 [INFO] [stderr] | [INFO] [stderr] 364 | fn enum_destruction_example() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `struct_destruction_example` [INFO] [stderr] --> src/main.rs:391:4 [INFO] [stderr] | [INFO] [stderr] 391 | fn struct_destruction_example() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `match_guard` [INFO] [stderr] --> src/main.rs:393:4 [INFO] [stderr] | [INFO] [stderr] 393 | fn match_guard() {} [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `match_binding` [INFO] [stderr] --> src/main.rs:395:4 [INFO] [stderr] | [INFO] [stderr] 395 | fn match_binding() {} [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Foo` [INFO] [stderr] --> src/main.rs:406:9 [INFO] [stderr] | [INFO] [stderr] 406 | Foo, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Bar` [INFO] [stderr] --> src/main.rs:407:9 [INFO] [stderr] | [INFO] [stderr] 407 | Bar, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `function_example` [INFO] [stderr] --> src/main.rs:432:4 [INFO] [stderr] | [INFO] [stderr] 432 | fn function_example() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_fn` [INFO] [stderr] --> src/main.rs:552:8 [INFO] [stderr] | [INFO] [stderr] 552 | fn example_fn(take_ownership: String, read_only_borrow: &str, mutable_borrow: &mut str) {} [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `generic_example` [INFO] [stderr] --> src/main.rs:572:4 [INFO] [stderr] | [INFO] [stderr] 572 | fn generic_example() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `S` [INFO] [stderr] --> src/main.rs:584:12 [INFO] [stderr] | [INFO] [stderr] 584 | struct S(A); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `S` [INFO] [stderr] --> src/main.rs:604:12 [INFO] [stderr] | [INFO] [stderr] 604 | struct S; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `GenericVal` [INFO] [stderr] --> src/main.rs:605:12 [INFO] [stderr] | [INFO] [stderr] 605 | struct GenericVal(T); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `generic_trait_example` [INFO] [stderr] --> src/main.rs:637:4 [INFO] [stderr] | [INFO] [stderr] 637 | fn generic_trait_example() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `printer` [INFO] [stderr] --> src/main.rs:656:8 [INFO] [stderr] | [INFO] [stderr] 656 | fn printer(t: T) { println!("{}", t); } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `S` [INFO] [stderr] --> src/main.rs:658:12 [INFO] [stderr] | [INFO] [stderr] 658 | struct S(T); [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `area` [INFO] [stderr] --> src/main.rs:670:8 [INFO] [stderr] | [INFO] [stderr] 670 | fn area(t: &T) -> f64 { t.area() } [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `x` [INFO] [stderr] --> src/main.rs:758:9 [INFO] [stderr] | [INFO] [stderr] 758 | x: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:756:14 [INFO] [stderr] | [INFO] [stderr] 756 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `y` [INFO] [stderr] --> src/main.rs:759:9 [INFO] [stderr] | [INFO] [stderr] 759 | y: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:756:14 [INFO] [stderr] | [INFO] [stderr] 756 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `mouse_y` [INFO] [stderr] --> src/main.rs:796:36 [INFO] [stderr] | [INFO] [stderr] 796 | struct OnClick { mouse_x: f32, mouse_y: f32 } [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `OnClick` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:795:14 [INFO] [stderr] | [INFO] [stderr] 795 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `longest` [INFO] [stderr] --> src/main.rs:859:8 [INFO] [stderr] | [INFO] [stderr] 859 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `data` [INFO] [stderr] --> src/main.rs:951:9 [INFO] [stderr] | [INFO] [stderr] 951 | data: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `data` [INFO] [stderr] --> src/main.rs:975:9 [INFO] [stderr] | [INFO] [stderr] 975 | data: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `TheJoyOfRust` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `the_joy_of_rust` [INFO] [stderr] [INFO] [stderr] warning: unused arithmetic operation that must be used [INFO] [stderr] --> src/main.rs:260:9 [INFO] [stderr] | [INFO] [stderr] 260 | 5 + 3; [INFO] [stderr] | ^^^^^ the arithmetic operation produces a value [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 260 | let _ = 5 + 3; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: function `str_vs_String_example` should have a snake case name [INFO] [stderr] --> src/main.rs:555:4 [INFO] [stderr] | [INFO] [stderr] 555 | fn str_vs_String_example() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `str_vs_string_example` [INFO] [stderr] [INFO] [stderr] warning: `TheJoyOfRust` (bin "TheJoyOfRust" test) generated 60 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 11.75s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/TheJoyOfRust-f4ef97f6b45bf0e4) [INFO] running `Command { std: "docker" "inspect" "c1a1b9ede4b1416ecdcec10decc3f687a9950a096c57afccecdb44c5030dc6e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1a1b9ede4b1416ecdcec10decc3f687a9950a096c57afccecdb44c5030dc6e7", kill_on_drop: false }` [INFO] [stdout] c1a1b9ede4b1416ecdcec10decc3f687a9950a096c57afccecdb44c5030dc6e7