[INFO] cloning repository https://github.com/Sudhindra3000/rust_by_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sudhindra3000/rust_by_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSudhindra3000%2Frust_by_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSudhindra3000%2Frust_by_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5b22ce317806069df729e19a1fe4db748be3ebd [INFO] checking Sudhindra3000/rust_by_example against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSudhindra3000%2Frust_by_example" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Sudhindra3000/rust_by_example on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Sudhindra3000/rust_by_example [INFO] finished tweaking git repo https://github.com/Sudhindra3000/rust_by_example [INFO] tweaked toml for git repo https://github.com/Sudhindra3000/rust_by_example written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/Sudhindra3000/rust_by_example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "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-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b359df343b6a6c64e8a44eedec948cbc8f600239cfdabe9af452414c4f55fb2 [INFO] running `Command { std: "docker" "start" "-a" "2b359df343b6a6c64e8a44eedec948cbc8f600239cfdabe9af452414c4f55fb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b359df343b6a6c64e8a44eedec948cbc8f600239cfdabe9af452414c4f55fb2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b359df343b6a6c64e8a44eedec948cbc8f600239cfdabe9af452414c4f55fb2", kill_on_drop: false }` [INFO] [stdout] 2b359df343b6a6c64e8a44eedec948cbc8f600239cfdabe9af452414c4f55fb2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f0b2dca9e8dfc43636789710bf102a793ab0ec842b84ad9b0085caf6611b8c95 [INFO] running `Command { std: "docker" "start" "-a" "f0b2dca9e8dfc43636789710bf102a793ab0ec842b84ad9b0085caf6611b8c95", kill_on_drop: false }` [INFO] [stderr] Checking rust_by_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/part6_conversion.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/part8_flow_control/flow_control.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/part6_conversion.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/part8_flow_control/flow_control.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/part9_functions/diverging_functions.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | let x = panic!("This call never returns"); [INFO] [stdout] | --------------------------------- any code following this expression is unreachable [INFO] [stdout] 4 | println!("You will never see this line"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/part8_flow_control/if_let.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / if let Foo::Bar = a { [INFO] [stdout] 58 | | // ^-- this causes a compile-time error. Use `if let` instead. [INFO] [stdout] 59 | | println!("a is foobar"); [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inferred_type` is assigned to, but never used [INFO] [stdout] --> src/part2_primitives.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut inferred_type = 12; // Type i64 is inferred from another line [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_inferred_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inferred_type` is never read [INFO] [stdout] --> src/part2_primitives.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | inferred_type = 4294967296i64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mutable` is never read [INFO] [stdout] --> src/part2_primitives.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut mutable = 12; // Mutable `i32` [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pair` [INFO] [stdout] --> src/part3_custom_types.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let pair = Pair(1, 0.1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/type_aliases.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let x = Operations::Add; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `emoticon` [INFO] [stdout] --> src/part8_flow_control/if_let.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let emoticon: Option = None; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emoticon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/part8_flow_control/if_let.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | if let Foo::Qux(value @ 100) = c { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y2` [INFO] [stdout] --> src/part9_functions/functions.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | let Point { x: x2, y: y2 } = self.p2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/part9_functions/diverging_functions.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = panic!("This call never returns"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/part9_functions/diverging_functions.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | let x = panic!("This call never returns"); [INFO] [stdout] | --------------------------------- any code following this expression is unreachable [INFO] [stdout] 4 | println!("You will never see this line"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/part8_flow_control/if_let.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / if let Foo::Bar = a { [INFO] [stdout] 58 | | // ^-- this causes a compile-time error. Use `if let` instead. [INFO] [stdout] 59 | | println!("a is foobar"); [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inferred_type` is assigned to, but never used [INFO] [stdout] --> src/part2_primitives.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut inferred_type = 12; // Type i64 is inferred from another line [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_inferred_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inferred_type` is never read [INFO] [stdout] --> src/part2_primitives.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | inferred_type = 4294967296i64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mutable` is never read [INFO] [stdout] --> src/part2_primitives.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut mutable = 12; // Mutable `i32` [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pair` [INFO] [stdout] --> src/part3_custom_types.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let pair = Pair(1, 0.1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/type_aliases.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let x = Operations::Add; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `emoticon` [INFO] [stdout] --> src/part8_flow_control/if_let.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let emoticon: Option = None; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emoticon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/part8_flow_control/if_let.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | if let Foo::Qux(value @ 100) = c { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y2` [INFO] [stdout] --> src/part9_functions/functions.rs:41:31 [INFO] [stdout] | [INFO] [stdout] 41 | let Point { x: x2, y: y2 } = self.p2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/part9_functions/diverging_functions.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = panic!("This call never returns"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `LANGUAGE` [INFO] [stdout] --> src/constants.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | static LANGUAGE: &str = "Rust"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/constants.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_big` [INFO] [stdout] --> src/constants.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_big(n: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/constants.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part1_hello_world.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `formatted_print` [INFO] [stdout] --> src/part1_hello_world.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn formatted_print() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part2_primitives.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reverse` [INFO] [stdout] --> src/part2_primitives.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn reverse(pair: (i32, bool)) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuples` [INFO] [stdout] --> src/part2_primitives.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn tuples() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `analyze_slice` [INFO] [stdout] --> src/part2_primitives.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn analyze_slice(slice: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `arrays_and_slices` [INFO] [stdout] --> src/part2_primitives.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn arrays_and_slices() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part3_custom_types.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/part3_custom_types.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/part3_custom_types.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Unit` [INFO] [stdout] --> src/part3_custom_types.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/part3_custom_types.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `structs` [INFO] [stdout] --> src/part3_custom_types.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn structs() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `WebEvent` [INFO] [stdout] --> src/part3_custom_types.rs:61:6 [INFO] [stdout] | [INFO] [stdout] 61 | enum WebEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inspect` [INFO] [stdout] --> src/part3_custom_types.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn inspect(event: WebEvent) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enums` [INFO] [stdout] --> src/part3_custom_types.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn enums() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Status` [INFO] [stdout] --> src/part3_custom_types.rs:99:6 [INFO] [stdout] | [INFO] [stdout] 99 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Work` [INFO] [stdout] --> src/part3_custom_types.rs:104:6 [INFO] [stdout] | [INFO] [stdout] 104 | enum Work { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enums_use` [INFO] [stdout] --> src/part3_custom_types.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn enums_use() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Number` [INFO] [stdout] --> src/part3_custom_types.rs:134:6 [INFO] [stdout] | [INFO] [stdout] 134 | enum Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/part3_custom_types.rs:141:6 [INFO] [stdout] | [INFO] [stdout] 141 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `c_like_enums` [INFO] [stdout] --> src/part3_custom_types.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn c_like_enums() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part4_variable_bindings.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scope_and_shadowing` [INFO] [stdout] --> src/part4_variable_bindings.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn scope_and_shadowing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shadowing` [INFO] [stdout] --> src/part4_variable_bindings.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn shadowing() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `declare_first` [INFO] [stdout] --> src/part4_variable_bindings.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn declare_first() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `freezing` [INFO] [stdout] --> src/part4_variable_bindings.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn freezing() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part5_types.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `casting` [INFO] [stdout] --> src/part5_types.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn casting() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `type_inference` [INFO] [stdout] --> src/part5_types.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn type_inference() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LongAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassEnum` [INFO] [stdout] --> src/type_aliases.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum LongAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassEnum { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/type_aliases.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Operations` [INFO] [stdout] --> src/type_aliases.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | type Operations = LongAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassEnum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/type_aliases.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/for_loops.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part6_conversion.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_and_into` [INFO] [stdout] --> src/part6_conversion.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn from_and_into() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `try_from_and_try_into` [INFO] [stdout] --> src/part6_conversion.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn try_from_and_try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `to_and_from_strings` [INFO] [stdout] --> src/part6_conversion.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn to_and_from_strings() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part7_expressions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part8_flow_control/flow_control.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nesting_and_labels` [INFO] [stdout] --> src/part8_flow_control/flow_control.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn nesting_and_labels() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `returning_from_loops` [INFO] [stdout] --> src/part8_flow_control/flow_control.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn returning_from_loops() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part8_flow_control/if_let.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge` [INFO] [stdout] --> src/part8_flow_control/if_let.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn challenge() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_example` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn match_example() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `destructuring` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn destructuring() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enums` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn enums() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pointers_refs` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn pointers_refs() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `structs` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn structs() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `guards` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn guards() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `binding` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn binding() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part8_flow_control/while_let.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part9_functions/closures.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closures` [INFO] [stdout] --> src/part9_functions/closures.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn closures() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `capturing` [INFO] [stdout] --> src/part9_functions/closures.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn capturing() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `input_parameters` [INFO] [stdout] --> src/part9_functions/closures.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn input_parameters() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part9_functions/functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/part9_functions/functions.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `origin` [INFO] [stdout] --> src/part9_functions/functions.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn origin() -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/part9_functions/functions.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn new(x: f64, y: f64) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/part9_functions/functions.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/part9_functions/functions.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `perimeter` [INFO] [stdout] --> src/part9_functions/functions.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn perimeter(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate` [INFO] [stdout] --> src/part9_functions/functions.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn translate(&mut self, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/part9_functions/functions.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Pair(Box, Box); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `methods` [INFO] [stdout] --> src/part9_functions/functions.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn methods() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_odd` [INFO] [stdout] --> src/part9_functions/higher_order_functions.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn is_odd(n: u32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part9_functions/higher_order_functions.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused attribute [INFO] [stdout] --> src/part9_functions/diverging_functions.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(never_type)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/part9_functions/diverging_functions.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(never_type)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/part7_expressions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | 2 * x; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 90 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `LANGUAGE` [INFO] [stdout] --> src/constants.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | static LANGUAGE: &str = "Rust"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/constants.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_big` [INFO] [stdout] --> src/constants.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_big(n: i32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/constants.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part1_hello_world.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `formatted_print` [INFO] [stdout] --> src/part1_hello_world.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn formatted_print() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part2_primitives.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `reverse` [INFO] [stdout] --> src/part2_primitives.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn reverse(pair: (i32, bool)) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuples` [INFO] [stdout] --> src/part2_primitives.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn tuples() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `analyze_slice` [INFO] [stdout] --> src/part2_primitives.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn analyze_slice(slice: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `arrays_and_slices` [INFO] [stdout] --> src/part2_primitives.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn arrays_and_slices() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part3_custom_types.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/part3_custom_types.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/part3_custom_types.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Unit` [INFO] [stdout] --> src/part3_custom_types.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/part3_custom_types.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Pair(i32, f32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `structs` [INFO] [stdout] --> src/part3_custom_types.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn structs() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `WebEvent` [INFO] [stdout] --> src/part3_custom_types.rs:61:6 [INFO] [stdout] | [INFO] [stdout] 61 | enum WebEvent { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inspect` [INFO] [stdout] --> src/part3_custom_types.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn inspect(event: WebEvent) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enums` [INFO] [stdout] --> src/part3_custom_types.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn enums() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Status` [INFO] [stdout] --> src/part3_custom_types.rs:99:6 [INFO] [stdout] | [INFO] [stdout] 99 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Work` [INFO] [stdout] --> src/part3_custom_types.rs:104:6 [INFO] [stdout] | [INFO] [stdout] 104 | enum Work { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enums_use` [INFO] [stdout] --> src/part3_custom_types.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn enums_use() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Number` [INFO] [stdout] --> src/part3_custom_types.rs:134:6 [INFO] [stdout] | [INFO] [stdout] 134 | enum Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Color` [INFO] [stdout] --> src/part3_custom_types.rs:141:6 [INFO] [stdout] | [INFO] [stdout] 141 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `c_like_enums` [INFO] [stdout] --> src/part3_custom_types.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn c_like_enums() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part4_variable_bindings.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scope_and_shadowing` [INFO] [stdout] --> src/part4_variable_bindings.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn scope_and_shadowing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shadowing` [INFO] [stdout] --> src/part4_variable_bindings.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn shadowing() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `declare_first` [INFO] [stdout] --> src/part4_variable_bindings.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn declare_first() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `freezing` [INFO] [stdout] --> src/part4_variable_bindings.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn freezing() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part5_types.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `casting` [INFO] [stdout] --> src/part5_types.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn casting() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `type_inference` [INFO] [stdout] --> src/part5_types.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn type_inference() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LongAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassEnum` [INFO] [stdout] --> src/type_aliases.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum LongAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassEnum { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/type_aliases.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn run(&self, x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Operations` [INFO] [stdout] --> src/type_aliases.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | type Operations = LongAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassEnum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/type_aliases.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/for_loops.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part6_conversion.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_and_into` [INFO] [stdout] --> src/part6_conversion.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn from_and_into() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `try_from_and_try_into` [INFO] [stdout] --> src/part6_conversion.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn try_from_and_try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `to_and_from_strings` [INFO] [stdout] --> src/part6_conversion.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn to_and_from_strings() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part7_expressions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part8_flow_control/flow_control.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nesting_and_labels` [INFO] [stdout] --> src/part8_flow_control/flow_control.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn nesting_and_labels() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `returning_from_loops` [INFO] [stdout] --> src/part8_flow_control/flow_control.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn returning_from_loops() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part8_flow_control/if_let.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `challenge` [INFO] [stdout] --> src/part8_flow_control/if_let.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn challenge() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_example` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn match_example() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `destructuring` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn destructuring() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enums` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn enums() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pointers_refs` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn pointers_refs() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `structs` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn structs() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `guards` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn guards() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `binding` [INFO] [stdout] --> src/part8_flow_control/match_example.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn binding() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part8_flow_control/while_let.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part9_functions/closures.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closures` [INFO] [stdout] --> src/part9_functions/closures.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn closures() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `capturing` [INFO] [stdout] --> src/part9_functions/closures.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn capturing() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `input_parameters` [INFO] [stdout] --> src/part9_functions/closures.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn input_parameters() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part9_functions/functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/part9_functions/functions.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `origin` [INFO] [stdout] --> src/part9_functions/functions.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn origin() -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/part9_functions/functions.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn new(x: f64, y: f64) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/part9_functions/functions.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/part9_functions/functions.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `perimeter` [INFO] [stdout] --> src/part9_functions/functions.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn perimeter(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate` [INFO] [stdout] --> src/part9_functions/functions.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn translate(&mut self, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/part9_functions/functions.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Pair(Box, Box); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `methods` [INFO] [stdout] --> src/part9_functions/functions.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn methods() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_odd` [INFO] [stdout] --> src/part9_functions/higher_order_functions.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn is_odd(n: u32) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/part9_functions/higher_order_functions.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused attribute [INFO] [stdout] --> src/part9_functions/diverging_functions.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(never_type)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/part9_functions/diverging_functions.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(never_type)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused arithmetic operation that must be used [INFO] [stdout] --> src/part7_expressions.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | 2 * x; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 90 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `Command { std: "docker" "inspect" "f0b2dca9e8dfc43636789710bf102a793ab0ec842b84ad9b0085caf6611b8c95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0b2dca9e8dfc43636789710bf102a793ab0ec842b84ad9b0085caf6611b8c95", kill_on_drop: false }` [INFO] [stdout] f0b2dca9e8dfc43636789710bf102a793ab0ec842b84ad9b0085caf6611b8c95