[INFO] cloning repository https://github.com/albertisaac12/Learn-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/albertisaac12/Learn-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbertisaac12%2FLearn-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbertisaac12%2FLearn-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 53a03eb71e7dd214814b0205644b77bcaa1f1871 [INFO] testing albertisaac12/Learn-Rust against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbertisaac12%2FLearn-Rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/albertisaac12/Learn-Rust on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/albertisaac12/Learn-Rust [INFO] finished tweaking git repo https://github.com/albertisaac12/Learn-Rust [INFO] tweaked toml for git repo https://github.com/albertisaac12/Learn-Rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/albertisaac12/Learn-Rust 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing albertisaac12/Learn-Rust against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbertisaac12%2FLearn-Rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/albertisaac12/Learn-Rust on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/albertisaac12/Learn-Rust [INFO] finished tweaking git repo https://github.com/albertisaac12/Learn-Rust [INFO] tweaked toml for git repo https://github.com/albertisaac12/Learn-Rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/albertisaac12/Learn-Rust 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 870472ffee292e3043cc7a24a943b0edf99b37f9a4f75245e6d4e4c6795870f2 [INFO] running `Command { std: "docker" "start" "-a" "870472ffee292e3043cc7a24a943b0edf99b37f9a4f75245e6d4e4c6795870f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "870472ffee292e3043cc7a24a943b0edf99b37f9a4f75245e6d4e4c6795870f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "870472ffee292e3043cc7a24a943b0edf99b37f9a4f75245e6d4e4c6795870f2", kill_on_drop: false }` [INFO] [stdout] 870472ffee292e3043cc7a24a943b0edf99b37f9a4f75245e6d4e4c6795870f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e357844050523c6d35b9e86fb7bf20283ecfe4dfd93b1553afeeb339a2240fd [INFO] running `Command { std: "docker" "start" "-a" "1e357844050523c6d35b9e86fb7bf20283ecfe4dfd93b1553afeeb339a2240fd", kill_on_drop: false }` [INFO] [stderr] Compiling Learn-Rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `blah` should have an upper camel case name [INFO] [stdout] --> src/Udemy/structs.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct blah{ [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Blah` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs::File` [INFO] [stdout] --> src/Udemy/ErrorHandling/error1.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{fs::File, io}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `is_Seven` [INFO] [stdout] --> src/Udemy/ErrorHandling/error1.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use isSeven::{is_Seven, is_SevenWithError}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting` [INFO] [stdout] --> src/3-strings/3-string.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let greeting = "Hello world"; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::front_of_house::hosting` [INFO] [stdout] --> src/Udemy/modules2.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::front_of_house::hosting; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deliver_order` is never used [INFO] [stdout] --> src/Udemy/modules2.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn deliver_order() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_incorrect_order` is never used [INFO] [stdout] --> src/Udemy/modules2.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cook_order` is never used [INFO] [stdout] --> src/Udemy/modules2.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/Udemy/modules2.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn eat_at_restaurant() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/Udemy/modules2.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn eat_at_restaurant() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `days` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum days { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Days` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `monday` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | monday,tuesday,wednesday,thursday,friday,saturday,sunday [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Monday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `tuesday` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | monday,tuesday,wednesday,thursday,friday,saturday,sunday [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Tuesday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `wednesday` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | monday,tuesday,wednesday,thursday,friday,saturday,sunday [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Wednesday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `thursday` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | monday,tuesday,wednesday,thursday,friday,saturday,sunday [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Thursday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bank2` [INFO] [stdout] --> src/3-strings/3-string.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let bank2:& 'static str = "hi there "; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bank2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `friday` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | monday,tuesday,wednesday,thursday,friday,saturday,sunday [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Friday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `saturday` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | monday,tuesday,wednesday,thursday,friday,saturday,sunday [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Saturday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `sunday` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:5:55 [INFO] [stdout] | [INFO] [stdout] 5 | monday,tuesday,wednesday,thursday,friday,saturday,sunday [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Sunday` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `withTypes` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum withTypes{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `WithTypes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `v1` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | v1(String), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `V1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `v2` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | v2(u32), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `V2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `v3` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | v3(days), [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `V3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/7-arrays/arr.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let index: usize= index.trim().parse().expect("Error not a int value"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_Seven` is never used [INFO] [stdout] --> src/Udemy/ErrorHandling/isSeven.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn is_Seven(num:&String)->bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2` [INFO] [stdout] --> src/Udemy/structs.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let a2 = Point(4,5,6); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `isSeven` should have a snake case name [INFO] [stdout] --> src/Udemy/ErrorHandling/error1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod isSeven; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_seven` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_Seven` should have a snake case name [INFO] [stdout] --> src/Udemy/ErrorHandling/isSeven.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn is_Seven(num:&String)->bool{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_seven` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/9-miscControlFlow/misc.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let f = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_SevenWithError` should have a snake case name [INFO] [stdout] --> src/Udemy/ErrorHandling/isSeven.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn is_SevenWithError(num:&String)->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_seven_with_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/9-miscControlFlow/misc.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut y = 0; [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: variable `sd` is assigned to, but never used [INFO] [stdout] --> src/9-miscControlFlow/misc.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut sd:&str = "sdadada"; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sd` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sd` is never read [INFO] [stdout] --> src/9-miscControlFlow/misc.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | sd ="fuck"; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `property_value` is never read [INFO] [stdout] --> src/Udemy/structs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct House { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 4 | property_value: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] --> src/Udemy/structs.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 14 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | 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] [INFO] [stdout] [INFO] [stdout] warning: field `blah` is never read [INFO] [stdout] --> src/Udemy/structs.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct blah{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 25 | blah:String [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `blah` 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/Udemy/structs.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/Udemy/structs.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aa` is never used [INFO] [stdout] --> src/9-miscControlFlow/misc.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn aa(x:i32)-> i32{ [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/Udemy/hashMap1.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `monday`, `tuesday`, `wednesday`, `thursday`, `saturday`, and `sunday` are never constructed [INFO] [stdout] --> src/Udemy/Enums.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | enum days { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 5 | monday,tuesday,wednesday,thursday,friday,saturday,sunday [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `days` 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] --> src/Udemy/Enums.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | v1(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `withTypes` 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] 10 - v1(String), [INFO] [stdout] 10 + v1(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/Udemy/Enums.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | v2(u32), [INFO] [stdout] | -- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `withTypes` 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] 11 - v2(u32), [INFO] [stdout] 11 + v2(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/Udemy/Enums.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | v3(days), [INFO] [stdout] | -- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `withTypes` 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] 12 - v3(days), [INFO] [stdout] 12 + v3(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `accountInfo` should have a snake case name [INFO] [stdout] --> src/Udemy/hashMap1.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut accountInfo = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `account_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/Udemy/Enums.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `withTypes` 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] 13 - V4(u8, u8, u8, u8), [INFO] [stdout] 13 + V4((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> src/Udemy/Enums.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 18 | Penny, [INFO] [stdout] 19 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/Udemy/ownership.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let r2 = &mut s; // will give an error as only one mutable reference can exist. [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r4` [INFO] [stdout] --> src/Udemy/ownership.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let r4:&mut String = &mut ocd; // [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `total` [INFO] [stdout] --> src/2-dT/dtypes.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let total:i32 = 4; // default will be i32 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_total` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/2-dT/dtypes.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let height:u32=41; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deduction` [INFO] [stdout] --> src/2-dT/dtypes.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let deduction:i32=2-200; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deduction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `withmatch` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums2.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum withmatch{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Withmatch` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mc` is never read [INFO] [stdout] --> src/2-dT/dtypes.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let mut mc = 100; [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: unused variable: `mp` [INFO] [stdout] --> src/2-dT/dtypes.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let mp = 10; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BC` is never used [INFO] [stdout] --> src/2-dT/dtypes.rs:66:11 [INFO] [stdout] | [INFO] [stdout] 66 | const BC:i32 = 10; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `s` as mutable more than once at a time [INFO] [stdout] --> src/Udemy/ownership.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 26 | let r1 = &mut s; [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] 27 | let r2 = &mut s; // will give an error as only one mutable reference can exist. [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] 28 | println!("{}", r1); [INFO] [stdout] | -- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `f` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/Udemy/ownership.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 44 | let r5 = &f; // no problem [INFO] [stdout] | -- immutable borrow occurs here [INFO] [stdout] 45 | let r6 = &f; // no problem1 [INFO] [stdout] 46 | let r7 = &mut f; // BIG PROBLEM [INFO] [stdout] | ^^^^^^ mutable borrow occurs here [INFO] [stdout] 47 | [INFO] [stdout] 48 | println!("{}, {}, and {}", r5, r6, r7); [INFO] [stdout] | -- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `one` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | one, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `One` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `two` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | two, [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `three` should have an upper camel case name [INFO] [stdout] --> src/Udemy/Enums2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | three [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Three` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/Udemy/dangle.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | fn dangle() -> &String { // dangle returns a reference to a String [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static` [INFO] [stdout] | [INFO] [stdout] 5 | fn dangle() -> &'static String { // dangle returns a reference to a String [INFO] [stdout] | +++++++ [INFO] [stdout] help: instead, you are more likely to want to return an owned value [INFO] [stdout] | [INFO] [stdout] 5 - fn dangle() -> &String { // dangle returns a reference to a String [INFO] [stdout] 5 + fn dangle() -> String { // dangle returns a reference to a String [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/Udemy/Enums2.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let m = Some(4); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/Udemy/Enums2.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let z:Option = None; // so when we use None the compiler will not be able to make out what the type of None is so we will need t... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `two` and `three` are never constructed [INFO] [stdout] --> src/Udemy/Enums2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum withmatch{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 6 | one, [INFO] [stdout] 7 | two, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | three [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `withmatch` 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] error: could not compile `Learn-Rust` (bin "ownership") due to 2 previous errors; 2 warnings emitted [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/Udemy/Enums2.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 20 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | 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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `plus_ONE` is never used [INFO] [stdout] --> src/Udemy/Enums2.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn plus_ONE(x:Option) -> Option{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `printHorrahifQuatorOfAlaska` should have a snake case name [INFO] [stdout] --> src/Udemy/Enums2.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn printHorrahifQuatorOfAlaska(&self)-> String{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_horrahif_quator_of_alaska` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_ONE` should have a snake case name [INFO] [stdout] --> src/Udemy/Enums2.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn plus_ONE(x:Option) -> Option{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `plus_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/8-shadowing/shadow.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 11 | let mut spaces = " "; [INFO] [stdout] | ----- expected due to this value [INFO] [stdout] 12 | spaces = spaces.len(); // this will result in a error [INFO] [stdout] | ^^^^^^^^^^^^ expected `&str`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Learn-Rust` (bin "dangle") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: function `add_to_waitlist` is never used [INFO] [stdout] --> src/Udemy/modules1.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn add_to_waitlist() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat_at_restaurant` is never used [INFO] [stdout] --> src/Udemy/modules1.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn eat_at_restaurant() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Learn-Rust` (bin "8-f") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "1e357844050523c6d35b9e86fb7bf20283ecfe4dfd93b1553afeeb339a2240fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e357844050523c6d35b9e86fb7bf20283ecfe4dfd93b1553afeeb339a2240fd", kill_on_drop: false }` [INFO] [stdout] 1e357844050523c6d35b9e86fb7bf20283ecfe4dfd93b1553afeeb339a2240fd