[INFO] cloning repository https://github.com/pricelessjunk/rust-tutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pricelessjunk/rust-tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 58c1c9bd9eb84985138d15b935815b7faeff2e31 [INFO] checking pricelessjunk/rust-tutorial against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pricelessjunk/rust-tutorial [INFO] finished tweaking git repo https://github.com/pricelessjunk/rust-tutorial [INFO] tweaked toml for git repo https://github.com/pricelessjunk/rust-tutorial written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pricelessjunk/rust-tutorial 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/pricelessjunk/rust-tutorial 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] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-0-tc2/source/chapter09/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] [stderr] warning: /workspace/builds/worker-0-tc2/source/chapter12/Cargo.toml: unused manifest key: package.descriptions [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking pricelessjunk/rust-tutorial against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pricelessjunk/rust-tutorial [INFO] finished tweaking git repo https://github.com/pricelessjunk/rust-tutorial [INFO] tweaked toml for git repo https://github.com/pricelessjunk/rust-tutorial written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pricelessjunk/rust-tutorial 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/pricelessjunk/rust-tutorial 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] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-0-tc2/source/chapter09/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] [stderr] warning: /workspace/builds/worker-0-tc2/source/chapter12/Cargo.toml: unused manifest key: package.descriptions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking pricelessjunk/rust-tutorial against try#b047d5f4496a7526d91d0dddea494c05853f2a7b for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pricelessjunk/rust-tutorial [INFO] finished tweaking git repo https://github.com/pricelessjunk/rust-tutorial [INFO] tweaked toml for git repo https://github.com/pricelessjunk/rust-tutorial written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pricelessjunk/rust-tutorial 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/pricelessjunk/rust-tutorial 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] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-0-tc2/source/chapter09/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] [stderr] warning: /workspace/builds/worker-0-tc2/source/chapter12/Cargo.toml: unused manifest key: package.descriptions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] e2ffc59a77173c0d16a3aa2a76c047b0860492aa2ceb897cd3b55e3d9507163c [INFO] running `Command { std: "docker" "start" "-a" "e2ffc59a77173c0d16a3aa2a76c047b0860492aa2ceb897cd3b55e3d9507163c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2ffc59a77173c0d16a3aa2a76c047b0860492aa2ceb897cd3b55e3d9507163c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2ffc59a77173c0d16a3aa2a76c047b0860492aa2ceb897cd3b55e3d9507163c", kill_on_drop: false }` [INFO] [stdout] e2ffc59a77173c0d16a3aa2a76c047b0860492aa2ceb897cd3b55e3d9507163c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 5c054d2fcd905aa1acb376a61c9e0949bd1473f9199e230a77be1b269f86e534 [INFO] running `Command { std: "docker" "start" "-a" "5c054d2fcd905aa1acb376a61c9e0949bd1473f9199e230a77be1b269f86e534", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/chapter09/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: /opt/rustwide/workdir/chapter12/Cargo.toml: unused manifest key: package.descriptions [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling cc v1.2.18 [INFO] [stderr] Checking litemap v0.7.5 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking dtoa v1.0.10 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking ego-tree v0.6.3 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking chapter12 v0.1.0 (/opt/rustwide/workdir/chapter12) [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking chapter11 v0.1.0 (/opt/rustwide/workdir/chapter11) [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> chapter12/src/main.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_config` is never used [INFO] [stdout] --> chapter12/src/main.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn parse_config(args: &[String]) -> Config { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> chapter12/src/main.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 75 | fn new(args: &[String]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapter10 v0.1.0 (/opt/rustwide/workdir/chapter10) [INFO] [stderr] Checking chapter13 v0.1.0 (/opt/rustwide/workdir/chapter13) [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> chapter12/src/main.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_config` is never used [INFO] [stdout] --> chapter12/src/main.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn parse_config(args: &[String]) -> Config { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> chapter12/src/main.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 75 | fn new(args: &[String]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> chapter10/src/traits.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | fn combined_func(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> chapter10/src/traits.rs:47:44 [INFO] [stdout] | [INFO] [stdout] 47 | fn combined_func_gen(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapter15 v0.1.0 (/opt/rustwide/workdir/chapter15) [INFO] [stderr] Compiling openssl-sys v0.9.107 [INFO] [stderr] Checking chapter19 v0.1.0 (/opt/rustwide/workdir/chapter19) [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapter10/src/traits.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | fn where_clause(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> chapter10/src/traits.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | fn where_clause(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> chapter10/src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct Point { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 31 | x: T, [INFO] [stdout] 32 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_genral` is never used [INFO] [stdout] --> chapter10/src/traits.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_genral(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combined_func` is never used [INFO] [stdout] --> chapter10/src/traits.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn combined_func(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combined_func_gen` is never used [INFO] [stdout] --> chapter10/src/traits.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn combined_func_gen(item: &T) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `where_clause` is never used [INFO] [stdout] --> chapter10/src/traits.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn where_clause(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_types` is never used [INFO] [stdout] --> chapter10/src/traits.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn return_types(flag: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_announcement` is never used [INFO] [stdout] --> chapter10/src/traits.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn longest_with_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapter06 v0.1.0 (/opt/rustwide/workdir/chapter06) [INFO] [stderr] Checking chapter20 v0.1.0 (/opt/rustwide/workdir/chapter20) [INFO] [stderr] Checking chapter04 v0.1.0 (/opt/rustwide/workdir/chapter04) [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> chapter19/src/main.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | let Point { x, y, z } = p; [INFO] [stdout] | ^ help: try ignoring the field: `z: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> chapter06/src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let four = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapter09 v0.1.0 (/opt/rustwide/workdir/chapter09) [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> chapter06/src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let six = IpAddrKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> chapter06/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let home = IpAddr::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> chapter06/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let x: Option = Some(6); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> chapter06/src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let y: i8 = 3; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapter05 v0.1.0 (/opt/rustwide/workdir/chapter05) [INFO] [stderr] Checking chapter18 v0.1.0 (/opt/rustwide/workdir/chapter18) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> chapter06/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | other => 0, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> chapter06/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | IpAddrKind::V4 => 4, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 36 | IpAddrKind::V6 => 6, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 37 | other => 0, [INFO] [stdout] | ^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> chapter06/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | _ => 0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> chapter06/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 35 | IpAddrKind::V4 => 4, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 36 | IpAddrKind::V6 => 6, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 37 | other => 0, [INFO] [stdout] 38 | _ => 0, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> chapter06/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | other => 0, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> chapter04/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let r = &mut s; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_immut` [INFO] [stdout] --> chapter04/src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let r_immut = &s; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_immut_2` [INFO] [stdout] --> chapter04/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let r_immut_2 = &s; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapter06/src/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 48 - V4(String), [INFO] [stdout] 48 + V4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapter06/src/main.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 49 - V6(String), [INFO] [stdout] 49 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `optVal` should have a snake case name [INFO] [stdout] --> chapter06/src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let optVal: Option = Some(5); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `opt_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangling_reference` is never used [INFO] [stdout] --> chapter04/src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn dangling_reference() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapter03 v0.1.0 (/opt/rustwide/workdir/chapter03) [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> chapter20/src/advanced_traits.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Iterator { [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] --> chapter20/src/advanced_traits.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Millimeters` is never constructed [INFO] [stdout] --> chapter20/src/advanced_traits.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct Millimeters(u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meters` is never constructed [INFO] [stdout] --> chapter20/src/advanced_traits.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct Meters(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OutlinePrint` is never used [INFO] [stdout] --> chapter20/src/advanced_traits.rs:103:7 [INFO] [stdout] | [INFO] [stdout] 103 | trait OutlinePrint: fmt::Display {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wrapper` is never constructed [INFO] [stdout] --> chapter20/src/advanced_traits.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | struct Wrapper(Vec); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `the_file` [INFO] [stdout] --> chapter09/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let the_file = match file_result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_the_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_file` [INFO] [stdout] --> chapter09/src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let another_file = File::open("something.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third_file` [INFO] [stdout] --> chapter09/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let third_file = File::open("lla").expect("Custom error message"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_third_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manual_panic` is never used [INFO] [stdout] --> chapter09/src/main.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn manual_panic() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_method` is never used [INFO] [stdout] --> chapter09/src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn unwrap_method() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_method` is never used [INFO] [stdout] --> chapter09/src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn expect_method() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_file` is never used [INFO] [stdout] --> chapter09/src/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn read_from_file() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_shorthand_user` [INFO] [stdout] --> chapter05/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let init_shorthand_user = User { active, name, age }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_shorthand_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_copy` [INFO] [stdout] --> chapter05/src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let user_copy = User { age: 37, ..user }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_copy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `active` is never read [INFO] [stdout] --> chapter05/src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 47 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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: unused import: `result` [INFO] [stdout] --> chapter03/src/main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapter08 v0.1.0 (/opt/rustwide/workdir/chapter08) [INFO] [stderr] Checking chapter07 v0.1.0 (/opt/rustwide/workdir/chapter07) [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> chapter04/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let r = &mut s; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_immut` [INFO] [stdout] --> chapter04/src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let r_immut = &s; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_immut_2` [INFO] [stdout] --> chapter04/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let r_immut_2 = &s; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangling_reference` is never used [INFO] [stdout] --> chapter04/src/main.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn dangling_reference() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> chapter03/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let x = 5; // immutable i32 [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] --> chapter03/src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut y = 4; //changing to mut [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spaces` [INFO] [stdout] --> chapter03/src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut spaces = spaces.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spaces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decimal` [INFO] [stdout] --> chapter03/src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let decimal: i32 = 98_222; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex` [INFO] [stdout] --> chapter03/src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let hex = 0xfff; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `octal` [INFO] [stdout] --> chapter03/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let octal = 0o77; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin` [INFO] [stdout] --> chapter03/src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let bin = 0b11110000; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte` [INFO] [stdout] --> chapter03/src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let byte: u8 = b'A'; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> chapter03/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let x = 2.0; //f64 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> chapter03/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let y: f32 = 2.0; //f32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapter03/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let t = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapter03/src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let f = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heart_eyed_cat` [INFO] [stdout] --> chapter03/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let heart_eyed_cat = 'ЁЯШ╗'; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> chapter03/src/main.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | let (a, b, c) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> chapter03/src/main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let (a, b, c) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> chapter03/src/main.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | let (a, b, c) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> chapter03/src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let months: [&str; 2] = ["Jan", "Feb"]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threeArr` [INFO] [stdout] --> chapter03/src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let threeArr = [3; 5]; // [3, 3, 3, 3, 3] [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threeArr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> chapter03/src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let element = arr[index]; // Throws error at runtime if size greater [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `absNumber` [INFO] [stdout] --> chapter03/src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let absNumber = if number < 0 { number * -1 } else { number }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> chapter03/src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let result = loop { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapter03/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut y = 4; //changing to mut [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapter03/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut spaces = " "; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapter03/src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut spaces = spaces.len(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `THREE` is never used [INFO] [stdout] --> chapter03/src/main.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | const THREE: u32 = 3; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threeArr` should have a snake case name [INFO] [stdout] --> chapter03/src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let threeArr = [3; 5]; // [3, 3, 3, 3, 3] [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `three_arr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `absNumber` should have a snake case name [INFO] [stdout] --> chapter03/src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let absNumber = if number < 0 { number * -1 } else { number }; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `abs_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapter16 v0.1.0 (/opt/rustwide/workdir/chapter16) [INFO] [stdout] warning: function `dangerous` is never used [INFO] [stdout] --> chapter20/src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | unsafe fn dangerous() {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs` is never used [INFO] [stdout] --> chapter20/src/main.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn abs(input: c_int) -> c_int; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Iterator` is never used [INFO] [stdout] --> chapter20/src/advanced_traits.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> chapter20/src/advanced_traits.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Millimeters` is never constructed [INFO] [stdout] --> chapter20/src/advanced_traits.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct Millimeters(u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meters` is never constructed [INFO] [stdout] --> chapter20/src/advanced_traits.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | struct Meters(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Trait1` is never used [INFO] [stdout] --> chapter20/src/advanced_traits.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | trait Trait1 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Trait2` is never used [INFO] [stdout] --> chapter20/src/advanced_traits.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | trait Trait2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Child` is never constructed [INFO] [stdout] --> chapter20/src/advanced_traits.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct Child; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `func_name` and `no_self_func` are never used [INFO] [stdout] --> chapter20/src/advanced_traits.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl Child { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 83 | fn func_name(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn no_self_func() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `OutlinePrint` is never used [INFO] [stdout] --> chapter20/src/advanced_traits.rs:103:7 [INFO] [stdout] | [INFO] [stdout] 103 | trait OutlinePrint: fmt::Display {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Wrapper` is never constructed [INFO] [stdout] --> chapter20/src/advanced_traits.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | struct Wrapper(Vec); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `outer_func` is never used [INFO] [stdout] --> chapter07/src/main.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn outer_func() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> chapter07/src/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn seat_at_table() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> chapter07/src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> chapter07/src/main.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> chapter07/src/main.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> chapter08/src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let v2 = vec![1, 2, 3]; // At the end of the scope this contents of the elements will also [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> chapter08/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let third: &i32 = &v[2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hindiStr` should have a snake case name [INFO] [stdout] --> chapter08/src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let hindiStr = String::from("рдирдорд╕реНрддреЗ"); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hindi_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> chapter19/src/main.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | let Point { x, y, z } = p; [INFO] [stdout] | ^ help: try ignoring the field: `z: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::str::::split_whitespace` that must be used [INFO] [stdout] --> chapter08/src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | text.split_whitespace(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the split string as an iterator, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 90 | let _ = text.split_whitespace(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init_shorthand_user` [INFO] [stdout] --> chapter05/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let init_shorthand_user = User { active, name, age }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_shorthand_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_copy` [INFO] [stdout] --> chapter05/src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let user_copy = User { age: 37, ..user }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_copy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, `mpsc`, `thread`, and `time::Duration` [INFO] [stdout] --> chapter16/src/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | sync::{Arc, Mutex, mpsc}, [INFO] [stdout] | ^^^ ^^^^^ ^^^^ [INFO] [stdout] 3 | thread, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `active` is never read [INFO] [stdout] --> chapter05/src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 47 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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] Checking try_out v0.1.0 (/opt/rustwide/workdir/try_out) [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> chapter03/src/main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> chapter03/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let x = 5; // immutable i32 [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] --> chapter03/src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut y = 4; //changing to mut [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spaces` [INFO] [stdout] --> chapter03/src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut spaces = spaces.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_spaces` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decimal` [INFO] [stdout] --> chapter03/src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let decimal: i32 = 98_222; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex` [INFO] [stdout] --> chapter03/src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let hex = 0xfff; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `octal` [INFO] [stdout] --> chapter03/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let octal = 0o77; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin` [INFO] [stdout] --> chapter03/src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let bin = 0b11110000; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte` [INFO] [stdout] --> chapter03/src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let byte: u8 = b'A'; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> chapter03/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let x = 2.0; //f64 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> chapter03/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let y: f32 = 2.0; //f32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapter03/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let t = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapter03/src/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let f = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heart_eyed_cat` [INFO] [stdout] --> chapter03/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let heart_eyed_cat = 'ЁЯШ╗'; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> chapter03/src/main.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | let (a, b, c) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> chapter03/src/main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let (a, b, c) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> chapter03/src/main.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | let (a, b, c) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> chapter03/src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let months: [&str; 2] = ["Jan", "Feb"]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threeArr` [INFO] [stdout] --> chapter03/src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let threeArr = [3; 5]; // [3, 3, 3, 3, 3] [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threeArr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> chapter03/src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let element = arr[index]; // Throws error at runtime if size greater [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `absNumber` [INFO] [stdout] --> chapter03/src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let absNumber = if number < 0 { number * -1 } else { number }; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> chapter03/src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let result = loop { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapter03/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut y = 4; //changing to mut [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapter03/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut spaces = " "; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapter03/src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut spaces = spaces.len(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threeArr` should have a snake case name [INFO] [stdout] --> chapter03/src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let threeArr = [3; 5]; // [3, 3, 3, 3, 3] [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `three_arr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `absNumber` should have a snake case name [INFO] [stdout] --> chapter03/src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let absNumber = if number < 0 { number * -1 } else { number }; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `abs_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `the_file` [INFO] [stdout] --> chapter09/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let the_file = match file_result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_the_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_file` [INFO] [stdout] --> chapter09/src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let another_file = File::open("something.txt").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third_file` [INFO] [stdout] --> chapter09/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let third_file = File::open("lla").expect("Custom error message"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_third_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> try_out/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manual_panic` is never used [INFO] [stdout] --> chapter09/src/main.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn manual_panic() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_method` is never used [INFO] [stdout] --> chapter09/src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn unwrap_method() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_method` is never used [INFO] [stdout] --> chapter09/src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn expect_method() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_file` is never used [INFO] [stdout] --> chapter09/src/main.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn read_from_file() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> try_out/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let s = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> chapter08/src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let v2 = vec![1, 2, 3]; // At the end of the scope this contents of the elements will also [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> chapter08/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let third: &i32 = &v[2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Try` is never constructed [INFO] [stdout] --> try_out/src/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Try { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hindiStr` should have a snake case name [INFO] [stdout] --> chapter08/src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let hindiStr = String::from("рдирдорд╕реНрддреЗ"); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `hindi_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stdout] warning: unused return value of `core::str::::split_whitespace` that must be used [INFO] [stdout] --> chapter08/src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | text.split_whitespace(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the split string as an iterator, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 90 | let _ = text.split_whitespace(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `outer_func` is never used [INFO] [stdout] --> chapter07/src/main.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn outer_func() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> chapter07/src/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn seat_at_table() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> chapter07/src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> chapter07/src/main.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> chapter07/src/main.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> chapter10/src/traits.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | fn combined_func(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> chapter10/src/traits.rs:47:44 [INFO] [stdout] | [INFO] [stdout] 47 | fn combined_func_gen(item: &T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapter10/src/traits.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | fn where_clause(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> chapter10/src/traits.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | fn where_clause(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> chapter10/src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct Point { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 31 | x: T, [INFO] [stdout] 32 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_genral` is never used [INFO] [stdout] --> chapter10/src/traits.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn notify_genral(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combined_func` is never used [INFO] [stdout] --> chapter10/src/traits.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn combined_func(item: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combined_func_gen` is never used [INFO] [stdout] --> chapter10/src/traits.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn combined_func_gen(item: &T) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `where_clause` is never used [INFO] [stdout] --> chapter10/src/traits.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn where_clause(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_types` is never used [INFO] [stdout] --> chapter10/src/traits.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn return_types(flag: bool) -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_announcement` is never used [INFO] [stdout] --> chapter10/src/traits.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn longest_with_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> try_out/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> try_out/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let s = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Try` is never constructed [INFO] [stdout] --> try_out/src/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Try { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> chapter06/src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let four = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> chapter06/src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let six = IpAddrKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> chapter06/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let home = IpAddr::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> chapter06/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let x: Option = Some(6); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> chapter06/src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let y: i8 = 3; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> chapter06/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | other => 0, [INFO] [stdout] | ^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> chapter06/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | IpAddrKind::V4 => 4, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 36 | IpAddrKind::V6 => 6, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 37 | other => 0, [INFO] [stdout] | ^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> chapter06/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | _ => 0, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> chapter06/src/main.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 35 | IpAddrKind::V4 => 4, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 36 | IpAddrKind::V6 => 6, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 37 | other => 0, [INFO] [stdout] 38 | _ => 0, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> chapter06/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | other => 0, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapter06/src/main.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 48 - V4(String), [INFO] [stdout] 48 + V4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapter06/src/main.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 49 - V6(String), [INFO] [stdout] 49 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `optVal` should have a snake case name [INFO] [stdout] --> chapter06/src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let optVal: Option = Some(5); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `opt_val` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking string_cache v0.8.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling derive_more v0.99.19 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking tokio v1.44.2 [INFO] [stderr] Checking cssparser v0.31.2 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking scraper v0.17.1 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking chapter17 v0.1.0 (/opt/rustwide/workdir/chapter17) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> chapter17/src/async_traits.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::pin::{self, Pin}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> chapter17/src/async_traits.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::pin::{self, Pin}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Future` is never used [INFO] [stdout] --> chapter17/src/async_traits.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Future { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Stream` is never used [INFO] [stdout] --> chapter17/src/async_traits.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | trait Stream { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Future` is never used [INFO] [stdout] --> chapter17/src/async_traits.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Future { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Stream` is never used [INFO] [stdout] --> chapter17/src/async_traits.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | trait Stream { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.69s [INFO] running `Command { std: "docker" "inspect" "5c054d2fcd905aa1acb376a61c9e0949bd1473f9199e230a77be1b269f86e534", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c054d2fcd905aa1acb376a61c9e0949bd1473f9199e230a77be1b269f86e534", kill_on_drop: false }` [INFO] [stdout] 5c054d2fcd905aa1acb376a61c9e0949bd1473f9199e230a77be1b269f86e534