[INFO] cloning repository https://github.com/huzailessani/Rust-problems [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/huzailessani/Rust-problems" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuzailessani%2FRust-problems", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuzailessani%2FRust-problems'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1dc20d1321269f12ee7199440b1201b41a4f71e6 [INFO] checking huzailessani/Rust-problems against master#75530e9f72a1990ed2305e16fd51d02f47048f12 for pr-138676 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuzailessani%2FRust-problems" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/huzailessani/Rust-problems on toolchain 75530e9f72a1990ed2305e16fd51d02f47048f12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/huzailessani/Rust-problems [INFO] finished tweaking git repo https://github.com/huzailessani/Rust-problems [INFO] tweaked toml for git repo https://github.com/huzailessani/Rust-problems written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/huzailessani/Rust-problems 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" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c2e6a758401fcd1a40e01b1018f78c2f3dbb345f7f34f03c000ee979d87ad9b [INFO] running `Command { std: "docker" "start" "-a" "2c2e6a758401fcd1a40e01b1018f78c2f3dbb345f7f34f03c000ee979d87ad9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c2e6a758401fcd1a40e01b1018f78c2f3dbb345f7f34f03c000ee979d87ad9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c2e6a758401fcd1a40e01b1018f78c2f3dbb345f7f34f03c000ee979d87ad9b", kill_on_drop: false }` [INFO] [stdout] 2c2e6a758401fcd1a40e01b1018f78c2f3dbb345f7f34f03c000ee979d87ad9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd716da6b550cd1a051cb23f58c19a91e286e93b696af5a8d668426b53ecdbdb [INFO] running `Command { std: "docker" "start" "-a" "dd716da6b550cd1a051cb23f58c19a91e286e93b696af5a8d668426b53ecdbdb", kill_on_drop: false }` [INFO] [stderr] Checking playlist v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut number = 1..11; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let mut number = 1..11; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | let (a, b, c, d, e, f) = tuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | let (a, b, c, d, e, f) = tuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Number` [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let Number = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Number` [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let Number = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_Number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nam` [INFO] [stdout] --> src/main.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut nam = 0..40; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nam` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nam` [INFO] [stdout] --> src/main.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut nam = 0..40; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_nam` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | Err(e)=>{ println!("failure")}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | Err(e)=>{ println!("failure")}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut x = 45; [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] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut number = 1..11; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let mut red = Clr(3, 4, 5); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let mut Color = Person { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let mut nam = 0..40; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut x = 45; [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] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut number = 1..11; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 65 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 66 | Up, [INFO] [stdout] 67 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 68 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 69 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mon`, `Tue`, `Wed`, `Fri`, `Sat`, and `Sun` are never constructed [INFO] [stdout] --> src/main.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 160 | enum Day { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 161 | Mon, [INFO] [stdout] | ^^^ [INFO] [stdout] 162 | Tue, [INFO] [stdout] | ^^^ [INFO] [stdout] 163 | Wed, [INFO] [stdout] | ^^^ [INFO] [stdout] 164 | Thurs, [INFO] [stdout] 165 | Fri, [INFO] [stdout] | ^^^ [INFO] [stdout] 166 | Sat, [INFO] [stdout] | ^^^ [INFO] [stdout] 167 | Sun, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `Usairim` is never read [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 181 | struct Person { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 182 | Huzail: i8, [INFO] [stdout] 183 | Usairim: i8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | let mut red = Clr(3, 4, 5); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let mut Color = Person { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Jan`, `Feb`, `March`, `April`, `May`, and `July` are never constructed [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | enum Month { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 215 | Jan, [INFO] [stdout] | ^^^ [INFO] [stdout] 216 | Feb, [INFO] [stdout] | ^^^ [INFO] [stdout] 217 | March, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 218 | April, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 219 | May, [INFO] [stdout] | ^^^ [INFO] [stdout] 220 | June, [INFO] [stdout] 221 | July, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Essani` is never constructed [INFO] [stdout] --> src/main.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 235 | enum Huzail { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 236 | Isani, [INFO] [stdout] 237 | Essani, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let mut nam = 0..40; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Normalday` and `Labourday` are never constructed [INFO] [stdout] --> src/main.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 257 | enum Holiday { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 258 | Holidey , [INFO] [stdout] 259 | Normalday, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 260 | Labourday, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Number` should have a snake case name [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let Number = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Number` should have a snake case name [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let Number = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_Weekday` should have a snake case name [INFO] [stdout] --> src/main.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | fn is_Weekday(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_weekday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_Weekday` should have a snake case name [INFO] [stdout] --> src/main.rs:171:12 [INFO] [stdout] | [INFO] [stdout] 171 | fn is_Weekday(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_weekday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Huzail` should have a snake case name [INFO] [stdout] --> src/main.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | Huzail: i8, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `huzail` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Huzail` should have a snake case name [INFO] [stdout] --> src/main.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | Huzail: i8, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `huzail` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Usairim` should have a snake case name [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | Usairim: i8, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `usairim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Usairim` should have a snake case name [INFO] [stdout] --> src/main.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | Usairim: i8, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `usairim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Color` should have a snake case name [INFO] [stdout] --> src/main.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut Color = Person { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Sirname` should have a snake case name [INFO] [stdout] --> src/main.rs:240:5 [INFO] [stdout] | [INFO] [stdout] 240 | let Sirname : Huzail = Huzail::Isani; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `sirname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Holidays` should have a snake case name [INFO] [stdout] --> src/main.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | fn Holidays(&self)->bool{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `holidays` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Color` should have a snake case name [INFO] [stdout] --> src/main.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut Color = Person { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Sirname` should have a snake case name [INFO] [stdout] --> src/main.rs:240:5 [INFO] [stdout] | [INFO] [stdout] 240 | let Sirname : Huzail = Huzail::Isani; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `sirname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Holidays` should have a snake case name [INFO] [stdout] --> src/main.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | fn Holidays(&self)->bool{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `holidays` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "dd716da6b550cd1a051cb23f58c19a91e286e93b696af5a8d668426b53ecdbdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd716da6b550cd1a051cb23f58c19a91e286e93b696af5a8d668426b53ecdbdb", kill_on_drop: false }` [INFO] [stdout] dd716da6b550cd1a051cb23f58c19a91e286e93b696af5a8d668426b53ecdbdb