[INFO] cloning repository https://github.com/ganeshchand/learn-rust-yourself [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ganeshchand/learn-rust-yourself" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganeshchand%2Flearn-rust-yourself", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganeshchand%2Flearn-rust-yourself'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a5cb17e314beae84a83e3830a898cc77432d402a [INFO] checking ganeshchand/learn-rust-yourself against try#44e31dee3cf6f37b4f652572897bb0eb25c477ee for pr-139763 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fganeshchand%2Flearn-rust-yourself" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ganeshchand/learn-rust-yourself on toolchain 44e31dee3cf6f37b4f652572897bb0eb25c477ee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ganeshchand/learn-rust-yourself [INFO] finished tweaking git repo https://github.com/ganeshchand/learn-rust-yourself [INFO] tweaked toml for git repo https://github.com/ganeshchand/learn-rust-yourself written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ganeshchand/learn-rust-yourself 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" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1907a63e91e9270e93227a94754d2922d20d63b9b841f2951c65434da05b2e72 [INFO] running `Command { std: "docker" "start" "-a" "1907a63e91e9270e93227a94754d2922d20d63b9b841f2951c65434da05b2e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1907a63e91e9270e93227a94754d2922d20d63b9b841f2951c65434da05b2e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1907a63e91e9270e93227a94754d2922d20d63b9b841f2951c65434da05b2e72", kill_on_drop: false }` [INFO] [stdout] 1907a63e91e9270e93227a94754d2922d20d63b9b841f2951c65434da05b2e72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71374bc989e3acf23a8b10fe5a5d56067a8e3ce9ac24a992ed240d703994ef13 [INFO] running `Command { std: "docker" "start" "-a" "71374bc989e3acf23a8b10fe5a5d56067a8e3ce9ac24a992ed240d703994ef13", kill_on_drop: false }` [INFO] [stderr] Checking rust-with-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variants `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> src/enums.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 18 | Up, [INFO] [stdout] 19 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 20 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit_struct` [INFO] [stdout] --> src/structs.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let unit_struct = UnitStruct; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unit_struct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clock` [INFO] [stdout] --> src/structs.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let clock = Clock::Analog { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit_struct` [INFO] [stdout] --> src/structs.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let unit_struct = UnitStruct; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unit_struct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `clock` [INFO] [stdout] --> src/structs.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let clock = Clock::Analog { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_clock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Goalkeeper`, `Defender`, and `Midfielder` are never constructed [INFO] [stdout] --> src/methods.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | enum Position { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 18 | Goalkeeper, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | Defender, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 20 | Midfielder, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `club` and `country` are never read [INFO] [stdout] --> src/methods.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 24 | struct SoccerPlayer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 25 | name: String, [INFO] [stdout] 26 | club: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | position: Position, [INFO] [stdout] 28 | country: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `country` is never read [INFO] [stdout] --> src/structs.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 20 | struct SoccerPlayer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | country: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Goalkeeper`, `Defender`, and `Midfielder` are never constructed [INFO] [stdout] --> src/structs.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | enum Position { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 29 | Goalkeeper, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 30 | Defender, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | Midfielder, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/structs.rs:53:26 [INFO] [stdout] | [INFO] [stdout] 53 | struct Triangle(u32, u32, u32); [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: field `0` is never read [INFO] [stdout] --> src/structs.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 59 | struct Country(String); [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/structs.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | struct Age(u8); [INFO] [stdout] | --- ^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/structs.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | struct Person(Name, Country, Age); [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 `hours`, `minutes`, and `seconds` are never read [INFO] [stdout] --> src/structs.rs:86:18 [INFO] [stdout] | [INFO] [stdout] 86 | Analog { hours: u8, minutes: u8, seconds: u8 }, [INFO] [stdout] | ------ ^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sundial` and `Digital` are never constructed [INFO] [stdout] --> src/structs.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 83 | enum Clock { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 84 | Sundial { hours: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 85 | Digital { hours: u8, minutes: u8 }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/primitive_data_types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let a: i8 = 10; // 8 bits : first bit is sign bit (0 = positive, 1 = negative), remaining 7 bits are for the number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/primitive_data_types.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let b: i16 = 10; // 16 bits : first bit is sign bit (0 = positive, 1 = negative), remaining 15 bits are for the number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/primitive_data_types.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let c: u8 = 10; // 8 bits : all 8 bits are for the number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_element` [INFO] [stdout] --> src/primitive_data_types.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let first_element = a[0]; // 100 - here the index 0 is of type usize because it is an array. [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/primitive_data_types.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let a = 10; // i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/primitive_data_types.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let a = 10.2; // f64 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/primitive_data_types.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let a = 10.2; // f64 - default [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/primitive_data_types.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let c: f32 = 10.2; // f32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/primitive_data_types.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let c = 'z'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/primitive_data_types.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let z = 'ℤ'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/primitive_data_types.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let a: i8 = 10; // 8 bits : first bit is sign bit (0 = positive, 1 = negative), remaining 7 bits are for the number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/primitive_data_types.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let b: i16 = 10; // 16 bits : first bit is sign bit (0 = positive, 1 = negative), remaining 15 bits are for the number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/primitive_data_types.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let c: u8 = 10; // 8 bits : all 8 bits are for the number [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_element` [INFO] [stdout] --> src/primitive_data_types.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let first_element = a[0]; // 100 - here the index 0 is of type usize because it is an array. [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/primitive_data_types.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let a = 10; // i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/primitive_data_types.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let a = 10.2; // f64 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/primitive_data_types.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let a = 10.2; // f64 - default [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/primitive_data_types.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let c: f32 = 10.2; // f32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/primitive_data_types.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let c = 'z'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/primitive_data_types.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let z = 'ℤ'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "71374bc989e3acf23a8b10fe5a5d56067a8e3ce9ac24a992ed240d703994ef13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71374bc989e3acf23a8b10fe5a5d56067a8e3ce9ac24a992ed240d703994ef13", kill_on_drop: false }` [INFO] [stdout] 71374bc989e3acf23a8b10fe5a5d56067a8e3ce9ac24a992ed240d703994ef13