[INFO] cloning repository https://github.com/SonyaGorban/rust_by_pract [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SonyaGorban/rust_by_pract" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSonyaGorban%2Frust_by_pract", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSonyaGorban%2Frust_by_pract'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c98720f161aef3a8f36c875523390ead102bdeab [INFO] checking SonyaGorban/rust_by_pract against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSonyaGorban%2Frust_by_pract" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SonyaGorban/rust_by_pract [INFO] finished tweaking git repo https://github.com/SonyaGorban/rust_by_pract [INFO] tweaked toml for git repo https://github.com/SonyaGorban/rust_by_pract written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SonyaGorban/rust_by_pract on toolchain b047d5f4496a7526d91d0dddea494c05853f2a7b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SonyaGorban/rust_by_pract already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b06358c4554806e949938fbc28cda09d3db57bf097f4f8d3d2d57a5526670464 [INFO] running `Command { std: "docker" "start" "-a" "b06358c4554806e949938fbc28cda09d3db57bf097f4f8d3d2d57a5526670464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b06358c4554806e949938fbc28cda09d3db57bf097f4f8d3d2d57a5526670464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b06358c4554806e949938fbc28cda09d3db57bf097f4f8d3d2d57a5526670464", kill_on_drop: false }` [INFO] [stdout] b06358c4554806e949938fbc28cda09d3db57bf097f4f8d3d2d57a5526670464 [INFO] checking SonyaGorban/rust_by_pract against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSonyaGorban%2Frust_by_pract" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SonyaGorban/rust_by_pract [INFO] finished tweaking git repo https://github.com/SonyaGorban/rust_by_pract [INFO] tweaked toml for git repo https://github.com/SonyaGorban/rust_by_pract written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SonyaGorban/rust_by_pract on toolchain b047d5f4496a7526d91d0dddea494c05853f2a7b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SonyaGorban/rust_by_pract already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca4bea556a286face0199d180f9b65a75ba7c8732cc103da9eb114e6797a3403 [INFO] running `Command { std: "docker" "start" "-a" "ca4bea556a286face0199d180f9b65a75ba7c8732cc103da9eb114e6797a3403", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca4bea556a286face0199d180f9b65a75ba7c8732cc103da9eb114e6797a3403", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca4bea556a286face0199d180f9b65a75ba7c8732cc103da9eb114e6797a3403", kill_on_drop: false }` [INFO] [stdout] ca4bea556a286face0199d180f9b65a75ba7c8732cc103da9eb114e6797a3403 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b047d5f4496a7526d91d0dddea494c05853f2a7b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 083cf9700f4135b2a04db7856a45e6f354dcf8551ac0ab6129f134c914e47d4b [INFO] running `Command { std: "docker" "start" "-a" "083cf9700f4135b2a04db7856a45e6f354dcf8551ac0ab6129f134c914e47d4b", kill_on_drop: false }` [INFO] [stderr] Checking untitled2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ffi::CString` [INFO] [stdout] --> src/ownership_borrowing/ownership.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ffi::CString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Sub` [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Sub; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/collection_types/string.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/collection_types/hashmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/flow_control.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | 'inner2: loop { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CString` [INFO] [stdout] --> src/ownership_borrowing/ownership.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ffi::CString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/generics_traits/traits.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | let _this_is_true = (_one_second == _one_second); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - let _this_is_true = (_one_second == _one_second); [INFO] [stdout] 62 + let _this_is_true = _one_second == _one_second; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/generics_traits/traits.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | let _this_is_false = (_one_second > _one_second); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - let _this_is_false = (_one_second > _one_second); [INFO] [stdout] 63 + let _this_is_false = _one_second > _one_second; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Sub` [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Sub; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/variables.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut x: i32 = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/variables.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | let x = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/variables.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let y = 4; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/variables.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let y = "I can also be bound to text!"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | fn borrow_object(s: &String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:114:19 [INFO] [stdout] | [INFO] [stdout] 114 | fn borrow_object1(s: &mut String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:129:19 [INFO] [stdout] | [INFO] [stdout] 129 | fn borrow_object2(s: &String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/pattern_match/match1.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 67 | Message::ChangeColor(r, g, b) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/collection_types/vector.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_vec(v: &Vec) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TrafficLight` is never constructed [INFO] [stdout] --> src/method.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct TrafficLight { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `show_state` and `change_state` are never used [INFO] [stdout] --> src/method.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl TrafficLight { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 49 | // using `Self` to fill in the blank [INFO] [stdout] 50 | pub fn show_state(self: &Self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn change_state(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TrafficLight1` is never constructed [INFO] [stdout] --> src/method.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct TrafficLight1 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_state` are never used [INFO] [stdout] --> src/method.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl TrafficLight { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn get_state(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/method.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/method.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 96 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/method.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 101 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 102 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TrafficLightColor` is never used [INFO] [stdout] --> src/method.rs:111:6 [INFO] [stdout] | [INFO] [stdout] 111 | enum TrafficLightColor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `color` is never used [INFO] [stdout] --> src/method.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 118 | impl TrafficLightColor { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 119 | fn color(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_of` is never used [INFO] [stdout] --> src/basic_types/numbers.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn type_of(_: &T) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task6` is never used [INFO] [stdout] --> src/basic_types/numbers.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn task6() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_of_variable` is never used [INFO] [stdout] --> src/basic_types/numbers.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn type_of_variable(_: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/basic_types/functions.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn sum(x: i32, y: i32) -> i32{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/basic_types/functions.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn print() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `never_return_with_timeout` is never used [INFO] [stdout] --> src/basic_types/functions.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn never_return_with_timeout(seconds: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_option` is never used [INFO] [stdout] --> src/basic_types/functions.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn get_option(tp: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `never_return_fn` is never used [INFO] [stdout] --> src/basic_types/functions.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn never_return_fn() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/basic_types/statements_expressions.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn sum(x: i32, y: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_char` is never used [INFO] [stdout] --> src/basic_types/char_bool.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn print_char(c : char) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `implicitly_ret_unit` is never used [INFO] [stdout] --> src/basic_types/char_bool.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn implicitly_ret_unit() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `explicitly_ret_unit` is never used [INFO] [stdout] --> src/basic_types/char_bool.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn explicitly_ret_unit() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_letter` is never used [INFO] [stdout] --> src/compound_types/slice.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn first_letter(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greetings` is never used [INFO] [stdout] --> src/compound_types/string.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn greetings(s: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_multiply` is never used [INFO] [stdout] --> src/compound_types/tuple.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn sum_multiply(nums: (i32, i32)) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task3` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn task3() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task5` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn task5() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_ownership` is never used [INFO] [stdout] --> src/ownership_borrowing/ownership.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn take_ownership(s: String)-> String{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `give_ownership` is never used [INFO] [stdout] --> src/ownership_borrowing/ownership.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn give_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_str` is never used [INFO] [stdout] --> src/ownership_borrowing/ownership.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn print_str(s: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow_object` is never used [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn borrow_object(s: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `push_str` is never used [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn push_str(s: &mut String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_addr` is never used [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn get_addr(r: &char) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow_object1` is never used [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn borrow_object1(s: &mut String) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow_object2` is never used [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn borrow_object2(s: &String) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/pattern_match/match1.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/pattern_match/match1.rs:39:6 [INFO] [stdout] | [INFO] [stdout] 39 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_message` is never used [INFO] [stdout] --> src/pattern_match/match1.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn show_message(msg: Message) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyEnum` is never used [INFO] [stdout] --> src/pattern_match/match1.rs:89:6 [INFO] [stdout] | [INFO] [stdout] 89 | enum MyEnum { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Foo1` is never used [INFO] [stdout] --> src/pattern_match/match1.rs:122:6 [INFO] [stdout] | [INFO] [stdout] 122 | enum Foo1 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Foo` is never used [INFO] [stdout] --> src/pattern_match/match1.rs:139:6 [INFO] [stdout] | [INFO] [stdout] 139 | enum Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/pattern_match/patterns1.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/pattern_match/patterns1.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `A` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct A; // Concrete type `A`. [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `S` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct S(A); // Concrete type `S`. [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SGen` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct SGen(T); // Generic type `SGen`. [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reg_fn` is never used [INFO] [stdout] --> src/generics_traits/generics.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn reg_fn(_s: S) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_spec_t` is never used [INFO] [stdout] --> src/generics_traits/generics.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn gen_spec_t(_s: SGen) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_spec_i32` is never used [INFO] [stdout] --> src/generics_traits/generics.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn gen_spec_i32(_s: SGen) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic` is never used [INFO] [stdout] --> src/generics_traits/generics.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn generic(_s: SGen) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/generics_traits/generics.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn sum>(x: T, y: T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point1` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Point1 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point4` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Point4 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Val` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | struct Val { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/generics_traits/generics.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 69 | impl Val { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 70 | fn value(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point3` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2D` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct Point2D { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mixup` is never used [INFO] [stdout] --> src/generics_traits/generics.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Point2D { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] 96 | // Функція mixup, яка приймає Point2D і повертає Point2D [INFO] [stdout] 97 | fn mixup(self, other: Point2D) -> Point2D { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> src/generics_traits/generics.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 123 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 124 | fn distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Array` is never constructed [INFO] [stdout] --> src/generics_traits/const_generics.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Array { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_array` is never used [INFO] [stdout] --> src/generics_traits/const_generics.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn print_array(arr: [T; N]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hello` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait Hello { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Student` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Student {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Teacher` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Teacher {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Centimeters` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct Centimeters(f64); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inches` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct Inches(i32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_centimeters` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl Inches { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 47 | fn to_centimeters(&self) -> Centimeters { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Seconds` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Seconds(i32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn multiply>(x: T, y: T) -> T { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | struct Foo; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bar` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct Bar; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FooBar` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | struct FooBar; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BarFoo` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct BarFoo; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:125:7 [INFO] [stdout] | [INFO] [stdout] 125 | trait Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Post` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | struct Post { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Weibo` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | struct Weibo { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `summary` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn summary(t: &impl Summary) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sheep` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | struct Sheep {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cow` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | struct Cow {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Animal` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | trait Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_animal` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn random_animal(random_number: f64) -> impl Animal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:221:4 [INFO] [stdout] | [INFO] [stdout] 221 | fn sum>(x: T, y: T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 224 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 229 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 230 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:239:8 [INFO] [stdout] | [INFO] [stdout] 238 | impl Pair { [INFO] [stdout] | --------------------------------------------- method in this implementation [INFO] [stdout] 239 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unit` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:249:8 [INFO] [stdout] | [INFO] [stdout] 249 | struct Unit(i32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example1` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:261:4 [INFO] [stdout] | [INFO] [stdout] 261 | fn example1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/generics_traits/traits.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 269 | impl u32> Cacher { [INFO] [stdout] | --------------------------------- associated items in this implementation [INFO] [stdout] 270 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn value(&mut self, arg: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example2` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:295:4 [INFO] [stdout] | [INFO] [stdout] 295 | fn example2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/generics_traits/traits.rs:307:12 [INFO] [stdout] | [INFO] [stdout] 304 | / impl Cacher [INFO] [stdout] 305 | | where T: Fn(u32) -> u32, [INFO] [stdout] | |________________________________- associated items in this implementation [INFO] [stdout] 306 | { [INFO] [stdout] 307 | fn new(calculation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | fn value(&mut self, arg: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Bird` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Bird { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Duck` is never constructed [INFO] [stdout] --> src/generics_traits/trait_object.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Duck; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `swim` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Duck { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 7 | fn swim(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Swan` is never constructed [INFO] [stdout] --> src/generics_traits/trait_object.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Swan; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Swan { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 13 | fn fly(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hatch_a_bird` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn hatch_a_bird(species: u8) ->Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Bird1` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:57:7 [INFO] [stdout] | [INFO] [stdout] 57 | trait Bird1 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Duck1` is never constructed [INFO] [stdout] --> src/generics_traits/trait_object.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | struct Duck1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl Duck { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 63 | fn fly(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Swan1` is never constructed [INFO] [stdout] --> src/generics_traits/trait_object.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | struct Swan1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly1` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl Swan { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 69 | fn fly1(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 98 | trait Draw { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_with_box` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn draw_with_box(x: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw_with_ref` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn draw_with_ref(x: &dyn Draw) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | trait Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `static_dispatch` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn static_dispatch(x: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dynamic_dispatch` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn dynamic_dispatch(x: &dyn Foo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MyTrait` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:167:7 [INFO] [stdout] | [INFO] [stdout] 167 | trait MyTrait { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `my_function` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn my_function(x: impl MyTrait) -> impl MyTrait { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Container` is never constructed [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Container(i32, i32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Contains` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait Contains { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `difference` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn difference(container: &C) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Pilot` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:54:7 [INFO] [stdout] | [INFO] [stdout] 54 | trait Pilot { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Wizard` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | trait Wizard { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Human` is never constructed [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Human; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Human { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 77 | fn fly(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Person` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:93:7 [INFO] [stdout] | [INFO] [stdout] 93 | trait Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Student` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | trait Student: Person { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Programmer` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:103:7 [INFO] [stdout] | [INFO] [stdout] 103 | trait Programmer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CompSciStudent` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | trait CompSciStudent: Programmer + Student { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comp_sci_student_greeting` is never used [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn comp_sci_student_greeting(student: &dyn CompSciStudent) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CSStudent` is never constructed [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | struct CSStudent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pretty` is never constructed [INFO] [stdout] --> src/generics_traits/advanced_traits.rs:168:8 [INFO] [stdout] | [INFO] [stdout] 168 | struct Pretty(String); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_ownership` is never used [INFO] [stdout] --> src/collection_types/string.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn move_ownership(s: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow_string` is never used [INFO] [stdout] --> src/collection_types/string.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn borrow_string(s: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_vec` is never used [INFO] [stdout] --> src/collection_types/vector.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_vec(v: &Vec) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddr` is never used [INFO] [stdout] --> src/collection_types/vector.rs:147:6 [INFO] [stdout] | [INFO] [stdout] 147 | enum IpAddr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_stat_buff` is never used [INFO] [stdout] --> src/collection_types/hashmap.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn random_stat_buff() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Viking` is never constructed [INFO] [stdout] --> src/collection_types/hashmap.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct Viking { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/collection_types/hashmap.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl Viking { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 91 | /// Creates a new Viking. [INFO] [stdout] 92 | fn new(name: &str, country: &str) -> Viking { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/compound_types/enum1.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | / return [INFO] [stdout] ... | [INFO] [stdout] 97 | | panic!("NEVER LET THIS RUN!"); [INFO] [stdout] | | -----------------------------^ [INFO] [stdout] | |_____|____________________________| [INFO] [stdout] | | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/variables.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut x: i32 = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/variables.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | let x = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/variables.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let y = 4; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/variables.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let y = "I can also be bound to text!"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/variables.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let (x, y): (i32, i32); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/flow_control.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | for name in &names { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/flow_control.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | for i in 0..=100 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/flow_control.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | for i in 0..=100 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arr0` [INFO] [stdout] --> src/basic_types/array.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let arr0 = [1, 2, 3]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_arr0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name0` [INFO] [stdout] --> src/basic_types/array.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let name0 = names.get(0).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_name0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `y` is assigned to, but never used [INFO] [stdout] --> src/basic_types/numbers.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut y: i32 = 5; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_y` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/basic_types/numbers.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | y = x; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/basic_types/numbers.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let z = 10; // Type of z ? [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/basic_types/numbers.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let v: u16 = 38_u8 as u16; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/basic_types/numbers.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let y: f32 = 0.12; // f32 [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] --> src/basic_types/numbers.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let z = 0.01_f64; // f64 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/basic_types/char_bool.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | 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: `v` [INFO] [stdout] --> src/basic_types/char_bool.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let v = (2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/compound_types/slice.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let s1: &[i32] = &arr[0..2]; [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] --> src/compound_types/slice.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let s2: &str = "hello, world" ; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/compound_types/string.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let s: &str = "hello, world"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compound_types/string.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut s = String::from("I like dogs"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/compound_types/string.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let s1: &str = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/compound_types/tuple.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let t: (u8, u16, i64, &str, String) = (1u8, 2u16, 3i64, "hello", String::from(", world")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/compound_types/struct1.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let p = Person { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/compound_types/struct1.rs:38:31 [INFO] [stdout] | [INFO] [stdout] 38 | fn do_something_with_unit(u: Unit) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u2` [INFO] [stdout] --> src/compound_types/struct1.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let u2 = set_email(u1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_u2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg1` [INFO] [stdout] --> src/compound_types/enum1.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let msg1 = Message::Move{x: 1, y: 2}; // instantiating with x = 1, y = 2 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_msg1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg2` [INFO] [stdout] --> src/compound_types/enum1.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let msg2 = Message::Write(String::from("hello, world")); // instantiating with "hello, world!" [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_msg2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/compound_types/enum1.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut s = String::from("hello, "); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | fn borrow_object(s: &String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let mut s = String::from("hello"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:114:19 [INFO] [stdout] | [INFO] [stdout] 114 | fn borrow_object1(s: &mut String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:129:19 [INFO] [stdout] | [INFO] [stdout] 129 | fn borrow_object2(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] --> src/ownership_borrowing/reference_borrowing.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | 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: `r2` [INFO] [stdout] --> src/ownership_borrowing/reference_borrowing.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let r2 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/pattern_match/match1.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 67 | Message::ChangeColor(r, g, b) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/pattern_match/match1.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | if let Foo1::Bar(i) = a { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer` [INFO] [stdout] --> src/generics_traits/generics.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let integer = Point1 { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `float` [INFO] [stdout] --> src/generics_traits/generics.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let float = Point1 { x: 1.0, y: 4.0 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrays` [INFO] [stdout] --> src/generics_traits/const_generics.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let arrays = [ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_arrays` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/collection_types/vector.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_vec(v: &Vec) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `show_state` and `change_state` are never used [INFO] [stdout] --> src/method.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl TrafficLight { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 49 | // using `Self` to fill in the blank [INFO] [stdout] 50 | pub fn show_state(self: &Self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn change_state(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TrafficLight1` is never constructed [INFO] [stdout] --> src/method.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct TrafficLight1 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/method.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/method.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 96 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/method.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 101 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 102 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red` and `Green` are never constructed [INFO] [stdout] --> src/method.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 111 | enum TrafficLightColor { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 112 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 113 | Yellow, [INFO] [stdout] 114 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/basic_types/array.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task6` is never used [INFO] [stdout] --> src/basic_types/numbers.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn task6() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_of_variable` is never used [INFO] [stdout] --> src/basic_types/numbers.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn type_of_variable(_: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_option` is never used [INFO] [stdout] --> src/basic_types/functions.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn get_option(tp: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `never_return_fn` is never used [INFO] [stdout] --> src/basic_types/functions.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn never_return_fn() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `explicitly_ret_unit` is never used [INFO] [stdout] --> src/basic_types/char_bool.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn explicitly_ret_unit() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/compound_types/string.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/compound_types/string.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `age`, and `hobby` are never read [INFO] [stdout] --> src/compound_types/struct1.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | hobby: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unit` is never constructed [INFO] [stdout] --> src/compound_types/struct1.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SomeTrait` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | trait SomeTrait { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_something_with_unit` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn do_something_with_unit(u: Unit) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task3` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn task3() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task5` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn task5() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `username`, `email`, and `sign_in_count` are never read [INFO] [stdout] --> src/compound_types/struct1.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 101 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 102 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 103 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 104 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/compound_types/struct1.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `File` is never constructed [INFO] [stdout] --> src/compound_types/struct1.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | struct File { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/compound_types/struct1.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Zero` and `Two` are never constructed [INFO] [stdout] --> src/compound_types/enum1.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | enum Number { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 6 | Zero, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | One, [INFO] [stdout] 8 | Two, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Zero` and `Two` are never constructed [INFO] [stdout] --> src/compound_types/enum1.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | enum Number1 { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 12 | Zero = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | One, [INFO] [stdout] 14 | Two, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Zero` and `Two` are never constructed [INFO] [stdout] --> src/compound_types/enum1.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | enum Number2 { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 19 | Zero = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | One = 1, [INFO] [stdout] 21 | Two = 2, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/compound_types/enum1.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/compound_types/enum1.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 35 - Write(String), [INFO] [stdout] 35 + Write(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit` and `ChangeColor` are never constructed [INFO] [stdout] --> src/compound_types/enum1.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 33 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Write`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/compound_types/enum1.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 45 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | Move { x: i32, y: i32 }, [INFO] [stdout] 47 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/compound_types/enum1.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/compound_types/enum1.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ----------- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 66 - ChangeColor(i32, i32, i32), [INFO] [stdout] 66 + ChangeColor((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Write` is never constructed [INFO] [stdout] --> src/compound_types/enum1.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 62 | enum Message { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 65 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `East`, `West`, and `North` are never constructed [INFO] [stdout] --> src/pattern_match/match1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 3 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | North, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Write` is never constructed [INFO] [stdout] --> src/pattern_match/match1.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 39 | enum Message { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 42 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/pattern_match/match1.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | Qux(u32) [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 142 - Qux(u32) [INFO] [stdout] 142 + Qux(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Bar` and `Baz` are never constructed [INFO] [stdout] --> src/pattern_match/match1.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 139 | enum Foo { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 140 | Bar, [INFO] [stdout] | ^^^ [INFO] [stdout] 141 | Baz, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match_number` is never used [INFO] [stdout] --> src/pattern_match/patterns1.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | fn match_number(n: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/pattern_match/patterns1.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generics_traits/generics.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct Point1 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 40 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 41 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point3` is never constructed [INFO] [stdout] --> src/generics_traits/generics.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/generics_traits/const_generics.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Array { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 3 | data : [T; N] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/generics_traits/traits.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 130 | struct Post { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 133 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Post` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cow` is never constructed [INFO] [stdout] --> src/generics_traits/traits.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | struct Cow {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/generics_traits/traits.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 229 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 230 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Swan { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 13 | fn fly(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl Duck { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 63 | fn fly(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fly1` is never used [INFO] [stdout] --> src/generics_traits/trait_object.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl Swan { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 69 | fn fly1(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "083cf9700f4135b2a04db7856a45e6f354dcf8551ac0ab6129f134c914e47d4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "083cf9700f4135b2a04db7856a45e6f354dcf8551ac0ab6129f134c914e47d4b", kill_on_drop: false }` [INFO] [stdout] 083cf9700f4135b2a04db7856a45e6f354dcf8551ac0ab6129f134c914e47d4b