[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 try#07fecb9cf34c4979a772ba38c99d6d9144768413 for pr-87710 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjeraldgan%2Frust-primer" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jeraldgan/rust-primer on toolchain 07fecb9cf34c4979a772ba38c99d6d9144768413 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+07fecb9cf34c4979a772ba38c99d6d9144768413" "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-4/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" "+07fecb9cf34c4979a772ba38c99d6d9144768413" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+07fecb9cf34c4979a772ba38c99d6d9144768413" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99892c225d80c205b4eb969a62dff7886339a122c5021d6c02e7f2ef06328783 [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" "99892c225d80c205b4eb969a62dff7886339a122c5021d6c02e7f2ef06328783", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99892c225d80c205b4eb969a62dff7886339a122c5021d6c02e7f2ef06328783", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99892c225d80c205b4eb969a62dff7886339a122c5021d6c02e7f2ef06328783", kill_on_drop: false }` [INFO] [stdout] 99892c225d80c205b4eb969a62dff7886339a122c5021d6c02e7f2ef06328783 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+07fecb9cf34c4979a772ba38c99d6d9144768413" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 31e60746c48daf7c87383ea6625de7a9f63b9dbecac29f5b83b771eab24538f5 [INFO] running `Command { std: "docker" "start" "-a" "31e60746c48daf7c87383ea6625de7a9f63b9dbecac29f5b83b771eab24538f5", 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 bitflags v1.2.1 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking lazy_static v1.4.0 [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] 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] [INFO] [stderr] Checking solution v0.1.0 (/opt/rustwide/workdir/01-hello/solution) [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] [stderr] Checking demo-strings v0.1.0 (/opt/rustwide/workdir/06-strings/demo) [INFO] [stderr] Checking demo-structs v0.1.0 (/opt/rustwide/workdir/03-structs-lifetimes/demo) [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[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: 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] 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [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: 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "31e60746c48daf7c87383ea6625de7a9f63b9dbecac29f5b83b771eab24538f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31e60746c48daf7c87383ea6625de7a9f63b9dbecac29f5b83b771eab24538f5", kill_on_drop: false }` [INFO] [stdout] 31e60746c48daf7c87383ea6625de7a9f63b9dbecac29f5b83b771eab24538f5