[INFO] cloning repository https://github.com/marvinang/learn_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marvinang/learn_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarvinang%2Flearn_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarvinang%2Flearn_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d48e5edda3bca06d7f85ba8cc1ee09acdaded2c6 [INFO] checking marvinang/learn_rust against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarvinang%2Flearn_rust" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/marvinang/learn_rust on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/marvinang/learn_rust [INFO] finished tweaking git repo https://github.com/marvinang/learn_rust [INFO] tweaked toml for git repo https://github.com/marvinang/learn_rust written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/marvinang/learn_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ddc15b8718eb7f31e44f327cf3dff76720b8920cd4d4ca31cebdc17361efabf6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ddc15b8718eb7f31e44f327cf3dff76720b8920cd4d4ca31cebdc17361efabf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ddc15b8718eb7f31e44f327cf3dff76720b8920cd4d4ca31cebdc17361efabf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddc15b8718eb7f31e44f327cf3dff76720b8920cd4d4ca31cebdc17361efabf6", kill_on_drop: false }` [INFO] [stdout] ddc15b8718eb7f31e44f327cf3dff76720b8920cd4d4ca31cebdc17361efabf6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70b7803189ef4057c8e50ec5719b3ed1d2f171613bfb47fbe59310aa4a77c0c6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "70b7803189ef4057c8e50ec5719b3ed1d2f171613bfb47fbe59310aa4a77c0c6", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking a11_tests v0.1.0 (/opt/rustwide/workdir/a11_tests) [INFO] [stderr] Checking a12_command_line v0.1.0 (/opt/rustwide/workdir/a12_command_line) [INFO] [stderr] Checking a20_webserver v0.1.0 (/opt/rustwide/workdir/a20_webserver) [INFO] [stderr] Checking a8_common_collections v0.1.0 (/opt/rustwide/workdir/a8_common_collections) [INFO] [stderr] Checking a15_pointers v0.1.0 (/opt/rustwide/workdir/a15_pointers) [INFO] [stderr] Checking a16_concurrency v0.1.0 (/opt/rustwide/workdir/a16_concurrency) [INFO] [stderr] Checking a5_structs v0.1.0 (/opt/rustwide/workdir/a5_structs) [INFO] [stderr] Checking a3_common_concepts v0.1.0 (/opt/rustwide/workdir/a3_common_concepts) [INFO] [stderr] Checking a9_error v0.1.0 (/opt/rustwide/workdir/a9_error) [INFO] [stderr] Checking a10_generic_traits_lifetime v0.1.0 (/opt/rustwide/workdir/a10_generic_traits_lifetime) [INFO] [stderr] Checking a19_advaced_features v0.1.0 (/opt/rustwide/workdir/a19_advaced_features) [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let a = [2, 4, 5, 3, 8]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | y: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point1` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Point1 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Option` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | enum Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Result` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:54:6 [INFO] [stdout] | [INFO] [stdout] 54 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distance_from_orgin` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn distance_from_orgin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Data` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | struct Data { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mixup` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn mixup(self, other: Data) -> Data { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `output` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn output(object: impl Descriptive) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `a` is never read [INFO] [stdout] --> a3_common_concepts/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let mut a = 123; [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: unused variable: `b` [INFO] [stdout] --> a3_common_concepts/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let b = 123; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> a3_common_concepts/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let b = "456"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a3_common_concepts/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let y = 2.0; // f64 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a3_common_concepts/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let x: f32 = 10.1; //f32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> a3_common_concepts/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | 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] --> a3_common_concepts/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let f: bool = false; [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] --> a3_common_concepts/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | 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] --> a3_common_concepts/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let z = 'Z'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heart_eyed_cat` [INFO] [stdout] --> a3_common_concepts/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let heart_eyed_cat = '😻'; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tup` [INFO] [stdout] --> a3_common_concepts/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let tup = (100, 2.5, -80); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a3_common_concepts/main.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> a3_common_concepts/main.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> a3_common_concepts/main.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let t1 = tup.0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t3` [INFO] [stdout] --> a3_common_concepts/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let t3 = tup.2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> a3_common_concepts/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let arr = [1, 2, 3, 4, 5, 6]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> a3_common_concepts/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let months = [ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> a3_common_concepts/main.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let array: [i32; 5] = [1, 2, 3, 4, 10]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a3_common_concepts/main.rs:218:7 [INFO] [stdout] | [INFO] [stdout] 218 | let a = 10; // end line commets [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lucky_number` [INFO] [stdout] --> a3_common_concepts/main.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | let lucky_number = 1; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lucky_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> a9_error/src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | panic!("error occured"); [INFO] [stdout] | ------------------------ any code following this expression is unreachable [INFO] [stdout] 43 | println!("Hello, Rust"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> a3_common_concepts/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut a = 50; [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: constant is never used: `MAX_POINT` [INFO] [stdout] --> a3_common_concepts/main.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | const MAX_POINT: u32 = 1000_1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> a9_error/src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Like` [INFO] [stdout] --> a5_structs/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | struct Like { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `channel_ownership` [INFO] [stdout] --> a16_concurrency/src/main.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn channel_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> a9_error/src/main.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | if let Ok(file) = f { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f1` [INFO] [stdout] --> a9_error/src/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let f1 = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_f1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f2` [INFO] [stdout] --> a9_error/src/main.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let f2 = File::open("hello.txt").expect("Failed to open."); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_f2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> a9_error/src/main.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | let f = File::open("hello.txt")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `panic_error` [INFO] [stdout] --> a9_error/src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn panic_error() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_file` [INFO] [stdout] --> a9_error/src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn deal_file() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_error_kind` [INFO] [stdout] --> a9_error/src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn match_error_kind() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_error_closure` [INFO] [stdout] --> a9_error/src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn match_error_closure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_file_2` [INFO] [stdout] --> a9_error/src/main.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn deal_file_2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_file_error` [INFO] [stdout] --> a9_error/src/main.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn deal_file_error() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deliver_error` [INFO] [stdout] --> a9_error/src/main.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn deliver_error(i: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `f` [INFO] [stdout] --> a9_error/src/main.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn f(i: i32) -> Result { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `g1` [INFO] [stdout] --> a9_error/src/main.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn g1(i: i32) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `g` [INFO] [stdout] --> a9_error/src/main.rs:163:4 [INFO] [stdout] | [INFO] [stdout] 163 | fn g(i: i32) -> Result { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file` [INFO] [stdout] --> a9_error/src/main.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file_short` [INFO] [stdout] --> a9_error/src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn read_username_from_file_short() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_text_from_file` [INFO] [stdout] --> a9_error/src/main.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn read_text_from_file(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_good` [INFO] [stdout] --> a9_error/src/main.rs:213:4 [INFO] [stdout] | [INFO] [stdout] 213 | fn deal_good() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test` [INFO] [stdout] --> a5_structs/main.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn test(self, s :&str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UnitStruct` [INFO] [stdout] --> a5_structs/main.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | struct UnitStruct; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_Rectangle` should have a snake case name [INFO] [stdout] --> a5_structs/main.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn create_Rectangle() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_rectangle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `List_Rc` should have an upper camel case name [INFO] [stdout] --> a15_pointers/src/main.rs:292:6 [INFO] [stdout] | [INFO] [stdout] 292 | enum List_Rc { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `ListRc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking a6_enums_match v0.1.0 (/opt/rustwide/workdir/a6_enums_match) [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> a8_common_collections/src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let str = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> a8_common_collections/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | 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] --> a8_common_collections/src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let s = "Initail 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: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let hello = String::from("السلام عليكم"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let hello = String::from("Dobrý den"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let hello = String::from("Hello"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let hello = String::from("שָׁלוֹם"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let hello = String::from("안녕하세요"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let hello = String::from("Здравствуйте"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let hello = String::from("Hola"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> a8_common_collections/src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let one = 1.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> a8_common_collections/src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let float = 1.3.to_string(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> a8_common_collections/src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let slice = "slice".to_string(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> a8_common_collections/src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let len = s.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> a8_common_collections/src/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let len = s.chars().count(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a8_common_collections/src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let a = s.chars().nth(2); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> a8_common_collections/src/main.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `does_not_exist` [INFO] [stdout] --> a8_common_collections/src/main.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | let does_not_exist = v.get(100); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_does_not_exist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> a8_common_collections/src/main.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine` [INFO] [stdout] --> a8_common_collections/src/main.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | let mut combine: HashMap<_, _> = teams.into_iter().zip(scores.into_iter()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Parser` [INFO] [stdout] --> a19_advaced_features/src/main.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | struct Parser<'c, 's: 'c> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> a8_common_collections/src/main.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut v = vec![1, 2, 3, 4, 5]; [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: struct is never constructed: `Ref` [INFO] [stdout] --> a19_advaced_features/src/main.rs:362:8 [INFO] [stdout] | [INFO] [stdout] 362 | struct Ref<'a, T: 'a>(&'a T); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> a8_common_collections/src/main.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking a17_oop v0.1.0 (/opt/rustwide/workdir/a17_oop) [INFO] [stdout] warning: struct is never constructed: `StaticRef` [INFO] [stdout] --> a19_advaced_features/src/main.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | struct StaticRef(&'static T); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `diameter` [INFO] [stdout] --> a19_advaced_features/src/main.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 373 | diameter: &'a i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> a19_advaced_features/src/main.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 400 | fn foo<'a>(string: &'a str) -> StrWrap<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo_new` [INFO] [stdout] --> a19_advaced_features/src/main.rs:404:4 [INFO] [stdout] | [INFO] [stdout] 404 | fn foo_new(string: &str) -> StrWrap<'_> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Thunk` [INFO] [stdout] --> a19_advaced_features/src/main.rs:687:1 [INFO] [stdout] | [INFO] [stdout] 687 | type Thunk = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bar` [INFO] [stdout] --> a19_advaced_features/src/main.rs:705:4 [INFO] [stdout] | [INFO] [stdout] 705 | fn bar() -> ! { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `no_return` [INFO] [stdout] --> a19_advaced_features/src/main.rs:710:4 [INFO] [stdout] | [INFO] [stdout] 710 | fn no_return(guess: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loop_value` [INFO] [stdout] --> a19_advaced_features/src/main.rs:741:4 [INFO] [stdout] | [INFO] [stdout] 741 | fn loop_value() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dst` [INFO] [stdout] --> a19_advaced_features/src/main.rs:760:4 [INFO] [stdout] | [INFO] [stdout] 760 | fn dst() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic` [INFO] [stdout] --> a19_advaced_features/src/main.rs:790:4 [INFO] [stdout] | [INFO] [stdout] 790 | fn generic(t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_1` [INFO] [stdout] --> a19_advaced_features/src/main.rs:796:4 [INFO] [stdout] | [INFO] [stdout] 796 | fn generic_1(t: &T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> a19_advaced_features/src/main.rs:857:5 [INFO] [stdout] | [INFO] [stdout] 857 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `return_closure` [INFO] [stdout] --> a19_advaced_features/src/main.rs:880:4 [INFO] [stdout] | [INFO] [stdout] 880 | fn return_closure() -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `macro_rules` [INFO] [stdout] --> a19_advaced_features/src/main.rs:921:4 [INFO] [stdout] | [INFO] [stdout] 921 | fn macro_rules() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_Ball` should have a snake case name [INFO] [stdout] --> a19_advaced_features/src/main.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn new_Ball() { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_ball` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> a8_common_collections/src/main.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | let mut combine: HashMap<_, _> = teams.into_iter().zip(scores.into_iter()).collect(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> a15_pointers/src/main.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> a15_pointers/src/main.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 245 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> a15_pointers/src/main.rs:307:9 [INFO] [stdout] | [INFO] [stdout] 307 | let b = List_Rc::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> a15_pointers/src/main.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let c = List_Rc::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> a15_pointers/src/main.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | let b = List_Rc::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> a15_pointers/src/main.rs:321:13 [INFO] [stdout] | [INFO] [stdout] 321 | let c = List_Rc::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a15_pointers/src/main.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `branch` [INFO] [stdout] --> a15_pointers/src/main.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | let branch = Rc::new(Node { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `channel_ownership` [INFO] [stdout] --> a16_concurrency/src/main.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn channel_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `immutable` [INFO] [stdout] --> a15_pointers/src/main.rs:368:4 [INFO] [stdout] | [INFO] [stdout] 368 | fn immutable() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tree` [INFO] [stdout] --> a15_pointers/src/main.rs:639:12 [INFO] [stdout] | [INFO] [stdout] 639 | pub fn tree() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking a4_ownership v0.1.0 (/opt/rustwide/workdir/a4_ownership) [INFO] [stderr] Checking a13_functional v0.1.0 (/opt/rustwide/workdir/a13_functional) [INFO] [stderr] Checking a21_appendix v0.1.0 (/opt/rustwide/workdir/a21_appendix) [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking a14_cargo_crates v0.1.0 (/opt/rustwide/workdir/a14_cargo_crates) [INFO] [stderr] Checking a1_started v0.1.0 (/opt/rustwide/workdir/a1_started) [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> a9_error/src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | panic!("error occured"); [INFO] [stdout] | ------------------------ any code following this expression is unreachable [INFO] [stdout] 43 | println!("Hello, Rust"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> a9_error/src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> a9_error/src/main.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | if let Ok(file) = f { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f1` [INFO] [stdout] --> a9_error/src/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let f1 = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_f1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f2` [INFO] [stdout] --> a9_error/src/main.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let f2 = File::open("hello.txt").expect("Failed to open."); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_f2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> a9_error/src/main.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | let f = File::open("hello.txt")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `panic_error` [INFO] [stdout] --> a9_error/src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn panic_error() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_file` [INFO] [stdout] --> a9_error/src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn deal_file() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_error_kind` [INFO] [stdout] --> a9_error/src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn match_error_kind() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_error_closure` [INFO] [stdout] --> a9_error/src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn match_error_closure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_file_2` [INFO] [stdout] --> a9_error/src/main.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn deal_file_2() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_file_error` [INFO] [stdout] --> a9_error/src/main.rs:125:4 [INFO] [stdout] | [INFO] [stdout] 125 | fn deal_file_error() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deliver_error` [INFO] [stdout] --> a9_error/src/main.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn deliver_error(i: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `f` [INFO] [stdout] --> a9_error/src/main.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn f(i: i32) -> Result { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `g1` [INFO] [stdout] --> a9_error/src/main.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn g1(i: i32) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `g` [INFO] [stdout] --> a9_error/src/main.rs:163:4 [INFO] [stdout] | [INFO] [stdout] 163 | fn g(i: i32) -> Result { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file` [INFO] [stdout] --> a9_error/src/main.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file_short` [INFO] [stdout] --> a9_error/src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn read_username_from_file_short() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_text_from_file` [INFO] [stdout] --> a9_error/src/main.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn read_text_from_file(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_good` [INFO] [stdout] --> a9_error/src/main.rs:213:4 [INFO] [stdout] | [INFO] [stdout] 213 | fn deal_good() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let a = [2, 4, 5, 3, 8]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | y: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point1` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Point1 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Option` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | enum Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Result` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:54:6 [INFO] [stdout] | [INFO] [stdout] 54 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distance_from_orgin` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn distance_from_orgin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Data` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | struct Data { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mixup` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn mixup(self, other: Data) -> Data { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `output` [INFO] [stdout] --> a10_generic_traits_lifetime/src/main.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn output(object: impl Descriptive) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> a17_oop/src/blog.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `List_Rc` should have an upper camel case name [INFO] [stdout] --> a15_pointers/src/main.rs:292:6 [INFO] [stdout] | [INFO] [stdout] 292 | enum List_Rc { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `ListRc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Screen` [INFO] [stdout] --> a17_oop/src/main.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> a17_oop/src/main.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Screen` [INFO] [stdout] --> a17_oop/src/main.rs:220:16 [INFO] [stdout] | [INFO] [stdout] 220 | pub struct Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking a18_patterns_matching v0.1.0 (/opt/rustwide/workdir/a18_patterns_matching) [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> a6_enums_match/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let book = Book::Papery { index: 1001 }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ebook` [INFO] [stdout] --> a6_enums_match/main.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let ebook = Book::Electronic { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ebook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Like` [INFO] [stdout] --> a5_structs/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | struct Like { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `test` [INFO] [stdout] --> a5_structs/main.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | fn test(self, s :&str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UnitStruct` [INFO] [stdout] --> a5_structs/main.rs:200:8 [INFO] [stdout] | [INFO] [stdout] 200 | struct UnitStruct; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_Rectangle` should have a snake case name [INFO] [stdout] --> a5_structs/main.rs:190:4 [INFO] [stdout] | [INFO] [stdout] 190 | fn create_Rectangle() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_rectangle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> a14_cargo_crates/src/main.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> a14_cargo_crates/src/main.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Ipv4Addr` [INFO] [stdout] --> a6_enums_match/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | struct Ipv4Addr {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Ipv6Addr` [INFO] [stdout] --> a6_enums_match/main.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | struct Ipv6Addr {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `IP` [INFO] [stdout] --> a6_enums_match/main.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | enum IP { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `other` [INFO] [stdout] --> a6_enums_match/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn other() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> a6_enums_match/main.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 81 | Papery { index: u32 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Electronic` [INFO] [stdout] --> a6_enums_match/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | Electronic { url: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> a6_enums_match/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> a6_enums_match/main.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | Move { x: i32, y: i32 }, // anonymous struct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> a6_enums_match/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> a6_enums_match/main.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> a6_enums_match/main.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dime` [INFO] [stdout] --> a6_enums_match/main.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> a6_enums_match/main.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `book` [INFO] [stdout] --> a6_enums_match/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let book = Book::Papery { index: 1001 }; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_book` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ebook` [INFO] [stdout] --> a6_enums_match/main.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let ebook = Book::Electronic { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ebook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> a15_pointers/src/main.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> a15_pointers/src/main.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 245 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> a15_pointers/src/main.rs:307:9 [INFO] [stdout] | [INFO] [stdout] 307 | let b = List_Rc::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> a15_pointers/src/main.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 308 | let c = List_Rc::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> a15_pointers/src/main.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | let b = List_Rc::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> a15_pointers/src/main.rs:321:13 [INFO] [stdout] | [INFO] [stdout] 321 | let c = List_Rc::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a15_pointers/src/main.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `branch` [INFO] [stdout] --> a15_pointers/src/main.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | let branch = Rc::new(Node { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> a8_common_collections/src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let str = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> a8_common_collections/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | 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] --> a8_common_collections/src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let s = "Initail 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: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let hello = String::from("السلام عليكم"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let hello = String::from("Dobrý den"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let hello = String::from("Hello"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let hello = String::from("שָׁלוֹם"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let hello = String::from("안녕하세요"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let hello = String::from("Здравствуйте"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> a8_common_collections/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let hello = String::from("Hola"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `one` [INFO] [stdout] --> a8_common_collections/src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let one = 1.to_string(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> a8_common_collections/src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let float = 1.3.to_string(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> a8_common_collections/src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let slice = "slice".to_string(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> a8_common_collections/src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let len = s.len(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> a8_common_collections/src/main.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let len = s.chars().count(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a8_common_collections/src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let a = s.chars().nth(2); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> a8_common_collections/src/main.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `does_not_exist` [INFO] [stdout] --> a8_common_collections/src/main.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | let does_not_exist = v.get(100); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_does_not_exist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> a8_common_collections/src/main.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `combine` [INFO] [stdout] --> a8_common_collections/src/main.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | let mut combine: HashMap<_, _> = teams.into_iter().zip(scores.into_iter()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_combine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Ipv4Addr` [INFO] [stdout] --> a6_enums_match/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | struct Ipv4Addr {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Ipv6Addr` [INFO] [stdout] --> a6_enums_match/main.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | struct Ipv6Addr {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `IP` [INFO] [stdout] --> a6_enums_match/main.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | enum IP { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `other` [INFO] [stdout] --> a6_enums_match/main.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn other() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `index` [INFO] [stdout] --> a6_enums_match/main.rs:81:18 [INFO] [stdout] | [INFO] [stdout] 81 | Papery { index: u32 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Electronic` [INFO] [stdout] --> a6_enums_match/main.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | Electronic { url: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> a6_enums_match/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> a6_enums_match/main.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | Move { x: i32, y: i32 }, // anonymous struct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> a6_enums_match/main.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> a6_enums_match/main.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> a6_enums_match/main.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dime` [INFO] [stdout] --> a6_enums_match/main.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> a6_enums_match/main.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> a4_ownership/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let s = "runoob"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a4_ownership/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let a = "hello"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a4_ownership/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> a4_ownership/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let s2 = s1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> a4_ownership/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let s2 = s1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> a4_ownership/main.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | let s1 = gives_ownership(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> a4_ownership/main.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let s3 = takes_and_gives_back(s2); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> a4_ownership/main.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> a4_ownership/main.rs:230:18 [INFO] [stdout] | [INFO] [stdout] 230 | fn cannot_change(s: &String) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> a4_ownership/main.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> a4_ownership/main.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | let s3 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> a4_ownership/main.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | let s1 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> a4_ownership/main.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | let s2 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `s2` is never read [INFO] [stdout] --> a4_ownership/main.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | let mut s2 = &s1; [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: function is never used: `immutable` [INFO] [stdout] --> a15_pointers/src/main.rs:368:4 [INFO] [stdout] | [INFO] [stdout] 368 | fn immutable() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tree` [INFO] [stdout] --> a15_pointers/src/main.rs:639:12 [INFO] [stdout] | [INFO] [stdout] 639 | pub fn tree() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scope` [INFO] [stdout] --> a4_ownership/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn scope() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cannot_change` [INFO] [stdout] --> a4_ownership/main.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn cannot_change(s: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> a8_common_collections/src/main.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut v = vec![1, 2, 3, 4, 5]; [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: variable does not need to be mutable [INFO] [stdout] --> a8_common_collections/src/main.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let mut v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> a8_common_collections/src/main.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | let mut combine: HashMap<_, _> = teams.into_iter().zip(scores.into_iter()).collect(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulated_expensive_calculation` [INFO] [stdout] --> a13_functional/src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn simulated_expensive_calculation(intensity: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Iterator_count_std` should have a snake case name [INFO] [stdout] --> a13_functional/src/main.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn Iterator_count_std() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `iterator_count_std` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> a4_ownership/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let s = "runoob"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a4_ownership/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let a = "hello"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a4_ownership/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> a4_ownership/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let s2 = s1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> a4_ownership/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let s2 = s1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> a4_ownership/main.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | let s1 = gives_ownership(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> a4_ownership/main.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let s3 = takes_and_gives_back(s2); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> a4_ownership/main.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> a4_ownership/main.rs:230:18 [INFO] [stdout] | [INFO] [stdout] 230 | fn cannot_change(s: &String) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> a4_ownership/main.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> a4_ownership/main.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | let s3 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> a4_ownership/main.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | let s1 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> a4_ownership/main.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | let s2 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `s2` is never read [INFO] [stdout] --> a4_ownership/main.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | let mut s2 = &s1; [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking learn_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `scope` [INFO] [stdout] --> a4_ownership/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn scope() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cannot_change` [INFO] [stdout] --> a4_ownership/main.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn cannot_change(s: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulated_expensive_calculation` [INFO] [stdout] --> a13_functional/src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn simulated_expensive_calculation(intensity: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Iterator_count_std` should have a snake case name [INFO] [stdout] --> a13_functional/src/main.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn Iterator_count_std() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `iterator_count_std` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `a` is never read [INFO] [stdout] --> a3_common_concepts/main.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let mut a = 123; [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: unused variable: `b` [INFO] [stdout] --> a3_common_concepts/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let b = 123; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> a3_common_concepts/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let b = "456"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a3_common_concepts/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let y = 2.0; // f64 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a3_common_concepts/main.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let x: f32 = 10.1; //f32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> a3_common_concepts/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | 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] --> a3_common_concepts/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let f: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> a14_cargo_crates/src/main.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> a3_common_concepts/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | 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: `c2` [INFO] [stdout] --> a14_cargo_crates/src/main.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> a3_common_concepts/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let z = 'Z'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heart_eyed_cat` [INFO] [stdout] --> a3_common_concepts/main.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | let heart_eyed_cat = '😻'; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tup` [INFO] [stdout] --> a3_common_concepts/main.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let tup = (100, 2.5, -80); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a3_common_concepts/main.rs:126:10 [INFO] [stdout] | [INFO] [stdout] 126 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> a3_common_concepts/main.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> a3_common_concepts/main.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let t1 = tup.0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t3` [INFO] [stdout] --> a3_common_concepts/main.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let t3 = tup.2; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr` [INFO] [stdout] --> a3_common_concepts/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let arr = [1, 2, 3, 4, 5, 6]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> a3_common_concepts/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let months = [ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> a3_common_concepts/main.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let array: [i32; 5] = [1, 2, 3, 4, 10]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a3_common_concepts/main.rs:218:7 [INFO] [stdout] | [INFO] [stdout] 218 | let a = 10; // end line commets [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lucky_number` [INFO] [stdout] --> a3_common_concepts/main.rs:223:7 [INFO] [stdout] | [INFO] [stdout] 223 | let lucky_number = 1; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lucky_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> a3_common_concepts/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut a = 50; [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: constant is never used: `MAX_POINT` [INFO] [stdout] --> a3_common_concepts/main.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | const MAX_POINT: u32 = 1000_1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let a = 6; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | fn foo(x: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:279:11 [INFO] [stdout] | [INFO] [stdout] 279 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:279:34 [INFO] [stdout] | [INFO] [stdout] 279 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:279:37 [INFO] [stdout] | [INFO] [stdout] 279 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn foo(x: i32) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_coordinates` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn print_coordinates(&(x, y): &(i32, i32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:232:5 [INFO] [stdout] | [INFO] [stdout] 232 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 233 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 234 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rgb` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:253:5 [INFO] [stdout] | [INFO] [stdout] 253 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 257 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:258:5 [INFO] [stdout] | [INFO] [stdout] 258 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 350 | y: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `z` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 351 | z: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_guard` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:379:4 [INFO] [stdout] | [INFO] [stdout] 379 | fn match_guard() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_guard_repair` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:392:4 [INFO] [stdout] | [INFO] [stdout] 392 | fn match_guard_repair() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> a11_tests/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> a11_tests/src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> a11_tests/src/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let a = 6; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | fn foo(x: i32) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:279:11 [INFO] [stdout] | [INFO] [stdout] 279 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:279:17 [INFO] [stdout] | [INFO] [stdout] 279 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:279:34 [INFO] [stdout] | [INFO] [stdout] 279 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:279:37 [INFO] [stdout] | [INFO] [stdout] 279 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> a17_oop/src/blog.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn foo(x: i32) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> a11_tests/src/main.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> a11_tests/src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_two` [INFO] [stdout] --> a11_tests/src/main.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn add_two(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `greeting` [INFO] [stdout] --> a11_tests/src/main.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> a11_tests/src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | value: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `prints_and_returns_10` [INFO] [stdout] --> a11_tests/src/main.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn prints_and_returns_10(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_two` [INFO] [stdout] --> a11_tests/src/main.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn add_two(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `internal_adder` [INFO] [stdout] --> a11_tests/src/main.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 226 | fn internal_adder(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_coordinates` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn print_coordinates(&(x, y): &(i32, i32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:232:5 [INFO] [stdout] | [INFO] [stdout] 232 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 233 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 234 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rgb` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:253:5 [INFO] [stdout] | [INFO] [stdout] 253 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 257 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:258:5 [INFO] [stdout] | [INFO] [stdout] 258 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 259 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 350 | y: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `z` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 351 | z: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_guard` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:379:4 [INFO] [stdout] | [INFO] [stdout] 379 | fn match_guard() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_guard_repair` [INFO] [stdout] --> a18_patterns_matching/src/main.rs:392:4 [INFO] [stdout] | [INFO] [stdout] 392 | fn match_guard_repair() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Screen` [INFO] [stdout] --> a17_oop/src/main.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> a17_oop/src/main.rs:175:16 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Screen` [INFO] [stdout] --> a17_oop/src/main.rs:220:16 [INFO] [stdout] | [INFO] [stdout] 220 | pub struct Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Parser` [INFO] [stdout] --> a19_advaced_features/src/main.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | struct Parser<'c, 's: 'c> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> a11_tests/src/main.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | value: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Ref` [INFO] [stdout] --> a19_advaced_features/src/main.rs:362:8 [INFO] [stdout] | [INFO] [stdout] 362 | struct Ref<'a, T: 'a>(&'a T); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `StaticRef` [INFO] [stdout] --> a19_advaced_features/src/main.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | struct StaticRef(&'static T); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `diameter` [INFO] [stdout] --> a19_advaced_features/src/main.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 373 | diameter: &'a i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo` [INFO] [stdout] --> a19_advaced_features/src/main.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 400 | fn foo<'a>(string: &'a str) -> StrWrap<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `foo_new` [INFO] [stdout] --> a19_advaced_features/src/main.rs:404:4 [INFO] [stdout] | [INFO] [stdout] 404 | fn foo_new(string: &str) -> StrWrap<'_> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Thunk` [INFO] [stdout] --> a19_advaced_features/src/main.rs:687:1 [INFO] [stdout] | [INFO] [stdout] 687 | type Thunk = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bar` [INFO] [stdout] --> a19_advaced_features/src/main.rs:705:4 [INFO] [stdout] | [INFO] [stdout] 705 | fn bar() -> ! { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `no_return` [INFO] [stdout] --> a19_advaced_features/src/main.rs:710:4 [INFO] [stdout] | [INFO] [stdout] 710 | fn no_return(guess: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loop_value` [INFO] [stdout] --> a19_advaced_features/src/main.rs:741:4 [INFO] [stdout] | [INFO] [stdout] 741 | fn loop_value() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dst` [INFO] [stdout] --> a19_advaced_features/src/main.rs:760:4 [INFO] [stdout] | [INFO] [stdout] 760 | fn dst() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic` [INFO] [stdout] --> a19_advaced_features/src/main.rs:790:4 [INFO] [stdout] | [INFO] [stdout] 790 | fn generic(t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generic_1` [INFO] [stdout] --> a19_advaced_features/src/main.rs:796:4 [INFO] [stdout] | [INFO] [stdout] 796 | fn generic_1(t: &T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> a19_advaced_features/src/main.rs:857:5 [INFO] [stdout] | [INFO] [stdout] 857 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `return_closure` [INFO] [stdout] --> a19_advaced_features/src/main.rs:880:4 [INFO] [stdout] | [INFO] [stdout] 880 | fn return_closure() -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `macro_rules` [INFO] [stdout] --> a19_advaced_features/src/main.rs:921:4 [INFO] [stdout] | [INFO] [stdout] 921 | fn macro_rules() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_Ball` should have a snake case name [INFO] [stdout] --> a19_advaced_features/src/main.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn new_Ball() { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_ball` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking a7_projects v0.1.0 (/opt/rustwide/workdir/a7_projects) [INFO] [stderr] Checking a2_guessing_game v0.1.0 (/opt/rustwide/workdir/a2_guessing_game) [INFO] [stdout] warning: function is never used: `seat_at_table` [INFO] [stdout] --> a7_projects/src/lib.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `take_order` [INFO] [stdout] --> a7_projects/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serve_order` [INFO] [stdout] --> a7_projects/src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `take_payment` [INFO] [stdout] --> a7_projects/src/lib.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serve_order` [INFO] [stdout] --> a7_projects/src/lib.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fix_incorrect_order` [INFO] [stdout] --> a7_projects/src/lib.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cook_order` [INFO] [stdout] --> a7_projects/src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `seasonal_fruit` [INFO] [stdout] --> a7_projects/src/lib.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | seasonal_fruit: String, // private field [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Person` [INFO] [stdout] --> a7_projects/src/lib.rs:77:14 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_mod` [INFO] [stdout] --> a7_projects/src/lib.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn enum_mod() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `SomeModule` should have a snake case name [INFO] [stdout] --> a7_projects/src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | mod SomeModule { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `some_module` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `seat_at_table` [INFO] [stdout] --> a7_projects/src/lib.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `take_order` [INFO] [stdout] --> a7_projects/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serve_order` [INFO] [stdout] --> a7_projects/src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `take_payment` [INFO] [stdout] --> a7_projects/src/lib.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serve_order` [INFO] [stdout] --> a7_projects/src/lib.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fix_incorrect_order` [INFO] [stdout] --> a7_projects/src/lib.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cook_order` [INFO] [stdout] --> a7_projects/src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `seasonal_fruit` [INFO] [stdout] --> a7_projects/src/lib.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | seasonal_fruit: String, // private field [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Person` [INFO] [stdout] --> a7_projects/src/lib.rs:77:14 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_mod` [INFO] [stdout] --> a7_projects/src/lib.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn enum_mod() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `SomeModule` should have a snake case name [INFO] [stdout] --> a7_projects/src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | mod SomeModule { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `some_module` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `legislate` [INFO] [stdout] --> a7_projects/src/main.rs:71:16 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn legislate() {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `judicial` [INFO] [stdout] --> a7_projects/src/main.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | fn judicial() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `seasonal_fruit` [INFO] [stdout] --> a7_projects/src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | seasonal_fruit: String, // private field [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quene` [INFO] [stdout] --> a7_projects/src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | Quene, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `SomeModule` should have a snake case name [INFO] [stdout] --> a7_projects/src/main.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | mod SomeModule { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `some_module` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `legislate` [INFO] [stdout] --> a7_projects/src/main.rs:71:16 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn legislate() {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `judicial` [INFO] [stdout] --> a7_projects/src/main.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | fn judicial() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `seasonal_fruit` [INFO] [stdout] --> a7_projects/src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | seasonal_fruit: String, // private field [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quene` [INFO] [stdout] --> a7_projects/src/main.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | Quene, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `SomeModule` should have a snake case name [INFO] [stdout] --> a7_projects/src/main.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | mod SomeModule { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `some_module` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.70s [INFO] running `Command { std: "docker" "inspect" "70b7803189ef4057c8e50ec5719b3ed1d2f171613bfb47fbe59310aa4a77c0c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70b7803189ef4057c8e50ec5719b3ed1d2f171613bfb47fbe59310aa4a77c0c6", kill_on_drop: false }` [INFO] [stdout] 70b7803189ef4057c8e50ec5719b3ed1d2f171613bfb47fbe59310aa4a77c0c6