[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] checking jeraldgan/rust-primer against master#fc81ad22c453776de16acf9938976930cf8c9401 for pr-77325 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeraldgan%2Frust-primer" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jeraldgan/rust-primer on toolchain fc81ad22c453776de16acf9938976930cf8c9401 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fc81ad22c453776de16acf9938976930cf8c9401" "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-6/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" "+fc81ad22c453776de16acf9938976930cf8c9401" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+fc81ad22c453776de16acf9938976930cf8c9401" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e08c8f540dacb85d8bb9c67c2836429612a6d8503a8fe89f8772216e68bb8a44 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e08c8f540dacb85d8bb9c67c2836429612a6d8503a8fe89f8772216e68bb8a44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e08c8f540dacb85d8bb9c67c2836429612a6d8503a8fe89f8772216e68bb8a44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e08c8f540dacb85d8bb9c67c2836429612a6d8503a8fe89f8772216e68bb8a44", kill_on_drop: false }` [INFO] [stdout] e08c8f540dacb85d8bb9c67c2836429612a6d8503a8fe89f8772216e68bb8a44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+fc81ad22c453776de16acf9938976930cf8c9401" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e9983fc19223760155a98ae683c72f4f426b59a098faf5ae581ab45748450fd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8e9983fc19223760155a98ae683c72f4f426b59a098faf5ae581ab45748450fd", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling syn v1.0.65 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking exercise-match v0.1.0 (/opt/rustwide/workdir/05-match-result/exercise) [INFO] [stderr] Checking solution v0.1.0 (/opt/rustwide/workdir/01-hello/solution) [INFO] [stderr] Checking exercise-hello v0.1.0 (/opt/rustwide/workdir/01-hello/exercise) [INFO] [stderr] Checking solution-match v0.1.0 (/opt/rustwide/workdir/05-match-result/solution) [INFO] [stderr] Checking exercise-structs v0.1.0 (/opt/rustwide/workdir/03-structs-lifetimes/exercise) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(parse_value("bunny"), Some(Sculpture::Bunny)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Sculpture`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Sculpture` [INFO] [stdout] found enum `Option` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(parse_value("teapot"), Some(Sculpture::Teapot)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Sculpture`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Sculpture` [INFO] [stdout] found enum `Option` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(parse_value("taco"), None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Sculpture`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Sculpture` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 05-match-result/exercise/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(value, "value"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&str>` [INFO] [stdout] found reference `&str` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercise-match` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0560]: struct `rectangle::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::Rectangle` does not have this field [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] [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] [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] [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] 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] [INFO] [stdout] error[E0560]: struct `circle::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::Circle` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `area` found for struct `circle::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::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[E0560]: struct `circle::Circle` has no field named `radius` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:26:39 [INFO] [stdout] | [INFO] [stdout] 26 | let mutable_circle = Circle { radius: 1.0 }; [INFO] [stdout] | ^^^^^^ `circle::Circle` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:27:37 [INFO] [stdout] | [INFO] [stdout] 27 | mutate_circle_double_radius(mutable_circle); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut circle::Circle`, found struct `circle::Circle` [INFO] [stdout] | help: consider mutably borrowing here: `&mut mutable_circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `area` found for struct `circle::Circle` in the current scope [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:28:39 [INFO] [stdout] | [INFO] [stdout] 28 | println!("{}", mutable_circle.area()); [INFO] [stdout] | ^^^^ method not found in `circle::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[E0599]: no method named `area` found for struct `circle::Circle` in the current scope [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | assert_eq!(mutable_circle.area(), Circle { radius: 2.0 }.area()); [INFO] [stdout] | ^^^^ method not found in `circle::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[E0560]: struct `circle::Circle` has no field named `radius` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | assert_eq!(mutable_circle.area(), Circle { radius: 2.0 }.area()); [INFO] [stdout] | ^^^^^^ `circle::Circle` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `area` found for struct `circle::Circle` in the current scope [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:32:66 [INFO] [stdout] | [INFO] [stdout] 32 | assert_eq!(mutable_circle.area(), Circle { radius: 2.0 }.area()); [INFO] [stdout] | ^^^^ method not found in `circle::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[E0609]: no field `radius` on type `&mut circle::Circle` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | circle.radius = circle.radius * 2.0; [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `radius` on type `&mut circle::Circle` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/main.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | circle.radius = circle.radius * 2.0; [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `circle::Circle` has no field named `radius` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/shapes/circle.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | let circle = Circle { radius: 1.0f64 }; [INFO] [stdout] | ^^^^^^ `circle::Circle` does not have this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `area` found for struct `circle::Circle` in the current scope [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/shapes/circle.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Circle {} [INFO] [stdout] | ----------------- method `area` not found for this [INFO] [stdout] ... [INFO] [stdout] 13 | let actual = circle.area(); [INFO] [stdout] | ^^^^ method not found in `circle::Circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `height` on type `&rectangle::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::Rectangle` has no field named `height` [INFO] [stdout] --> 03-structs-lifetimes/exercise/src/shapes/rectangle.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | height: 3.0f64, [INFO] [stdout] | ^^^^^^ `rectangle::Rectangle` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0560, E0599, E0609, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8e9983fc19223760155a98ae683c72f4f426b59a098faf5ae581ab45748450fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e9983fc19223760155a98ae683c72f4f426b59a098faf5ae581ab45748450fd", kill_on_drop: false }` [INFO] [stdout] 8e9983fc19223760155a98ae683c72f4f426b59a098faf5ae581ab45748450fd