[INFO] cloning repository https://github.com/Louis-XWB/rust_exercise [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Louis-XWB/rust_exercise" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLouis-XWB%2Frust_exercise", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLouis-XWB%2Frust_exercise'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 60c7c98309d4bdf6bf89f4320beff78bc9cf504f [INFO] checking Louis-XWB/rust_exercise against master#7c4ac0603e9ee5295bc802c90575391288a69a8a for pr-124728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLouis-XWB%2Frust_exercise" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Louis-XWB/rust_exercise on toolchain 7c4ac0603e9ee5295bc802c90575391288a69a8a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7c4ac0603e9ee5295bc802c90575391288a69a8a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Louis-XWB/rust_exercise [INFO] finished tweaking git repo https://github.com/Louis-XWB/rust_exercise [INFO] tweaked toml for git repo https://github.com/Louis-XWB/rust_exercise written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Louis-XWB/rust_exercise already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7c4ac0603e9ee5295bc802c90575391288a69a8a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking Louis-XWB/rust_exercise against try#98ebbae35138252af77610c20ea5a5e8bf68d639 for pr-124728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLouis-XWB%2Frust_exercise" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Louis-XWB/rust_exercise on toolchain 98ebbae35138252af77610c20ea5a5e8bf68d639 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Louis-XWB/rust_exercise [INFO] finished tweaking git repo https://github.com/Louis-XWB/rust_exercise [INFO] tweaked toml for git repo https://github.com/Louis-XWB/rust_exercise written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Louis-XWB/rust_exercise already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking Louis-XWB/rust_exercise against try#98ebbae35138252af77610c20ea5a5e8bf68d639 for pr-124728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLouis-XWB%2Frust_exercise" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Louis-XWB/rust_exercise on toolchain 98ebbae35138252af77610c20ea5a5e8bf68d639 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Louis-XWB/rust_exercise [INFO] finished tweaking git repo https://github.com/Louis-XWB/rust_exercise [INFO] tweaked toml for git repo https://github.com/Louis-XWB/rust_exercise written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Louis-XWB/rust_exercise already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1d85a6669a3f9384080d70e0672aa8b6a810a3db9453c987824332f16121e67 [INFO] running `Command { std: "docker" "start" "-a" "a1d85a6669a3f9384080d70e0672aa8b6a810a3db9453c987824332f16121e67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1d85a6669a3f9384080d70e0672aa8b6a810a3db9453c987824332f16121e67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1d85a6669a3f9384080d70e0672aa8b6a810a3db9453c987824332f16121e67", kill_on_drop: false }` [INFO] [stdout] a1d85a6669a3f9384080d70e0672aa8b6a810a3db9453c987824332f16121e67 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+98ebbae35138252af77610c20ea5a5e8bf68d639" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81dd42d2d8e4ad25c9d8c22857caf6dd97971998d3d20cc7c98607771dbb0a10 [INFO] running `Command { std: "docker" "start" "-a" "81dd42d2d8e4ad25c9d8c22857caf6dd97971998d3d20cc7c98607771dbb0a10", kill_on_drop: false }` [INFO] [stderr] Checking rust_exercise v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::front_of_house::hosting` [INFO] [stdout] --> src/lib.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::front_of_house::hosting; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::front_of_house::hosting` [INFO] [stdout] --> src/lib.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use crate::front_of_house::hosting; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> src/lib.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/front_of_house.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/front_of_house.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/front_of_house.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Breakfast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 16 | pub toast: String, [INFO] [stdout] 17 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/lib.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn eat_at_restaurant() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> src/lib.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> src/lib.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/front_of_house.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/front_of_house.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/front_of_house.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> src/lib.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Breakfast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 16 | pub toast: String, [INFO] [stdout] 17 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/lib.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn eat_at_restaurant() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/syntax/function.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | if (age < 18) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if (age < 18) { [INFO] [stdout] 65 + if age < 18 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/syntax/function.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | if (age < 18) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if (age < 18) { [INFO] [stdout] 65 + if age < 18 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/syntax/scalar.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut y = 5; //mutable variable binding [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: i8 = 5; //signed 8-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let x: u8 = 5; //unsigned 8-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let x: i16 = 5; //signed 16-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let x: u16 = 5; //unsigned 16-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let x: i32 = 5; //signed 32-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let x: u32 = 5; //unsigned 32-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let x: i64 = 5; //signed 64-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let x: u64 = 5; //unsigned 64-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let x: isize = 5; //signed pointer-sized integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let x: usize = 5; //unsigned pointer-sized integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let x: f32 = 5.0; //32-bit floating-point number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let x: f64 = 5.0; //64-bit floating-point number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/syntax/scalar.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let sum = 5 + 10; //addition [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difference` [INFO] [stdout] --> src/syntax/scalar.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let difference = 95.5 - 4.3; //subtraction [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/syntax/scalar.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let product = 4 * 30; //multiplication [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quotient` [INFO] [stdout] --> src/syntax/scalar.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let quotient = 56.7 / 32.2; //division [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quotient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/syntax/scalar.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let remainder = 43 % 5; //remainder [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/syntax/scalar.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let t = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/syntax/scalar.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let f: bool = false; //with explicit type annotation [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/syntax/scalar.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let c = 'z'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/syntax/scalar.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let z = 'ℤ'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex` [INFO] [stdout] --> src/syntax/scalar.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let hex = 0xff; // Hexadecimal format [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `octal` [INFO] [stdout] --> src/syntax/scalar.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let octal = 0o77; // Octal format [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary` [INFO] [stdout] --> src/syntax/scalar.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let binary = 0b1111_0000; // Binary format [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte` [INFO] [stdout] --> src/syntax/scalar.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let byte = b'A'; // Byte format (u8 only) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/syntax/scalar.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut y = 5; //mutable variable binding [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: i8 = 5; //signed 8-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let x: u8 = 5; //unsigned 8-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let x: i16 = 5; //signed 16-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let x: u16 = 5; //unsigned 16-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let x: i32 = 5; //signed 32-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let x: u32 = 5; //unsigned 32-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let x: i64 = 5; //signed 64-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let x: u64 = 5; //unsigned 64-bit integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let x: isize = 5; //signed pointer-sized integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let x: usize = 5; //unsigned pointer-sized integer [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let x: f32 = 5.0; //32-bit floating-point number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/syntax/scalar.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let x: f64 = 5.0; //64-bit floating-point number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/syntax/scalar.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let sum = 5 + 10; //addition [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difference` [INFO] [stdout] --> src/syntax/scalar.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let difference = 95.5 - 4.3; //subtraction [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/syntax/scalar.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let product = 4 * 30; //multiplication [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quotient` [INFO] [stdout] --> src/syntax/scalar.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let quotient = 56.7 / 32.2; //division [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quotient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/syntax/scalar.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let remainder = 43 % 5; //remainder [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/syntax/scalar.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let t = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/syntax/scalar.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let f: bool = false; //with explicit type annotation [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/syntax/scalar.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let c = 'z'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/syntax/scalar.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let z = 'ℤ'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex` [INFO] [stdout] --> src/syntax/scalar.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let hex = 0xff; // Hexadecimal format [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `octal` [INFO] [stdout] --> src/syntax/scalar.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let octal = 0o77; // Octal format [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary` [INFO] [stdout] --> src/syntax/scalar.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let binary = 0b1111_0000; // Binary format [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte` [INFO] [stdout] --> src/syntax/scalar.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let byte = b'A'; // Byte format (u8 only) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/syntax/string.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut s = String::new(); [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/syntax/string.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let s = data.to_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/syntax/string.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let s = "initial contents".to_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/syntax/string.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let s = String::from("initial contents"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syntax/string.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v4` [INFO] [stdout] --> src/syntax/vector.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | let v4 = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/syntax/vector.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v8` [INFO] [stdout] --> src/syntax/vector.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | let v8 = vec![1, 2, 3, 4]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/syntax/string.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut s = String::new(); [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/syntax/string.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let s = data.to_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/syntax/string.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let s = "initial contents".to_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/syntax/string.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let s = String::from("initial contents"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syntax/vector.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | let mut v5 = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syntax/string.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v4` [INFO] [stdout] --> src/syntax/vector.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | let v4 = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adjustment` [INFO] [stdout] --> src/syntax/array.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let adjustment = if temperature<15 {10}else{20}; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adjustment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/syntax/vector.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v8` [INFO] [stdout] --> src/syntax/vector.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | let v8 = vec![1, 2, 3, 4]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref_x` [INFO] [stdout] --> src/syntax/references_borrowing.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let ref_x: &i32; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ref_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xx` [INFO] [stdout] --> src/syntax/references_borrowing.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let xx: i32 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `active` [INFO] [stdout] --> src/syntax/structs.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let active = user1.active; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/syntax/structs.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let username = user1.username; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `email` [INFO] [stdout] --> src/syntax/structs.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let email = user1.email; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_email` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sign_in_count` [INFO] [stdout] --> src/syntax/structs.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let sign_in_count = user1.sign_in_count; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sign_in_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user3` [INFO] [stdout] --> src/syntax/structs.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let user3 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/syntax/vector.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | let mut v5 = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `adjustment` [INFO] [stdout] --> src/syntax/array.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let adjustment = if temperature<15 {10}else{20}; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_adjustment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/syntax/enums.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let home = IpAddr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/syntax/enums.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home2` [INFO] [stdout] --> src/syntax/enums.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let home2 = IpAddr2::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_home2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback2` [INFO] [stdout] --> src/syntax/enums.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let loopback2 = IpAddr2::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home3` [INFO] [stdout] --> src/syntax/enums.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let home3 = IpAddr3::V4(127, 0, 0, 1); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_home3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback3` [INFO] [stdout] --> src/syntax/enums.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let loopback3 = IpAddr3::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ref_x` [INFO] [stdout] --> src/syntax/references_borrowing.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let ref_x: &i32; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ref_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xx` [INFO] [stdout] --> src/syntax/references_borrowing.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let xx: i32 = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/syntax/function.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `active` [INFO] [stdout] --> src/syntax/structs.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let active = user1.active; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/syntax/structs.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let username = user1.username; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `email` [INFO] [stdout] --> src/syntax/structs.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let email = user1.email; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_email` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sign_in_count` [INFO] [stdout] --> src/syntax/structs.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let sign_in_count = user1.sign_in_count; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sign_in_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user3` [INFO] [stdout] --> src/syntax/structs.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let user3 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/syntax/function.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 1..=n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/syntax/enums.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let home = IpAddr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/syntax/enums.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home2` [INFO] [stdout] --> src/syntax/enums.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let home2 = IpAddr2::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_home2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback2` [INFO] [stdout] --> src/syntax/enums.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let loopback2 = IpAddr2::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home3` [INFO] [stdout] --> src/syntax/enums.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let home3 = IpAddr3::V4(127, 0, 0, 1); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_home3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback3` [INFO] [stdout] --> src/syntax/enums.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let loopback3 = IpAddr3::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/vector.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 48 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/vector.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 49 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/vector.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 50 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> src/syntax/enums.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/enums.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 36 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/enums.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 37 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/syntax/enums.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 44 | V4((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/enums.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 45 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ipv4Addr` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | struct Ipv4Addr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ipv6Addr` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | struct Ipv6Addr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddr4` is never used [INFO] [stdout] --> src/syntax/enums.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | enum IpAddr4 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/syntax/enums.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/enums.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 68 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit` and `ChangeColor` are never constructed [INFO] [stdout] --> src/syntax/enums.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 66 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QuitMessage` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | struct QuitMessage; // unit struct [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/syntax/function.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MoveMessage` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | struct MoveMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteMessage` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | struct WriteMessage(String); // tuple struct [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangeColorMessage` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | struct ChangeColorMessage(i32, i32, i32); // tuple struct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> src/syntax/enums.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 108 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 109 | Penny, [INFO] [stdout] 110 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 111 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 112 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/syntax/function.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 1..=n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 131 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 132 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/syntax/enums.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | enum Coin2 { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 137 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 138 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 139 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_divisible_by` is never used [INFO] [stdout] --> src/syntax/function.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `customWidth` should have a snake case name [INFO] [stdout] --> src/syntax/structs.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let customWidth = 10; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `custom_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isRightWidth` should have a snake case name [INFO] [stdout] --> src/syntax/structs.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let isRightWidth = Rectangle::isRightWidth(10); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_right_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isRightWidth` should have a snake case name [INFO] [stdout] --> src/syntax/structs.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | fn isRightWidth(width: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_right_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ipV4` should have a snake case name [INFO] [stdout] --> src/syntax/enums.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let ipV4 = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `ip_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ipV6` should have a snake case name [INFO] [stdout] --> src/syntax/enums.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let ipV6 = IpAddrKind::V6; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `ip_v6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/vector.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 48 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/vector.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 49 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/vector.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 50 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> src/syntax/enums.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/enums.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 36 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/enums.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 37 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/syntax/enums.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 44 | V4((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/enums.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 45 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ipv4Addr` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | struct Ipv4Addr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ipv6Addr` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | struct Ipv6Addr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddr4` is never used [INFO] [stdout] --> src/syntax/enums.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | enum IpAddr4 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/syntax/enums.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/syntax/enums.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 68 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit` and `ChangeColor` are never constructed [INFO] [stdout] --> src/syntax/enums.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 66 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QuitMessage` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | struct QuitMessage; // unit struct [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MoveMessage` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | struct MoveMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteMessage` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | struct WriteMessage(String); // tuple struct [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangeColorMessage` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | struct ChangeColorMessage(i32, i32, i32); // tuple struct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> src/syntax/enums.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 108 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 109 | Penny, [INFO] [stdout] 110 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 111 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 112 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/syntax/enums.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 131 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 132 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/syntax/enums.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 136 | enum Coin2 { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 137 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 138 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 139 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_divisible_by` is never used [INFO] [stdout] --> src/syntax/function.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `customWidth` should have a snake case name [INFO] [stdout] --> src/syntax/structs.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let customWidth = 10; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `custom_width` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isRightWidth` should have a snake case name [INFO] [stdout] --> src/syntax/structs.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let isRightWidth = Rectangle::isRightWidth(10); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_right_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isRightWidth` should have a snake case name [INFO] [stdout] --> src/syntax/structs.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | fn isRightWidth(width: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_right_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ipV4` should have a snake case name [INFO] [stdout] --> src/syntax/enums.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let ipV4 = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `ip_v4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ipV6` should have a snake case name [INFO] [stdout] --> src/syntax/enums.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let ipV6 = IpAddrKind::V6; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `ip_v6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "81dd42d2d8e4ad25c9d8c22857caf6dd97971998d3d20cc7c98607771dbb0a10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81dd42d2d8e4ad25c9d8c22857caf6dd97971998d3d20cc7c98607771dbb0a10", kill_on_drop: false }` [INFO] [stdout] 81dd42d2d8e4ad25c9d8c22857caf6dd97971998d3d20cc7c98607771dbb0a10