[INFO] cloning repository https://github.com/jeraldgan/rust-primer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jeraldgan/rust-primer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeraldgan%2Frust-primer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeraldgan%2Frust-primer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8722a96df067afa7439b1de35ff57b32ad9c3f66 [INFO] testing jeraldgan/rust-primer against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeraldgan%2Frust-primer" "/workspace/builds/worker-87/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-87/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jeraldgan/rust-primer on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jeraldgan/rust-primer [INFO] finished tweaking git repo https://github.com/jeraldgan/rust-primer [INFO] tweaked toml for git repo https://github.com/jeraldgan/rust-primer written to /workspace/builds/worker-87/source/Cargo.toml [INFO] crate git repo https://github.com/jeraldgan/rust-primer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-87/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-87/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25b513e2fddda4a73e6b6e340219df32e8afdebe351060cfa9349805fc0c07e7 [INFO] running `Command { std: "docker" "start" "-a" "25b513e2fddda4a73e6b6e340219df32e8afdebe351060cfa9349805fc0c07e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25b513e2fddda4a73e6b6e340219df32e8afdebe351060cfa9349805fc0c07e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25b513e2fddda4a73e6b6e340219df32e8afdebe351060cfa9349805fc0c07e7", kill_on_drop: false }` [INFO] [stdout] 25b513e2fddda4a73e6b6e340219df32e8afdebe351060cfa9349805fc0c07e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-87/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-87/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40d66d4cbbcaa566dd6217772290b19b396f1fc9792dc0ae93e72d2a74645c72 [INFO] running `Command { std: "docker" "start" "-a" "40d66d4cbbcaa566dd6217772290b19b396f1fc9792dc0ae93e72d2a74645c72", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.65 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling os_str_bytes v2.4.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling exercise-generics v0.1.0 (/opt/rustwide/workdir/04-generics-traits/exercise) [INFO] [stderr] Compiling solution-match v0.1.0 (/opt/rustwide/workdir/05-match-result/solution) [INFO] [stderr] Compiling exercise-structs v0.1.0 (/opt/rustwide/workdir/03-structs-lifetimes/exercise) [INFO] [stderr] Compiling exercise-libraries v0.1.0 (/opt/rustwide/workdir/07-external-libraries/exercise) [INFO] [stderr] Compiling demo-strings v0.1.0 (/opt/rustwide/workdir/06-strings/demo) [INFO] [stderr] Compiling demo-structs v0.1.0 (/opt/rustwide/workdir/03-structs-lifetimes/demo) [INFO] [stderr] Compiling solution v0.1.0 (/opt/rustwide/workdir/01-hello/solution) [INFO] [stderr] Compiling exercise-hello v0.1.0 (/opt/rustwide/workdir/01-hello/exercise) [INFO] [stderr] Compiling solution-generics v0.1.0 (/opt/rustwide/workdir/04-generics-traits/solution) [INFO] [stderr] Compiling structs-exercise v0.1.0 (/opt/rustwide/workdir/02-basics/exercise) [INFO] [stderr] Compiling exercise-match v0.1.0 (/opt/rustwide/workdir/05-match-result/exercise) [INFO] [stderr] Compiling demo v0.1.0 (/opt/rustwide/workdir/02-basics/demo) [INFO] [stderr] Compiling demo-stuff v0.1.0 (/opt/rustwide/workdir/01-hello/demo) [INFO] [stderr] Compiling solution2 v0.1.0 (/opt/rustwide/workdir/02-basics/solution) [INFO] [stderr] Compiling demo-generics v0.1.0 (/opt/rustwide/workdir/04-generics-traits/demo) [INFO] [stderr] Compiling solution-structs v0.1.0 (/opt/rustwide/workdir/03-structs-lifetimes/solution) [INFO] [stderr] Compiling demo-match v0.1.0 (/opt/rustwide/workdir/05-match-result/demo) [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> 03-structs-lifetimes/demo/src/main.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn new(width: u32, height: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> 05-match-result/solution/src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> 05-match-result/solution/src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `double_area_rect_reference` [INFO] [stdout] --> 03-structs-lifetimes/demo/src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn double_area_rect_reference(rect: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bunny` [INFO] [stdout] --> 05-match-result/solution/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Bunny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Sculpture` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> 05-match-result/solution/src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Teapot` [INFO] [stdout] --> 05-match-result/solution/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Teapot, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Sculpture` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> 05-match-result/solution/src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_value` [INFO] [stdout] --> 05-match-result/solution/src/main.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_value(input: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> 03-structs-lifetimes/solution/src/shapes/circle.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> 03-structs-lifetimes/solution/src/shapes/rectangle.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> 03-structs-lifetimes/solution/src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> 03-structs-lifetimes/solution/src/main.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_value(input: &str) -> Sculpture { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> 02-basics/solution/src/main.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | let mut x = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mutability` [INFO] [stdout] --> 02-basics/solution/src/main.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn mutability() -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `casting` [INFO] [stdout] --> 02-basics/solution/src/main.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn casting() -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `collections` [INFO] [stdout] --> 02-basics/solution/src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn collections() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bunny` [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Bunny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Sculpture` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Teapot` [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Teapot, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Sculpture` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_value` [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn parse_value(input: &str) -> Sculpture { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/shapes/circle.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/shapes/rectangle.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `height` on type `&Rectangle` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/shapes/rectangle.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | self.width * self.height [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Rectangle` has no field named `height` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | height: 3.0f64, [INFO] [stdout] | ^^^^^^ `Rectangle` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `area` is private [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:10:56 [INFO] [stdout] | [INFO] [stdout] 10 | println!("Area of a 2 x 3 rectangle is {:?}", rect.area()); [INFO] [stdout] | ^^^^ private associated function [INFO] [stdout] | [INFO] [stdout] ::: 03-structs-lifetimes/exercise/src/shapes/rectangle.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn area(&self) -> f64 { [INFO] [stdout] | --------------------- private associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `Circle` has no field named `radius` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | let circ = Circle { radius: 1.0f64 }; [INFO] [stdout] | ^^^^^^ `Circle` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `area` found for struct `Circle` in the current scope [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:13:52 [INFO] [stdout] | [INFO] [stdout] 13 | println!("Area of a unit circle is {:?}", circ.area()); [INFO] [stdout] | ^^^^ method not found in `Circle` [INFO] [stdout] | [INFO] [stdout] ::: 03-structs-lifetimes/exercise/src/shapes/circle.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Circle {} [INFO] [stdout] | ----------------- method `area` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0560, E0599, E0609, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0560`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercise-structs` due to 6 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: expected one of `!` or `::`, found `:` [INFO] [stdout] --> 07-external-libraries/exercise/src/main.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | https://docs.serde.rs/serde_json/#parsing-json-as-strongly-typed-data-structures [INFO] [stdout] | ^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `?` [INFO] [stdout] --> 04-generics-traits/exercise/src/main.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | let mut map: HashMap<&str, ???> = HashMap::new(); [INFO] [stdout] | -------- ^ expected identifier [INFO] [stdout] | | | [INFO] [stdout] | | help: use `=` if you meant to assign [INFO] [stdout] | while parsing the type for `mut map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` [INFO] [stdout] --> 04-generics-traits/exercise/src/main.rs:24:34 [INFO] [stdout] | [INFO] [stdout] 24 | let mut map: HashMap<&str, ???> = HashMap::new(); [INFO] [stdout] | ^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> 04-generics-traits/solution/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> 04-generics-traits/solution/src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercise-libraries` due to 2 previous errors [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> 06-strings/demo/src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let s2: String = String::from_str(s).unwrap(); // s could be invalid bytes for a String [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> 06-strings/demo/src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let s2: String = s.to_owned(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> 06-strings/demo/src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let s3: &str = s2.as_str(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> 04-generics-traits/exercise/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> 04-generics-traits/exercise/src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | mod tests { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> 02-basics/exercise/src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let x: u8 = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xs` [INFO] [stdout] --> 02-basics/exercise/src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let xs = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mutability` [INFO] [stdout] --> 02-basics/exercise/src/main.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn mutability() -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `casting` [INFO] [stdout] --> 02-basics/exercise/src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn casting() -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `collections` [INFO] [stdout] --> 02-basics/exercise/src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn collections() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> 05-match-result/demo/src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> 05-match-result/demo/src/main.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercise-generics` due to 3 previous errors; 1 warning emitted [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> 05-match-result/demo/src/main.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | if let x = Some(wrapper) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> 05-match-result/demo/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | x: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> 05-match-result/demo/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | y: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LineTo` [INFO] [stdout] --> 05-match-result/demo/src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | LineTo { x: f64, y: f64 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LineBetween` [INFO] [stdout] --> 05-match-result/demo/src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | LineBetween((Point, Point)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Clear` [INFO] [stdout] --> 05-match-result/demo/src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | Clear, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "40d66d4cbbcaa566dd6217772290b19b396f1fc9792dc0ae93e72d2a74645c72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40d66d4cbbcaa566dd6217772290b19b396f1fc9792dc0ae93e72d2a74645c72", kill_on_drop: false }` [INFO] [stdout] 40d66d4cbbcaa566dd6217772290b19b396f1fc9792dc0ae93e72d2a74645c72