[INFO] cloning repository https://github.com/yyheroi/rustling_ [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yyheroi/rustling_" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyyheroi%2Frustling_", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyyheroi%2Frustling_'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a67c430737a62f804f072c65828e790bb5581e77 [INFO] checking yyheroi/rustling_ against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyyheroi%2Frustling_" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file target/debug/as_ref_mut [INFO] [stderr] error: unable to write file target/debug/as_ref_mut.d [INFO] [stderr] error: unable to write file target/debug/box1 [INFO] [stderr] error: unable to write file target/debug/box1.d [INFO] [stderr] error: unable to write file target/debug/clippy1 [INFO] [stderr] error: unable to write file target/debug/clippy1.d [INFO] [stderr] error: unable to write file target/debug/clippy2 [INFO] [stderr] error: unable to write file target/debug/clippy2.d [INFO] [stderr] error: unable to write file target/debug/clippy3 [INFO] [stderr] error: unable to write file target/debug/clippy3.d [INFO] [stderr] error: unable to write file target/debug/cow1 [INFO] [stderr] error: unable to write file target/debug/cow1.d [INFO] [stderr] fatal: cannot create directory at 'target/debug/deps': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] checking yyheroi/rustling_ against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyyheroi%2Frustling_" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file target/debug/arc1 [INFO] [stderr] error: unable to write file target/debug/arc1.d [INFO] [stderr] error: unable to write file target/debug/as_ref_mut [INFO] [stderr] error: unable to write file target/debug/as_ref_mut.d [INFO] [stderr] error: unable to write file target/debug/box1 [INFO] [stderr] error: unable to write file target/debug/box1.d [INFO] [stderr] error: unable to write file target/debug/clippy1 [INFO] [stderr] error: unable to write file target/debug/clippy1.d [INFO] [stderr] error: unable to write file target/debug/clippy2 [INFO] [stderr] error: unable to write file target/debug/clippy2.d [INFO] [stderr] error: unable to write file target/debug/clippy3 [INFO] [stderr] error: unable to write file target/debug/clippy3.d [INFO] [stderr] error: unable to write file target/debug/cow1 [INFO] [stderr] error: unable to write file target/debug/cow1.d [INFO] [stderr] fatal: cannot create directory at 'target/debug/deps': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] checking yyheroi/rustling_ against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyyheroi%2Frustling_" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file target/debug/arc1 [INFO] [stderr] error: unable to write file target/debug/arc1.d [INFO] [stderr] error: unable to write file target/debug/as_ref_mut [INFO] [stderr] error: unable to write file target/debug/as_ref_mut.d [INFO] [stderr] error: unable to write file target/debug/box1 [INFO] [stderr] error: unable to write file target/debug/box1.d [INFO] [stderr] error: unable to write file target/debug/clippy1 [INFO] [stderr] error: unable to write file target/debug/clippy1.d [INFO] [stderr] error: unable to write file target/debug/clippy2 [INFO] [stderr] error: unable to write file target/debug/clippy2.d [INFO] [stderr] error: unable to write file target/debug/clippy3 [INFO] [stderr] error: unable to write file target/debug/clippy3.d [INFO] [stderr] error: unable to write file target/debug/cow1 [INFO] [stderr] error: unable to write file target/debug/cow1.d [INFO] [stderr] fatal: cannot create directory at 'target/debug/deps': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] checking yyheroi/rustling_ against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyyheroi%2Frustling_" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file target/debug/arc1 [INFO] [stderr] error: unable to write file target/debug/arc1.d [INFO] [stderr] error: unable to write file target/debug/as_ref_mut [INFO] [stderr] error: unable to write file target/debug/as_ref_mut.d [INFO] [stderr] error: unable to write file target/debug/box1 [INFO] [stderr] error: unable to write file target/debug/box1.d [INFO] [stderr] error: unable to write file target/debug/clippy1 [INFO] [stderr] error: unable to write file target/debug/clippy1.d [INFO] [stderr] error: unable to write file target/debug/clippy2 [INFO] [stderr] error: unable to write file target/debug/clippy2.d [INFO] [stderr] error: unable to write file target/debug/clippy3 [INFO] [stderr] error: unable to write file target/debug/clippy3.d [INFO] [stderr] error: unable to write file target/debug/cow1 [INFO] [stderr] error: unable to write file target/debug/cow1.d [INFO] [stderr] fatal: cannot create directory at 'target/debug/deps': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] checking yyheroi/rustling_ against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyyheroi%2Frustling_" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 22% (1328/5891) Updating files: 23% (1355/5891) Updating files: 24% (1414/5891) Updating files: 25% (1473/5891) Updating files: 26% (1532/5891) Updating files: 26% (1552/5891) Updating files: 27% (1591/5891) Updating files: 28% (1650/5891) Updating files: 29% (1709/5891) Updating files: 29% (1717/5891) Updating files: 30% (1768/5891) Updating files: 31% (1827/5891) Updating files: 32% (1886/5891) Updating files: 33% (1945/5891) Updating files: 34% (2003/5891) Updating files: 35% (2062/5891) Updating files: 36% (2121/5891) Updating files: 37% (2180/5891) Updating files: 38% (2239/5891) Updating files: 39% (2298/5891) Updating files: 40% (2357/5891) Updating files: 41% (2416/5891) Updating files: 42% (2475/5891) Updating files: 43% (2534/5891) Updating files: 44% (2593/5891) Updating files: 45% (2651/5891) Updating files: 46% (2710/5891) Updating files: 47% (2769/5891) Updating files: 48% (2828/5891) Updating files: 49% (2887/5891) Updating files: 50% (2946/5891) Updating files: 51% (3005/5891) Updating files: 52% (3064/5891) Updating files: 53% (3123/5891) Updating files: 54% (3182/5891) Updating files: 55% (3241/5891) Updating files: 56% (3299/5891) Updating files: 57% (3358/5891) Updating files: 58% (3417/5891) Updating files: 59% (3476/5891) Updating files: 60% (3535/5891) Updating files: 61% (3594/5891) Updating files: 62% (3653/5891) Updating files: 63% (3712/5891) Updating files: 64% (3771/5891) Updating files: 65% (3830/5891) Updating files: 66% (3889/5891) Updating files: 67% (3947/5891) Updating files: 68% (4006/5891) Updating files: 69% (4065/5891) Updating files: 70% (4124/5891) Updating files: 71% (4183/5891) Updating files: 72% (4242/5891) Updating files: 73% (4301/5891) Updating files: 74% (4360/5891) Updating files: 75% (4419/5891) Updating files: 75% (4427/5891) Updating files: 76% (4478/5891) Updating files: 77% (4537/5891) Updating files: 78% (4595/5891) Updating files: 79% (4654/5891) Updating files: 80% (4713/5891) Updating files: 81% (4772/5891) Updating files: 82% (4831/5891) Updating files: 83% (4890/5891) Updating files: 84% (4949/5891) Updating files: 85% (5008/5891) Updating files: 86% (5067/5891) Updating files: 87% (5126/5891) Updating files: 88% (5185/5891) Updating files: 89% (5243/5891) Updating files: 90% (5302/5891) Updating files: 91% (5361/5891) Updating files: 92% (5420/5891) Updating files: 93% (5479/5891) Updating files: 94% (5538/5891) Updating files: 95% (5597/5891) Updating files: 96% (5656/5891) Updating files: 97% (5715/5891) Updating files: 98% (5774/5891) Updating files: 99% (5833/5891) Updating files: 99% (5889/5891) Updating files: 100% (5891/5891) Updating files: 100% (5891/5891), done. [INFO] validating manifest of git repo https://github.com/yyheroi/rustling_ on toolchain cd420d8bda33494ba3cc45048d5f067484a32b94 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yyheroi/rustling_ [INFO] finished tweaking git repo https://github.com/yyheroi/rustling_ [INFO] tweaked toml for git repo https://github.com/yyheroi/rustling_ written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yyheroi/rustling_ 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" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02b2f022b049c9b544a96223a0aaf703598f50b32c4e5080577fe46efad0da53 [INFO] running `Command { std: "docker" "start" "-a" "02b2f022b049c9b544a96223a0aaf703598f50b32c4e5080577fe46efad0da53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02b2f022b049c9b544a96223a0aaf703598f50b32c4e5080577fe46efad0da53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02b2f022b049c9b544a96223a0aaf703598f50b32c4e5080577fe46efad0da53", kill_on_drop: false }` [INFO] [stdout] 02b2f022b049c9b544a96223a0aaf703598f50b32c4e5080577fe46efad0da53 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a14f6c69c52c978dca32b3ca63734dcf963bb2df1c29f056c77fe6a5c29e4f68 [INFO] running `Command { std: "docker" "start" "-a" "a14f6c69c52c978dca32b3ca63734dcf963bb2df1c29f056c77fe6a5c29e4f68", kill_on_drop: false }` [INFO] [stderr] Checking exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> exercises/04_primitive_types/primitive_types4.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let a = [1, 2, 3, 4, 5]; [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: enum `Fruit` is never used [INFO] [stdout] --> solutions/11_hashmaps/hashmaps2.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Fruit { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fruit_basket` is never used [INFO] [stdout] --> solutions/11_hashmaps/hashmaps2.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn fruit_basket(basket: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs_all` is never used [INFO] [stdout] --> exercises/19_smart_pointers/cow1.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn abs_all(input: &mut Cow<[i32]>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_vec` is never used [INFO] [stdout] --> exercises/06_move_semantics/move_semantics3.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn fill_vec(mut vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wrapper` is never constructed [INFO] [stdout] --> solutions/14_generics/generics2.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Wrapper { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> solutions/14_generics/generics2.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Wrapper { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 6 | fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SomeTrait` is never used [INFO] [stdout] --> exercises/15_traits/traits5.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait SomeTrait { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OtherTrait` is never used [INFO] [stdout] --> exercises/15_traits/traits5.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait OtherTrait { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SomeStruct` is never constructed [INFO] [stdout] --> exercises/15_traits/traits5.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct SomeStruct; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OtherStruct` is never constructed [INFO] [stdout] --> exercises/15_traits/traits5.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct OtherStruct; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_func` is never used [INFO] [stdout] --> exercises/15_traits/traits5.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn some_func(item: impl OtherTrait + SomeTrait) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Licensed` is never used [INFO] [stdout] --> solutions/15_traits/traits4.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Licensed { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SomeSoftware` is never constructed [INFO] [stdout] --> solutions/15_traits/traits4.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct SomeSoftware; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OtherSoftware` is never constructed [INFO] [stdout] --> solutions/15_traits/traits4.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct OtherSoftware; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_license_types` is never used [INFO] [stdout] --> solutions/15_traits/traits4.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn compare_license_types(software1: impl Licensed, software2: impl Licensed) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> solutions/08_enums/enums3.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> solutions/08_enums/enums3.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> solutions/08_enums/enums3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `resize`, `move_position`, `echo`, `change_color`, `quit`, and `process` are never used [INFO] [stdout] --> solutions/08_enums/enums3.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl State { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 24 | fn resize(&mut self, width: u64, height: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn move_position(&mut self, point: Point) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn echo(&mut self, s: String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn change_color(&mut self, red: u8, green: u8, blue: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn quit(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn process(&mut self, message: Message) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SomeTrait` is never used [INFO] [stdout] --> solutions/15_traits/traits5.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait SomeTrait { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OtherTrait` is never used [INFO] [stdout] --> solutions/15_traits/traits5.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait OtherTrait { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SomeStruct` is never constructed [INFO] [stdout] --> solutions/15_traits/traits5.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct SomeStruct; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OtherStruct` is never constructed [INFO] [stdout] --> solutions/15_traits/traits5.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct OtherStruct; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_func` is never used [INFO] [stdout] --> solutions/15_traits/traits5.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn some_func(item: impl SomeTrait + OtherTrait) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_vec` is never used [INFO] [stdout] --> exercises/06_move_semantics/move_semantics1.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn fill_vec(vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_nametag_text` is never used [INFO] [stdout] --> solutions/13_error_handling/errors1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn generate_nametag_text(name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_cost` is never used [INFO] [stdout] --> exercises/13_error_handling/errors2.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn total_cost(item_quantity: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> solutions/16_lifetimes/lifetimes1.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trim_me` is never used [INFO] [stdout] --> exercises/09_strings/strings3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn trim_me(input: &str) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compose_me` is never used [INFO] [stdout] --> exercises/09_strings/strings3.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn compose_me(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_me` is never used [INFO] [stdout] --> exercises/09_strings/strings3.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn replace_me(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_even` is never used [INFO] [stdout] --> exercises/17_tests/tests1.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_even(n: i64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Command` is never used [INFO] [stdout] --> exercises/quizzes/quiz2.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | enum Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transformer` is never used [INFO] [stdout] --> exercises/quizzes/quiz2.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn transformer(input: Vec<(String, Command)>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs_all` is never used [INFO] [stdout] --> solutions/19_smart_pointers/cow1.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn abs_all(input: &mut Cow<[i32]>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Package` is never constructed [INFO] [stdout] --> exercises/07_structs/structs3.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Package { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_international`, and `get_fees` are never used [INFO] [stdout] --> exercises/07_structs/structs3.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Package { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 12 | fn new(sender_country: String, recipient_country: String, weight_in_grams: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn is_international(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn get_fees(&self, cents_per_gram: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `array_and_vec` is never used [INFO] [stdout] --> exercises/05_vecs/vecs1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn array_and_vec() -> ([i32; 4], Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CreationError` is never used [INFO] [stdout] --> solutions/13_error_handling/errors6.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum CreationError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParsePosNonzeroError` is never used [INFO] [stdout] --> solutions/13_error_handling/errors6.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum ParsePosNonzeroError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_creation` and `from_parseint` are never used [INFO] [stdout] --> solutions/13_error_handling/errors6.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl ParsePosNonzeroError { [INFO] [stdout] | ------------------------- associated functions in this implementation [INFO] [stdout] 23 | fn from_creation(err: CreationError) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn from_parseint(err: ParseIntError) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveNonzeroInteger` is never constructed [INFO] [stdout] --> solutions/13_error_handling/errors6.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct PositiveNonzeroInteger(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `parse` are never used [INFO] [stdout] --> solutions/13_error_handling/errors6.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl PositiveNonzeroInteger { [INFO] [stdout] | --------------------------- associated functions in this implementation [INFO] [stdout] 36 | fn new(value: i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn parse(s: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorRegularStruct` is never constructed [INFO] [stdout] --> solutions/07_structs/structs1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct ColorRegularStruct { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorTupleStruct` is never constructed [INFO] [stdout] --> solutions/07_structs/structs1.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct ColorTupleStruct(u8, u8, u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnitStruct` is never constructed [INFO] [stdout] --> solutions/07_structs/structs1.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct UnitStruct; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `animal_habitat` is never used [INFO] [stdout] --> exercises/03_if/if3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn animal_habitat(animal: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `power_of_2` is never used [INFO] [stdout] --> exercises/17_tests/tests2.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn power_of_2(n: u8) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_for` is never used [INFO] [stdout] --> solutions/18_iterators/iterators4.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn factorial_for(num: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_fold` is never used [INFO] [stdout] --> solutions/18_iterators/iterators4.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial_fold(num: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_product` is never used [INFO] [stdout] --> solutions/18_iterators/iterators4.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn factorial_product(num: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `animal_habitat` is never used [INFO] [stdout] --> solutions/03_if/if3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn animal_habitat(animal: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_vec` is never used [INFO] [stdout] --> solutions/06_move_semantics/move_semantics3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn fill_vec(mut vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `power_of_2` is never used [INFO] [stdout] --> solutions/17_tests/tests2.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn power_of_2(n: u8) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_vec` is never used [INFO] [stdout] --> solutions/06_move_semantics/move_semantics1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn fill_vec(vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Licensed` is never used [INFO] [stdout] --> exercises/15_traits/traits4.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Licensed { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SomeSoftware` is never constructed [INFO] [stdout] --> exercises/15_traits/traits4.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct SomeSoftware; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OtherSoftware` is never constructed [INFO] [stdout] --> exercises/15_traits/traits4.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct OtherSoftware; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_license_types` is never used [INFO] [stdout] --> exercises/15_traits/traits4.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn compare_license_types(software1:impl Licensed, software2: impl Licensed) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maybe_icecream` is never used [INFO] [stdout] --> exercises/12_options/options1.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn maybe_icecream(hour_of_day: u16) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AppendBar` is never used [INFO] [stdout] --> exercises/15_traits/traits2.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait AppendBar { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> solutions/23_conversions/from_into.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorRegularStruct` is never constructed [INFO] [stdout] --> exercises/07_structs/structs1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct ColorRegularStruct { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorTupleStruct` is never constructed [INFO] [stdout] --> exercises/07_structs/structs1.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct ColorTupleStruct(i32, i32, i32/* TODO: Add the fields that the test `tuple_structs` expects */); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnitStruct` is never constructed [INFO] [stdout] --> exercises/07_structs/structs1.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct UnitStruct; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `details` is never used [INFO] [stdout] --> solutions/19_smart_pointers/rc1.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Planet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 25 | fn details(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> exercises/07_structs/structs2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_order_template` is never used [INFO] [stdout] --> exercises/07_structs/structs2.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn create_order_template() -> Order { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fruit_basket` is never used [INFO] [stdout] --> solutions/11_hashmaps/hashmaps1.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn fruit_basket() -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> solutions/17_tests/tests3.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> solutions/17_tests/tests3.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | // Don't change this function. [INFO] [stdout] 8 | fn new(width: i32, height: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CreationError` is never used [INFO] [stdout] --> exercises/13_error_handling/errors4.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum CreationError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveNonzeroInteger` is never constructed [INFO] [stdout] --> exercises/13_error_handling/errors4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct PositiveNonzeroInteger(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> exercises/13_error_handling/errors4.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl PositiveNonzeroInteger { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 13 | fn new(value: i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CreationError` is never used [INFO] [stdout] --> solutions/13_error_handling/errors4.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum CreationError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveNonzeroInteger` is never constructed [INFO] [stdout] --> solutions/13_error_handling/errors4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct PositiveNonzeroInteger(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> solutions/13_error_handling/errors4.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl PositiveNonzeroInteger { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 13 | fn new(value: i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_counter` is never used [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn byte_counter>(arg: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_counter` is never used [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn char_counter>(arg: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_sq` is never used [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn num_sq>(arg: &mut T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo_if_fizz` is never used [INFO] [stdout] --> solutions/03_if/if2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn foo_if_fizz(fizzish: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial` is never used [INFO] [stdout] --> exercises/18_iterators/iterators4.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn factorial(num: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigger` is never used [INFO] [stdout] --> exercises/03_if/if1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn bigger(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_price_of_apples` is never used [INFO] [stdout] --> solutions/quizzes/quiz1.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn calculate_price_of_apples(n_apples: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_price_of_apples` is never used [INFO] [stdout] --> exercises/quizzes/quiz1.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn calculate_price_of_apples(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_loop` is never used [INFO] [stdout] --> solutions/05_vecs/vecs2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn vec_loop(input: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_map_example` is never used [INFO] [stdout] --> solutions/05_vecs/vecs2.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn vec_map_example(input: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_map` is never used [INFO] [stdout] --> solutions/05_vecs/vecs2.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn vec_map(input: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placeholder` is never used [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo_if_fizz` is never used [INFO] [stdout] --> exercises/03_if/if2.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn foo_if_fizz(fizzish: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `array_and_vec` is never used [INFO] [stdout] --> solutions/05_vecs/vecs1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn array_and_vec() -> ([i32; 4], Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigger` is never used [INFO] [stdout] --> solutions/03_if/if1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn bigger(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AppendBar` is never used [INFO] [stdout] --> solutions/15_traits/traits2.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait AppendBar { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CreationError` is never used [INFO] [stdout] --> exercises/13_error_handling/errors6.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum CreationError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParsePosNonzeroError` is never used [INFO] [stdout] --> exercises/13_error_handling/errors6.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 17 | enum ParsePosNonzeroError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_creation` and `from_parseint` are never used [INFO] [stdout] --> exercises/13_error_handling/errors6.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl ParsePosNonzeroError { [INFO] [stdout] | ------------------------- associated functions in this implementation [INFO] [stdout] 23 | fn from_creation(err: CreationError) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn from_parseint(err: ParseIntError) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveNonzeroInteger` is never constructed [INFO] [stdout] --> exercises/13_error_handling/errors6.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | struct PositiveNonzeroInteger(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `parse` are never used [INFO] [stdout] --> exercises/13_error_handling/errors6.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl PositiveNonzeroInteger { [INFO] [stdout] | --------------------------- associated functions in this implementation [INFO] [stdout] 37 | fn new(value: i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn parse(s: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status_locked` [INFO] [stdout] --> exercises/20_threads/threads2.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let status_locked = status.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_status_locked` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_vec` is never used [INFO] [stdout] --> solutions/06_move_semantics/move_semantics2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn fill_vec(vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> exercises/08_enums/enums3.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fruit_basket` is never used [INFO] [stdout] --> exercises/11_hashmaps/hashmaps1.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn fruit_basket() -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResizeWH` is never constructed [INFO] [stdout] --> exercises/08_enums/enums3.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct ResizeWH { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> exercises/08_enums/enums3.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> exercises/08_enums/enums3.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `resize`, `move_position`, `echo`, `change_color`, `quit`, and `process` are never used [INFO] [stdout] --> exercises/08_enums/enums3.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl State { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 29 | fn resize(&mut self, width: u64, height: u64) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn move_position(&mut self, point: Point) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn echo(&mut self, s: String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn change_color(&mut self, red: u8, green: u8, blue: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn quit(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn process(&mut self, message: Message) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Team` is never constructed [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Team { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Team` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_scores_table` is never used [INFO] [stdout] --> exercises/11_hashmaps/hashmaps3.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn build_scores_table(results: &str) -> HashMap<&str, Team> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReportCard` is never constructed [INFO] [stdout] --> exercises/quizzes/quiz3.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct ReportCard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> exercises/quizzes/quiz3.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl ReportCard { [INFO] [stdout] | ---------------------------------------- method in this implementation [INFO] [stdout] 23 | fn print(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capitalize_first` is never used [INFO] [stdout] --> exercises/18_iterators/iterators2.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn capitalize_first(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capitalize_words_vector` is never used [INFO] [stdout] --> exercises/18_iterators/iterators2.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn capitalize_words_vector(words: &[&str]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capitalize_words_string` is never used [INFO] [stdout] --> exercises/18_iterators/iterators2.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn capitalize_words_string(words: &[&str]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_counter` is never used [INFO] [stdout] --> solutions/23_conversions/as_ref_mut.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn byte_counter>(arg: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_counter` is never used [INFO] [stdout] --> solutions/23_conversions/as_ref_mut.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn char_counter>(arg: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_sq` is never used [INFO] [stdout] --> solutions/23_conversions/as_ref_mut.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn num_sq>(arg: &mut T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Package` is never constructed [INFO] [stdout] --> solutions/07_structs/structs3.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Package { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_international`, and `get_fees` are never used [INFO] [stdout] --> solutions/07_structs/structs3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Package { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 9 | fn new(sender_country: String, recipient_country: String, weight_in_grams: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn is_international(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_fees(&self, cents_per_gram: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | for (k,v) in map.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | for (k,v) in map.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Progress` is never used [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum Progress { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_for` is never used [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn count_for(map: &HashMap, value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_iterator` is never used [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn count_iterator(map: &HashMap, value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_collection_for` is never used [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn count_collection_for(collection: &[HashMap], value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_collection_iterator` is never used [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn count_collection_iterator(collection: &[HashMap], value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trim_me` is never used [INFO] [stdout] --> solutions/09_strings/strings3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn trim_me(input: &str) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compose_me` is never used [INFO] [stdout] --> solutions/09_strings/strings3.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn compose_me(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_me` is never used [INFO] [stdout] --> solutions/09_strings/strings3.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn replace_me(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_cost` is never used [INFO] [stdout] --> solutions/13_error_handling/errors2.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn total_cost(item_quantity: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_loop` is never used [INFO] [stdout] --> exercises/05_vecs/vecs2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn vec_loop(input: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_map_example` is never used [INFO] [stdout] --> exercises/05_vecs/vecs2.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn vec_map_example(input: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_map` is never used [INFO] [stdout] --> exercises/05_vecs/vecs2.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn vec_map(input: &[i32]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capitalize_first` is never used [INFO] [stdout] --> solutions/18_iterators/iterators2.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn capitalize_first(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capitalize_words_vector` is never used [INFO] [stdout] --> solutions/18_iterators/iterators2.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn capitalize_words_vector(words: &[&str]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `capitalize_words_string` is never used [INFO] [stdout] --> solutions/18_iterators/iterators2.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn capitalize_words_string(words: &[&str]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Progress` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum Progress { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_for` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn count_for(map: &HashMap, value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_iterator` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn count_iterator(map: &HashMap, value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_collection_for` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn count_collection_for(collection: &[HashMap], value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_collection_iterator` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn count_collection_iterator(collection: &[HashMap], value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_collection_iterator_flat` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn count_collection_iterator_flat( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `details` is never used [INFO] [stdout] --> exercises/19_smart_pointers/rc1.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Planet { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 25 | fn details(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status_locked` [INFO] [stdout] --> exercises/20_threads/threads2.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let status_locked = status.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_status_locked` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_even` is never used [INFO] [stdout] --> solutions/17_tests/tests1.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_even(n: i64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maybe_icecream` is never used [INFO] [stdout] --> solutions/12_options/options1.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn maybe_icecream(hour_of_day: u16) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> exercises/17_tests/tests3.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> exercises/17_tests/tests3.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | // Don't change this function. [INFO] [stdout] 8 | fn new(width: i32, height: i32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Queue` is never constructed [INFO] [stdout] --> exercises/20_threads/threads3.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Queue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> exercises/20_threads/threads3.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Queue { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_tx` is never used [INFO] [stdout] --> exercises/20_threads/threads3.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn send_tx(q: Queue, tx: mpsc::Sender) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `placeholder` is never used [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DivisionError` is never used [INFO] [stdout] --> solutions/18_iterators/iterators3.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum DivisionError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide` is never used [INFO] [stdout] --> solutions/18_iterators/iterators3.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn divide(a: i64, b: i64) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `result_with_list` is never used [INFO] [stdout] --> solutions/18_iterators/iterators3.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn result_with_list() -> Result, DivisionError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_of_results` is never used [INFO] [stdout] --> solutions/18_iterators/iterators3.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn list_of_results() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_nametag_text` is never used [INFO] [stdout] --> exercises/13_error_handling/errors1.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn generate_nametag_text(name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DivisionError` is never used [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum DivisionError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide` is never used [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn divide(a: i64, b: i64) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `result_with_list` is never used [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn result_with_list() -> Result, DivisionError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_of_results` is never used [INFO] [stdout] --> exercises/18_iterators/iterators3.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn list_of_results() -> Vec>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wrapper` is never constructed [INFO] [stdout] --> exercises/14_generics/generics2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Wrapper { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> exercises/14_generics/generics2.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Wrapper { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 9 | fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Team` is never constructed [INFO] [stdout] --> solutions/11_hashmaps/hashmaps3.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Team { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Team` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_scores_table` is never used [INFO] [stdout] --> solutions/11_hashmaps/hashmaps3.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn build_scores_table(results: &str) -> HashMap<&str, Team> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_vec` is never used [INFO] [stdout] --> exercises/06_move_semantics/move_semantics2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn fill_vec(vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Queue` is never constructed [INFO] [stdout] --> solutions/20_threads/threads3.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Queue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> solutions/20_threads/threads3.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Queue { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_tx` is never used [INFO] [stdout] --> solutions/20_threads/threads3.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn send_tx(q: Queue, tx: mpsc::Sender) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReportCard` is never constructed [INFO] [stdout] --> solutions/quizzes/quiz3.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct ReportCard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> solutions/quizzes/quiz3.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl ReportCard { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] 23 | // ^^^^^^^ require that `T` implements `Display`. [INFO] [stdout] 24 | fn print(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Command` is never used [INFO] [stdout] --> solutions/quizzes/quiz2.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transformer` is never used [INFO] [stdout] --> solutions/quizzes/quiz2.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn transformer(input: Vec<(String, Command)>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transformer_iter` is never used [INFO] [stdout] --> solutions/quizzes/quiz2.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn transformer_iter(input: Vec<(String, Command)>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | for (k,v) in map.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> exercises/18_iterators/iterators5.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | for (k,v) in map.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> solutions/07_structs/structs2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_order_template` is never used [INFO] [stdout] --> solutions/07_structs/structs2.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn create_order_template() -> Order { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> exercises/16_lifetimes/lifetimes1.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Fruit` is never used [INFO] [stdout] --> exercises/11_hashmaps/hashmaps2.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | enum Fruit { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fruit_basket` is never used [INFO] [stdout] --> exercises/11_hashmaps/hashmaps2.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn fruit_basket(basket: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `age` are never read [INFO] [stdout] --> exercises/23_conversions/from_into.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.37s [INFO] running `Command { std: "docker" "inspect" "a14f6c69c52c978dca32b3ca63734dcf963bb2df1c29f056c77fe6a5c29e4f68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a14f6c69c52c978dca32b3ca63734dcf963bb2df1c29f056c77fe6a5c29e4f68", kill_on_drop: false }` [INFO] [stdout] a14f6c69c52c978dca32b3ca63734dcf963bb2df1c29f056c77fe6a5c29e4f68