[INFO] cloning repository https://github.com/shiinazuki/study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shiinazuki/study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiinazuki%2Fstudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiinazuki%2Fstudy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 691165d60e4d1ed8cffd7da5600384af829a6aaf [INFO] checking shiinazuki/study against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiinazuki%2Fstudy" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/shiinazuki/study [INFO] finished tweaking git repo https://github.com/shiinazuki/study [INFO] tweaked toml for git repo https://github.com/shiinazuki/study written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shiinazuki/study on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shiinazuki/study 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2bbd40cd12ef4d0674e3ec720a9d3300948c1a8859b750de237fd5c7b4ebdd69 [INFO] running `Command { std: "docker" "start" "-a" "2bbd40cd12ef4d0674e3ec720a9d3300948c1a8859b750de237fd5c7b4ebdd69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2bbd40cd12ef4d0674e3ec720a9d3300948c1a8859b750de237fd5c7b4ebdd69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bbd40cd12ef4d0674e3ec720a9d3300948c1a8859b750de237fd5c7b4ebdd69", kill_on_drop: false }` [INFO] [stdout] 2bbd40cd12ef4d0674e3ec720a9d3300948c1a8859b750de237fd5c7b4ebdd69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c788f5b75cb30cdc6be1971c0bbcc0b6da830365bab6d9e935f8a8630766ed1 [INFO] running `Command { std: "docker" "start" "-a" "1c788f5b75cb30cdc6be1971c0bbcc0b6da830365bab6d9e935f8a8630766ed1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking chapt17_rust_object v0.1.0 (/opt/rustwide/workdir/chapt17_rust_object) [INFO] [stderr] Checking chapt8_collections v0.1.0 (/opt/rustwide/workdir/chapt8_collections) [INFO] [stderr] Checking chapt20_web_server v0.1.0 (/opt/rustwide/workdir/chapt20_web_server) [INFO] [stderr] Checking chapt12_io_item v0.1.0 (/opt/rustwide/workdir/chapt12_io_item) [INFO] [stderr] Checking chapt11_test v0.1.0 (/opt/rustwide/workdir/chapt11_test) [INFO] [stderr] Checking chapt10_trait v0.1.0 (/opt/rustwide/workdir/chapt10_trait) [INFO] [stderr] Checking a_standard v0.1.0 (/opt/rustwide/workdir/a_standard) [INFO] [stderr] Checking chapt14_cargo v0.1.0 (/opt/rustwide/workdir/chapt14_cargo) [INFO] [stderr] Checking chapt3_variables v0.1.0 (/opt/rustwide/workdir/chapt3_variables) [INFO] [stderr] Checking chapt6_enum_match v0.1.0 (/opt/rustwide/workdir/chapt6_enum_match) [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` 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: fields `x` and `y` are never read [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct De { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 80 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 81 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `De` 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: methods `x` and `y` are never used [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 99 | impl Point { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 100 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn y(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 108 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 109 | fn distance_from_origin(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrNew` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 17 - V4(String), [INFO] [stdout] 17 + V4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrNew` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 18 - V6(String), [INFO] [stdout] 18 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrOnther` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 - V4(u8, u8, u8, u8), [INFO] [stdout] 23 + V4((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrOnther` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 24 - V6(String), [INFO] [stdout] 24 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 74 - Write(String), [INFO] [stdout] 74 + Write(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 72 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 73 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | Write(String), [INFO] [stdout] 75 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt18_patterns v0.1.0 (/opt/rustwide/workdir/chapt18_patterns) [INFO] [stderr] Checking chapt16_concurrent_program v0.1.0 (/opt/rustwide/workdir/chapt16_concurrent_program) [INFO] [stderr] Checking chapt5_struct v0.1.0 (/opt/rustwide/workdir/chapt5_struct) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> chapt11_test/src/lib.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> chapt11_test/src/lib.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> chapt11_test/src/lib.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 19 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guess` is never constructed [INFO] [stdout] --> chapt11_test/src/lib.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> chapt11_test/src/lib.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Guess { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(value: i32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> chapt17_rust_object/src/lib.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> chapt8_collections/src/vect.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapt8_collections/src/vect.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9]; [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] --> chapt8_collections/src/vect.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut v = vec![1, 2, 3, 4, 5, 6]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_slice_flatten` has been stable since 1.87.0 and no longer requires an attribute to enable [INFO] [stdout] --> a_standard/src/bin/vect.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | const_slice_flatten, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_as_chunks` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> a_standard/src/bin/vect.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | slice_as_chunks [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `extract_if` has been stable since 1.87.0 and no longer requires an attribute to enable [INFO] [stdout] --> a_standard/src/bin/vect.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | extract_if, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `vec_pop_if` has been stable since 1.86.0 and no longer requires an attribute to enable [INFO] [stdout] --> a_standard/src/bin/vect.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | vec_pop_if, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` 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] 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] 57 - Int(i32), [INFO] [stdout] 57 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 58 - Float(f64), [INFO] [stdout] 58 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 59 - Text(String), [INFO] [stdout] 59 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> a_standard/src/bin/vect.rs:707:37 [INFO] [stdout] | [INFO] [stdout] 707 | let evens = numbers.extract_if(|x| *x % 2 == 0).collect::>(); [INFO] [stdout] | ^ -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 707 | let evens = numbers.extract_if(|x: /* Type */| *x % 2 == 0).collect::>(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> a_standard/src/bin/vect.rs:707:25 [INFO] [stdout] | [INFO] [stdout] 707 | let evens = numbers.extract_if(|x| *x % 2 == 0).collect::>(); [INFO] [stdout] | ^^^^^^^^^^----------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 707 | let evens = numbers.extract_if(|x| *x % 2 == 0, /* filter */).collect::>(); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt15_smart_pointer v0.1.0 (/opt/rustwide/workdir/chapt15_smart_pointer) [INFO] [stderr] Checking chapt9_error v0.1.0 (/opt/rustwide/workdir/chapt9_error) [INFO] [stdout] warning: unnecessary braces around function argument [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | label: String::from({ "Ok" }), [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 7 - label: String::from({ "Ok" }), [INFO] [stdout] 7 + label: String::from("Ok"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Screen_Two` should have an upper camel case name [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Screen_Two { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `ScreenTwo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around function argument [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | label: String::from({ "Ok" }), [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 7 - label: String::from({ "Ok" }), [INFO] [stdout] 7 + label: String::from("Ok"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Screen_Two` should have an upper camel case name [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Screen_Two { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `ScreenTwo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen::components` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub components: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Screen::components` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen_Two` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Screen_Two { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `Screen_Two` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen_Two` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | / impl Screen_Two [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: Draw, [INFO] [stdout] | |____________^ implementation `Screen_Two` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `username`, and `email` are never read [INFO] [stdout] --> chapt5_struct/src/bin/struct.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | struct Person<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 101 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 102 | username: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | email: &'a str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen::components` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub components: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Screen::components` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen_Two` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Screen_Two { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `Screen_Two` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen_Two` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | / impl Screen_Two [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: Draw, [INFO] [stdout] | |____________^ implementation `Screen_Two` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` 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: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrNew` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 17 - V4(String), [INFO] [stdout] 17 + V4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrNew` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 18 - V6(String), [INFO] [stdout] 18 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrOnther` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 - V4(u8, u8, u8, u8), [INFO] [stdout] 23 + V4((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrOnther` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 24 - V6(String), [INFO] [stdout] 24 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 74 - Write(String), [INFO] [stdout] 74 + Write(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 72 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 73 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | Write(String), [INFO] [stdout] 75 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt13_closures_iterators v0.1.0 (/opt/rustwide/workdir/chapt13_closures_iterators) [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/refcell.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | Cons(T, Rc>), [INFO] [stdout] | ---- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` 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] 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] 69 - Cons(T, Rc>), [INFO] [stdout] 69 + Cons(T, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `age` are never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/refcell.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 78 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 79 | age: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> chapt13_closures_iterators/src/bin/closures.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 122 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 123 | width: u32, [INFO] [stdout] 124 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` 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 chapt1_hello_world v0.1.0 (/opt/rustwide/workdir/chapt1_hello_world) [INFO] [stdout] warning: variants `Penny` and `Nickel` are never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/match.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 6 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` 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: variant `Alabama` is never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/match.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 14 | Alabama, [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] [INFO] [stdout] [INFO] [stdout] warning: the feature `option_get_or_insert_default` has been stable since 1.83.0 and no longer requires an attribute to enable [INFO] [stdout] --> a_standard/src/bin/option.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(option_get_or_insert_default)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `option_get_or_insert_default` has been stable since 1.83.0 and no longer requires an attribute to enable [INFO] [stdout] --> a_standard/src/bin/option.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(option_get_or_insert_default)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt4_ownership v0.1.0 (/opt/rustwide/workdir/chapt4_ownership) [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:146:32 [INFO] [stdout] | [INFO] [stdout] 146 | fn longest_one<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Import` is never constructed [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | struct Import<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 107 | impl<'a, 'b> Import<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 108 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn announce_and_return_part(&'a self, announcement: &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 134 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_one` is never used [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn longest_one<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `u32: Neg` is not satisfied [INFO] [stdout] --> a_standard/src/bin/vect.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 226 | let v = vec![-1, 0, 1]; [INFO] [stdout] | ^^ the trait `Neg` is not implemented for `u32` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Neg`: [INFO] [stdout] &f128 [INFO] [stdout] &f16 [INFO] [stdout] &f32 [INFO] [stdout] &f64 [INFO] [stdout] &i128 [INFO] [stdout] &i16 [INFO] [stdout] &i32 [INFO] [stdout] &i64 [INFO] [stdout] and 12 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0282. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `a_standard` (bin "vect" test) due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:146:32 [INFO] [stdout] | [INFO] [stdout] 146 | fn longest_one<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Import` is never constructed [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | struct Import<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 107 | impl<'a, 'b> Import<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 108 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn announce_and_return_part(&'a self, announcement: &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 134 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_one` is never used [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn longest_one<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> chapt11_test/src/lib.rs:61:36 [INFO] [stdout] | [INFO] [stdout] 61 | use std::{thread, time::{self, Duration}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> chapt11_test/src/lib.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> chapt11_test/src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 37 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `username`, and `email` are never read [INFO] [stdout] --> chapt5_struct/src/bin/struct.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | struct Person<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 101 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 102 | username: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | email: &'a str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:100:57 [INFO] [stdout] | [INFO] [stdout] 100 | 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:100:64 [INFO] [stdout] | [INFO] [stdout] 100 | 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: unused variable: `t` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:103:31 [INFO] [stdout] | [INFO] [stdout] 103 | fn _some_function_siple(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] --> chapt10_trait/src/bin/trait.rs:103:38 [INFO] [stdout] | [INFO] [stdout] 103 | fn _some_function_siple(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: unused variable: `summary` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | fn _notify_more(summary: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | fn _notify_more_bound(summary: &T) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary1` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | fn _notify_second(summary1: &impl Summary, summary2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary2` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:127:44 [INFO] [stdout] | [INFO] [stdout] 127 | fn _notify_second(summary1: &impl Summary, summary2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary1` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | fn _notify_same(summary1: &T, summary2: &T) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary2` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:131:43 [INFO] [stdout] | [INFO] [stdout] 131 | fn _notify_same(summary1: &T, summary2: &T) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 45 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 52 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 154 | struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 158 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 171 | struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 174 | reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 175 | retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> chapt17_rust_object/src/lib.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:100:57 [INFO] [stdout] | [INFO] [stdout] 100 | 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:100:64 [INFO] [stdout] | [INFO] [stdout] 100 | 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: unused variable: `t` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:103:31 [INFO] [stdout] | [INFO] [stdout] 103 | fn _some_function_siple(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] --> chapt10_trait/src/bin/trait.rs:103:38 [INFO] [stdout] | [INFO] [stdout] 103 | fn _some_function_siple(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: unused variable: `summary` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | fn _notify_more(summary: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | fn _notify_more_bound(summary: &T) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary1` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | fn _notify_second(summary1: &impl Summary, summary2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary2` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:127:44 [INFO] [stdout] | [INFO] [stdout] 127 | fn _notify_second(summary1: &impl Summary, summary2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary1` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | fn _notify_same(summary1: &T, summary2: &T) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary2` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:131:43 [INFO] [stdout] | [INFO] [stdout] 131 | fn _notify_same(summary1: &T, summary2: &T) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 45 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 52 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 154 | struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 158 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 171 | struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 174 | reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 175 | retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1c788f5b75cb30cdc6be1971c0bbcc0b6da830365bab6d9e935f8a8630766ed1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c788f5b75cb30cdc6be1971c0bbcc0b6da830365bab6d9e935f8a8630766ed1", kill_on_drop: false }` [INFO] [stdout] 1c788f5b75cb30cdc6be1971c0bbcc0b6da830365bab6d9e935f8a8630766ed1