[INFO] cloning repository https://github.com/masa-matt/rust-tutrial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/masa-matt/rust-tutrial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasa-matt%2Frust-tutrial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasa-matt%2Frust-tutrial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f572f11c89d483c1e75e90de7350b967c35b7b45 [INFO] checking masa-matt/rust-tutrial against try#0cb362313295507a2f4321c0e30cea0168f2fe71 for pr-138961-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasa-matt%2Frust-tutrial" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/masa-matt/rust-tutrial [INFO] finished tweaking git repo https://github.com/masa-matt/rust-tutrial [INFO] tweaked toml for git repo https://github.com/masa-matt/rust-tutrial written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/masa-matt/rust-tutrial on toolchain 0cb362313295507a2f4321c0e30cea0168f2fe71 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/masa-matt/rust-tutrial 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" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking masa-matt/rust-tutrial against try#0cb362313295507a2f4321c0e30cea0168f2fe71 for pr-138961-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasa-matt%2Frust-tutrial" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/masa-matt/rust-tutrial [INFO] finished tweaking git repo https://github.com/masa-matt/rust-tutrial [INFO] tweaked toml for git repo https://github.com/masa-matt/rust-tutrial written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/masa-matt/rust-tutrial on toolchain 0cb362313295507a2f4321c0e30cea0168f2fe71 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/masa-matt/rust-tutrial 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" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded az v1.2.1 [INFO] [stderr] Downloaded rug v1.19.0 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.42.1 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.42.1 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.42.1 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.42.1 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.42.1 [INFO] [stderr] Downloaded windows_i686_gnu v0.42.1 [INFO] [stderr] Downloaded windows_i686_msvc v0.42.1 [INFO] [stderr] Downloaded gmp-mpfr-sys v1.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65ac3ed823455789df282c98e7d19dd934bf98af2d9fada7f2240f0fa6925143 [INFO] running `Command { std: "docker" "start" "-a" "65ac3ed823455789df282c98e7d19dd934bf98af2d9fada7f2240f0fa6925143", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65ac3ed823455789df282c98e7d19dd934bf98af2d9fada7f2240f0fa6925143", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65ac3ed823455789df282c98e7d19dd934bf98af2d9fada7f2240f0fa6925143", kill_on_drop: false }` [INFO] [stdout] 65ac3ed823455789df282c98e7d19dd934bf98af2d9fada7f2240f0fa6925143 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93f15b54fc7862ad7c2ec9f874ed908494fa78244d1ee44dde0ba30e783333d4 [INFO] running `Command { std: "docker" "start" "-a" "93f15b54fc7862ad7c2ec9f874ed908494fa78244d1ee44dde0ba30e783333d4", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling gmp-mpfr-sys v1.5.0 [INFO] [stderr] Compiling az v1.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling rug v1.19.0 [INFO] [stderr] Checking ch11-03-test-organization v0.1.0 (/opt/rustwide/workdir/ch11/ch11-03-test-organization) [INFO] [stderr] Checking ch11-01-writing-tests v0.1.0 (/opt/rustwide/workdir/ch11/ch11-01-writing-tests) [INFO] [stderr] Checking ch07-03-paths-for-referring-to-an-item-in-the-module-tree v0.1.0 (/opt/rustwide/workdir/ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree) [INFO] [stderr] Checking ch08-01-vectors v0.1.0 (/opt/rustwide/workdir/ch08/ch08-01-vectors) [INFO] [stderr] Checking ch10-02-traits v0.1.0 (/opt/rustwide/workdir/ch10/ch10-02-traits) [INFO] [stderr] Checking ch03-04-comments v0.1.0 (/opt/rustwide/workdir/ch03/ch03-04-comments) [INFO] [stderr] Checking ch05-02-example-structs v0.1.0 (/opt/rustwide/workdir/ch05/ch05-02-example-structs) [INFO] [stderr] Checking ch04-01-what-is-ownership v0.1.0 (/opt/rustwide/workdir/ch04/ch04-01-what-is-ownership) [INFO] [stderr] Checking ch06-02-match v0.1.0 (/opt/rustwide/workdir/ch06/ch06-02-match) [INFO] [stderr] Checking ch07-02-defining-modules-to-control-scope-and-privacy v0.1.0 (/opt/rustwide/workdir/ch07/ch07-02-defining-modules-to-control-scope-and-privacy) [INFO] [stderr] Checking ch08-02-strings v0.1.0 (/opt/rustwide/workdir/ch08/ch08-02-strings) [INFO] [stdout] warning: unused variable: `lucky_number` [INFO] [stdout] --> ch03/ch03-04-comments/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let lucky_number = 7; // I’m feeling lucky today [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lucky_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lucky_number` [INFO] [stdout] --> ch03/ch03-04-comments/src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let lucky_number = 7; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lucky_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let s = data.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let s = "initial contents".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let s = String::from("initial contents"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let hello = String::from("السلام عليكم"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let hello = String::from("Dobrý den"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let hello = String::from("Hello"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let hello = String::from("שָׁלוֹם"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let hello = String::from("नमस्ते"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let hello = String::from("こんにちは"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let hello = String::from("안녕하세요"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let hello = String::from("你好"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let hello = String::from("Olá"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let hello = String::from("Здравствуйте"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let hello = String::from("Hola"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> ch08/ch08-02-strings/src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let s1 = String::from("hello"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deliver_order` is never used [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn deliver_order() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_incorrect_order` is never used [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch05-01-defining-structs v0.1.0 (/opt/rustwide/workdir/ch05/ch05-01-defining-structs) [INFO] [stdout] warning: function `cook_order` is never used [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch04-03-slices v0.1.0 (/opt/rustwide/workdir/ch04/ch04-03-slices) [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Breakfast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 49 | pub toast: String, [INFO] [stdout] 50 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch03-02-data-types v0.1.0 (/opt/rustwide/workdir/ch03/ch03-02-data-types) [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | fn some_function(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:94:31 [INFO] [stdout] | [INFO] [stdout] 94 | fn some_function(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: function `some_function` is never used [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn some_function(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_trait` is never used [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn return_trait() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 167 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 172 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 173 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> ch04/ch04-01-what-is-ownership/src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let s1 = gives_ownership(); // gives_ownership moves its return [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user2` [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let user2 = build_user(String::from("someone@example.com"), String::from("someone")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user3` [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let user3 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> ch04/ch04-01-what-is-ownership/src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let s3 = takes_and_gives_back(s2); // s2 is moved into [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let black = Color(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let origin = Point(0, 0, 0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let user = UserWithReferences { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 24 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 42 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserWithReferences` is never constructed [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | struct UserWithReferences { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `struct_with_references` is never used [INFO] [stdout] --> ch05/ch05-01-defining-structs/src/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn struct_with_references() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `plant` [INFO] [stdout] --> ch07/ch07-02-defining-modules-to-control-scope-and-privacy/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let plant = Asparagus {}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_plant` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> ch06/ch06-02-match/src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> ch06/ch06-02-match/src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let none = plus_one(None); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `None` [INFO] [stdout] | [INFO] [stdout] 62 - let none = plus_one(None); [INFO] [stdout] 62 + let std::prelude::v1::None = plus_one(None); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 62 | let _none = plus_one(None); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> ch06/ch06-02-match/src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 37 | Alabama, [INFO] [stdout] 38 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel` and `Dime` are never constructed [INFO] [stdout] --> ch06/ch06-02-match/src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 43 | Penny, [INFO] [stdout] 44 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `does_not_exist` [INFO] [stdout] --> ch08/ch08-01-vectors/src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let does_not_exist = v.get(100); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_does_not_exist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> ch08/ch08-01-vectors/src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mut v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> ch08/ch08-01-vectors/src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch08/ch08-01-vectors/src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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] 63 - Int(i32), [INFO] [stdout] 63 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch08/ch08-01-vectors/src/main.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 64 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 64 - Float(f64), [INFO] [stdout] 64 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch08/ch08-01-vectors/src/main.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 65 - Text(String), [INFO] [stdout] 65 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut s = String::from("hello world"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let s = "Hello, world!"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let word = string_slices_as_parameters(&my_string[0..6]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let word = string_slices_as_parameters(&my_string[..]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let word = first_word(&my_string); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let word = string_slices_as_parameters(&my_string_literal[0..6]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let word = string_slices_as_parameters(&my_string_literal[..]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let word = string_slices_as_parameters(my_string_literal); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let slice = &s[0..2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let slice = &s[3..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> ch04/ch04-03-slices/src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let slice = &s[0..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> ch11/ch11-01-writing-tests/src/lib.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> ch11/ch11-01-writing-tests/src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 29 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch08-03-hash-maps v0.1.0 (/opt/rustwide/workdir/ch08/ch08-03-hash-maps) [INFO] [stderr] Checking ch06-03-if-let v0.1.0 (/opt/rustwide/workdir/ch06/ch06-03-if-let) [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> ch04/ch04-01-what-is-ownership/src/main.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let s1 = gives_ownership(); // gives_ownership moves its return [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> ch04/ch04-01-what-is-ownership/src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let s3 = takes_and_gives_back(s2); // s2 is moved into [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> ch06/ch06-02-match/src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> ch06/ch06-02-match/src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let none = plus_one(None); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `None` [INFO] [stdout] | [INFO] [stdout] 62 - let none = plus_one(None); [INFO] [stdout] 62 + let std::prelude::v1::None = plus_one(None); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 62 | let _none = plus_one(None); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> ch06/ch06-02-match/src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 37 | Alabama, [INFO] [stdout] 38 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel` and `Dime` are never constructed [INFO] [stdout] --> ch06/ch06-02-match/src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 43 | Penny, [INFO] [stdout] 44 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch09-02-recoverable-errors-with-result v0.1.0 (/opt/rustwide/workdir/ch09/ch09-02-recoverable-errors-with-result) [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | fn some_function(t: &T, u: &U) -> i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> ch06/ch06-03-if-let/src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut count = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> ch06/ch06-03-if-let/src/main.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | _ => count += 1, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> ch06/ch06-03-if-let/src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut count = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> ch06/ch06-03-if-let/src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | count += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alabama` and `Alaska` are never constructed [INFO] [stdout] --> ch06/ch06-03-if-let/src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum UsState { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 38 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 39 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> ch06/ch06-03-if-let/src/main.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 44 | Penny, [INFO] [stdout] 45 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 46 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | Quarter(UsState), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:94:31 [INFO] [stdout] | [INFO] [stdout] 94 | fn some_function(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: function `some_function` is never used [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn some_function(t: &T, u: &U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_trait` is never used [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn return_trait() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 167 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> ch10/ch10-02-traits/src/main.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 172 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 173 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch07-05-separating-modules-into-different-files v0.1.0 (/opt/rustwide/workdir/ch07/ch07-05-separating-modules-into-different-files) [INFO] [stderr] Checking ch07-04-bringing-paths-into-scope-with-the-use-keyword v0.1.0 (/opt/rustwide/workdir/ch07/ch07-04-bringing-paths-into-scope-with-the-use-keyword) [INFO] [stderr] Checking ch05-03-method-syntax v0.1.0 (/opt/rustwide/workdir/ch05/ch05-03-method-syntax) [INFO] [stdout] warning: unused variable: `lucky_number` [INFO] [stdout] --> ch03/ch03-04-comments/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let lucky_number = 7; // I’m feeling lucky today [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lucky_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lucky_number` [INFO] [stdout] --> ch03/ch03-04-comments/src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let lucky_number = 7; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lucky_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch09-03-to-panic-or-not-to-panic v0.1.0 (/opt/rustwide/workdir/ch09/ch09-03-to-panic-or-not-to-panic) [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> ch08/ch08-03-hash-maps/src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let scores: HashMap<_, _> = teams.iter().zip(initial_scores.iter()).collect(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> ch09/ch09-03-to-panic-or-not-to-panic/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ch07-04-bringing-paths-into-scope-with-the-use-keyword` (lib) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `plant` [INFO] [stdout] --> ch07/ch07-02-defining-modules-to-control-scope-and-privacy/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let plant = Asparagus {}; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_plant` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `io` is defined multiple times [INFO] [stdout] --> ch07/ch07-04-bringing-paths-into-scope-with-the-use-keyword/src/lib.rs:68:26 [INFO] [stdout] | [INFO] [stdout] 43 | use std::io; [INFO] [stdout] | ------- previous import of the module `io` here [INFO] [stdout] ... [INFO] [stdout] 68 | use std::{cmp::Ordering, io}; [INFO] [stdout] | ^^ `io` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `io` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `io` is defined multiple times [INFO] [stdout] --> ch07/ch07-04-bringing-paths-into-scope-with-the-use-keyword/src/lib.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 43 | use std::io; [INFO] [stdout] | ------- previous import of the module `io` here [INFO] [stdout] ... [INFO] [stdout] 73 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^-- [INFO] [stdout] | | [INFO] [stdout] | `io` reimported here [INFO] [stdout] | help: remove unnecessary import [INFO] [stdout] | [INFO] [stdout] = note: `io` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp::Ordering` and `io` [INFO] [stdout] --> ch07/ch07-04-bringing-paths-into-scope-with-the-use-keyword/src/lib.rs:68:11 [INFO] [stdout] | [INFO] [stdout] 68 | use std::{cmp::Ordering, io}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> ch07/ch07-04-bringing-paths-into-scope-with-the-use-keyword/src/lib.rs:73:15 [INFO] [stdout] | [INFO] [stdout] 73 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::*` [INFO] [stdout] --> ch07/ch07-04-bringing-paths-into-scope-with-the-use-keyword/src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | use std::collections::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let greeting_file = match greeting_file_result { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let f = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let f = File::open("hello.txt").expect("Failed to open hello.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_result` is never used [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn type_result() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_handling` is never used [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn error_handling() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_unwrap` is never used [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn error_unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_expected` is never used [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn error_expected() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_shortcut` is never used [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn error_shortcut() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error_shortcut_shorter` is never used [INFO] [stdout] --> ch09/ch09-02-recoverable-errors-with-result/src/main.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn error_shortcut_shorter() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> ch09/ch09-03-to-panic-or-not-to-panic/src/main.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | let secret_number = rand::thread_rng().gen_range(1..=100); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> ch09/ch09-03-to-panic-or-not-to-panic/src/main.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let home: IpAddr = "127.0.0.1" [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ch09-03-to-panic-or-not-to-panic` (bin "ch09-03-to-panic-or-not-to-panic") due to 2 previous errors; 1 warning emitted [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deliver_order` is never used [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn deliver_order() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_incorrect_order` is never used [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cook_order` is never used [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> ch07/ch07-03-paths-for-referring-to-an-item-in-the-module-tree/src/lib.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Breakfast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 49 | pub toast: String, [INFO] [stdout] 50 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "93f15b54fc7862ad7c2ec9f874ed908494fa78244d1ee44dde0ba30e783333d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93f15b54fc7862ad7c2ec9f874ed908494fa78244d1ee44dde0ba30e783333d4", kill_on_drop: false }` [INFO] [stdout] 93f15b54fc7862ad7c2ec9f874ed908494fa78244d1ee44dde0ba30e783333d4