[INFO] cloning repository https://github.com/gyng/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/gyng/rust-primer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgyng%2Frust-primer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgyng%2Frust-primer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed24db7d18d5c614ab80a44a1f34288f101769b0 [INFO] checking gyng/rust-primer against master#fc81ad22c453776de16acf9938976930cf8c9401 for pr-77325 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgyng%2Frust-primer" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gyng/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/gyng/rust-primer [INFO] finished tweaking git repo https://github.com/gyng/rust-primer [INFO] tweaked toml for git repo https://github.com/gyng/rust-primer written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/gyng/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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ab4a25ce89eb2841a0eed058c66528157ef88b655a27b3b166471277386847d0 [INFO] running `Command { std: "docker" "start" "-a" "ab4a25ce89eb2841a0eed058c66528157ef88b655a27b3b166471277386847d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab4a25ce89eb2841a0eed058c66528157ef88b655a27b3b166471277386847d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab4a25ce89eb2841a0eed058c66528157ef88b655a27b3b166471277386847d0", kill_on_drop: false }` [INFO] [stdout] ab4a25ce89eb2841a0eed058c66528157ef88b655a27b3b166471277386847d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] c847d94cbde1e567509364e9754e71a61631badbc784c5a4560ccde94858707b [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" "c847d94cbde1e567509364e9754e71a61631badbc784c5a4560ccde94858707b", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.65 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking demo-match v0.1.0 (/opt/rustwide/workdir/05-match-result/demo) [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] Checking demo-generics v0.1.0 (/opt/rustwide/workdir/04-generics-traits/demo) [INFO] [stderr] Checking exercise-match v0.1.0 (/opt/rustwide/workdir/05-match-result/exercise) [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> 05-match-result/demo/src/main.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | / if let x = Some(wrapper) { [INFO] [stdout] 105 | | dbg!(x); [INFO] [stdout] 106 | | } [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] [stderr] Checking exercise-structs v0.1.0 (/opt/rustwide/workdir/03-structs-lifetimes/exercise) [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking exercise-libraries v0.1.0 (/opt/rustwide/workdir/07-external-libraries/exercise) [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] [stderr] error: could not compile `exercise-libraries` [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[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[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] 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] [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] 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" "c847d94cbde1e567509364e9754e71a61631badbc784c5a4560ccde94858707b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c847d94cbde1e567509364e9754e71a61631badbc784c5a4560ccde94858707b", kill_on_drop: false }` [INFO] [stdout] c847d94cbde1e567509364e9754e71a61631badbc784c5a4560ccde94858707b