[INFO] cloning repository https://github.com/sdobz/rust-follow-along [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sdobz/rust-follow-along" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdobz%2Frust-follow-along", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdobz%2Frust-follow-along'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 15471338aa916f44df49638cd48fa6ff21536e5e [INFO] checking sdobz/rust-follow-along/15471338aa916f44df49638cd48fa6ff21536e5e against master#cccf075eba88363269e8589ebb8d40874cc542d8 for pr-142681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsdobz%2Frust-follow-along" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sdobz/rust-follow-along [INFO] finished tweaking git repo https://github.com/sdobz/rust-follow-along [INFO] tweaked toml for git repo https://github.com/sdobz/rust-follow-along written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sdobz/rust-follow-along on toolchain cccf075eba88363269e8589ebb8d40874cc542d8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cccf075eba88363269e8589ebb8d40874cc542d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sdobz/rust-follow-along 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" "+cccf075eba88363269e8589ebb8d40874cc542d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-6-tc1/source/ch19_advancedfeatures/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+cccf075eba88363269e8589ebb8d40874cc542d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0d82fcd39cfe84286797d995ea4fb1c6373534061908bb906d2bdc6ba860943 [INFO] running `Command { std: "docker" "start" "-a" "c0d82fcd39cfe84286797d995ea4fb1c6373534061908bb906d2bdc6ba860943", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0d82fcd39cfe84286797d995ea4fb1c6373534061908bb906d2bdc6ba860943", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0d82fcd39cfe84286797d995ea4fb1c6373534061908bb906d2bdc6ba860943", kill_on_drop: false }` [INFO] [stdout] c0d82fcd39cfe84286797d995ea4fb1c6373534061908bb906d2bdc6ba860943 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+cccf075eba88363269e8589ebb8d40874cc542d8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48f73cf2bddf135986a9425d417d47b1057fbbc8d7528bda627111d967cfa803 [INFO] running `Command { std: "docker" "start" "-a" "48f73cf2bddf135986a9425d417d47b1057fbbc8d7528bda627111d967cfa803", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/ch19_advancedfeatures/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Checking ch13b_minigrep2 v0.1.0 (/opt/rustwide/workdir/ch13b_minigrep2) [INFO] [stderr] Checking ch07_modules v0.1.0 (/opt/rustwide/workdir/ch07_modules) [INFO] [stderr] Checking ch17_objectoriented v0.1.0 (/opt/rustwide/workdir/ch17_objectoriented) [INFO] [stderr] Checking ch20_webserver v0.1.0 (/opt/rustwide/workdir/ch20_webserver) [INFO] [stderr] Checking ch12_minigrep v0.1.0 (/opt/rustwide/workdir/ch12_minigrep) [INFO] [stderr] Checking ch11_tests v0.1.0 (/opt/rustwide/workdir/ch11_tests) [INFO] [stderr] Checking ch10_generics v0.1.0 (/opt/rustwide/workdir/ch10_generics) [INFO] [stderr] Checking ch18_patterns v0.1.0 (/opt/rustwide/workdir/ch18_patterns) [INFO] [stderr] Checking ch08_collections v0.1.0 (/opt/rustwide/workdir/ch08_collections) [INFO] [stderr] Checking ch01_getting_started v0.1.0 (/opt/rustwide/workdir/ch01_getting_started) [INFO] [stderr] Checking ch03c_branches v0.1.0 (/opt/rustwide/workdir/ch03c_branches) [INFO] [stderr] Checking ch04b_slices v0.1.0 (/opt/rustwide/workdir/ch04b_slices) [INFO] [stderr] Checking ch19_advacedfeatures v0.1.0 (/opt/rustwide/workdir/ch19_advancedfeatures) [INFO] [stderr] Checking ch06_enums v0.1.0 (/opt/rustwide/workdir/ch06_enums) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> ch18_patterns/src/main.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | 'a' ... 'j' => println!("Early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> ch18_patterns/src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | 'k' ... 'z' => println!("Late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> ch18_patterns/src/main.rs:221:50 [INFO] [stdout] | [INFO] [stdout] 221 | HelloMessage::Hello { id: id_variable @ 3...7 } => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> ch18_patterns/src/main.rs:225:37 [INFO] [stdout] | [INFO] [stdout] 225 | HelloMessage::Hello { id: 10...12 } => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Context` is never constructed [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Context<'s>(&'s str); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Parser<'c, 's: 'c> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse` is never used [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'c, 's> Parser<'c, 's> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 9 | fn parse(&self) -> Result<(), &'s str> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_context` is never used [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn parse_context(context: Context) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `diameter` is never read [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct Ball<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 21 | diameter: &'a i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrWrap` is never constructed [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct StrWrap<'a>(&'a str); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn foo<'a>(string: &'a str) -> StrWrap<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo_anon_lifetime` is never used [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn foo_anon_lifetime(string: &str) -> StrWrap<'_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | fn parse_context(context: Context) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 14 | fn parse_context(context: Context<'_>) -> Result<(), &str> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> ch19_advancedfeatures/src/unsafe_demo.rs:41:40 [INFO] [stdout] | [INFO] [stdout] 41 | println!("Counter is now: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch09_errors v0.1.0 (/opt/rustwide/workdir/ch09_errors) [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> ch11_tests/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 22 | value: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `setting_value` is never read [INFO] [stdout] --> ch18_patterns/src/main.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | setting_value = new_setting_value; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch13a_functional v0.1.0 (/opt/rustwide/workdir/ch13a_functional) [INFO] [stderr] Checking ch03b_functions v0.1.0 (/opt/rustwide/workdir/ch03b_functions) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> ch18_patterns/src/main.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | 'a' ... 'j' => println!("Early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> ch18_patterns/src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | 'k' ... 'z' => println!("Late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> ch18_patterns/src/main.rs:221:50 [INFO] [stdout] | [INFO] [stdout] 221 | HelloMessage::Hello { id: id_variable @ 3...7 } => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> ch18_patterns/src/main.rs:225:37 [INFO] [stdout] | [INFO] [stdout] 225 | HelloMessage::Hello { id: 10...12 } => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> ch11_tests/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 22 | value: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch03a_variables v0.1.0 (/opt/rustwide/workdir/ch03a_variables) [INFO] [stdout] warning: fields `y` and `z` are never read [INFO] [stdout] --> ch18_patterns/src/main.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 255 | struct Point3D { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 256 | x: i32, [INFO] [stdout] 257 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 258 | z: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> ch18_patterns/src/main.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 261 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 262 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 263 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 264 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rgb` is never constructed [INFO] [stdout] --> ch18_patterns/src/main.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 268 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 269 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> ch06_enums/src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 28 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 29 | Alabama, [INFO] [stdout] 30 | 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch04a_ownership v0.1.0 (/opt/rustwide/workdir/ch04a_ownership) [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> ch06_enums/src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 35 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | Dime, [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] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> ch10_generics/src/traits.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> ch10_generics/src/traits.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 51 | pub username: String, [INFO] [stdout] 52 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 53 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_POINTS` is never used [INFO] [stdout] --> ch03a_variables/src/main.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const MAX_POINTS: u128 = 200_000; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `setting_value` is never read [INFO] [stdout] --> ch18_patterns/src/main.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | setting_value = new_setting_value; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `z` are never read [INFO] [stdout] --> ch18_patterns/src/main.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 255 | struct Point3D { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 256 | x: i32, [INFO] [stdout] 257 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 258 | z: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> ch18_patterns/src/main.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 261 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 262 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 263 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 264 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rgb` is never constructed [INFO] [stdout] --> ch18_patterns/src/main.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 268 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 269 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch05_structs v0.1.0 (/opt/rustwide/workdir/ch05_structs) [INFO] [stderr] Checking ch16_concurrency v0.1.0 (/opt/rustwide/workdir/ch16_concurrency) [INFO] [stderr] Checking ch15_smartpointers v0.1.0 (/opt/rustwide/workdir/ch15_smartpointers) [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> ch17_objectoriented/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 9 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> ch17_objectoriented/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 9 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> ch10_generics/src/traits.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Context` is never constructed [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Context<'s>(&'s str); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Parser<'c, 's: 'c> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse` is never used [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'c, 's> Parser<'c, 's> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] 9 | fn parse(&self) -> Result<(), &'s str> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_context` is never used [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn parse_context(context: Context) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `diameter` is never read [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct Ball<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 21 | diameter: &'a i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrWrap` is never constructed [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct StrWrap<'a>(&'a str); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn foo<'a>(string: &'a str) -> StrWrap<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo_anon_lifetime` is never used [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn foo_anon_lifetime(string: &str) -> StrWrap<'_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> ch19_advancedfeatures/src/lifetimes.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | fn parse_context(context: Context) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 14 | fn parse_context(context: Context<'_>) -> Result<(), &str> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> ch19_advancedfeatures/src/unsafe_demo.rs:41:40 [INFO] [stdout] | [INFO] [stdout] 41 | println!("Counter is now: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> ch13a_functional/src/iterators.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> ch13a_functional/src/iterators.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> ch13a_functional/src/iterators.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 38 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> ch10_generics/src/traits.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 51 | pub username: String, [INFO] [stdout] 52 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 53 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 54 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_POINTS` is never used [INFO] [stdout] --> ch03a_variables/src/main.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const MAX_POINTS: u128 = 200_000; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RcRefCellList` 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 fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 45 - Cons(Rc>, Rc), [INFO] [stdout] 45 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TailList` 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] 51 - Cons(i32, RefCell>), [INFO] [stdout] 51 + Cons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> ch15_smartpointers/src/refcount.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RcList` 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] 5 - Cons(i32, Rc), [INFO] [stdout] 5 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> ch15_smartpointers/src/weakrc.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | parent: RefCell>, [INFO] [stdout] 8 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(messenger: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> ch06_enums/src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 28 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 29 | Alabama, [INFO] [stdout] 30 | 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> ch06_enums/src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 35 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | Dime, [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] [INFO] [stdout] [INFO] [stdout] warning: trait `Messenger` is never used [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Messenger { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LimitTracker` is never constructed [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct LimitTracker<'a, T: 'a + Messenger> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_value` are never used [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 11 | / impl<'a, T> LimitTracker<'a, T> [INFO] [stdout] 12 | | where [INFO] [stdout] 13 | | T: Messenger, [INFO] [stdout] | |_________________- associated items in this implementation [INFO] [stdout] 14 | { [INFO] [stdout] 15 | pub fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn set_value(&mut self, value: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 45 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RcRefCellList` 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] 45 - Cons(Rc>, Rc), [INFO] [stdout] 45 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TailList` 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] 51 - Cons(i32, RefCell>), [INFO] [stdout] 51 + Cons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> ch15_smartpointers/src/refcount.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RcList` 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] 5 - Cons(i32, Rc), [INFO] [stdout] 5 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> ch15_smartpointers/src/weakrc.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | parent: RefCell>, [INFO] [stdout] 8 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> ch15_smartpointers/src/refcell.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(messenger: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand v0.4.3 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking ch14b_add_one v0.1.0 (/opt/rustwide/workdir/ch14b_add_one) [INFO] [stderr] Checking ch02_guessing_game v0.1.0 (/opt/rustwide/workdir/ch02_guessing_game) [INFO] [stderr] Checking ch14a_adder v0.1.0 (/opt/rustwide/workdir/ch14a_adder) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.72s [INFO] running `Command { std: "docker" "inspect" "48f73cf2bddf135986a9425d417d47b1057fbbc8d7528bda627111d967cfa803", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48f73cf2bddf135986a9425d417d47b1057fbbc8d7528bda627111d967cfa803", kill_on_drop: false }` [INFO] [stdout] 48f73cf2bddf135986a9425d417d47b1057fbbc8d7528bda627111d967cfa803