[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#90442458ac46b1d5eed752c316da25450f67285b for pr-81477 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgyng%2Frust-primer" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gyng/rust-primer on toolchain 90442458ac46b1d5eed752c316da25450f67285b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+90442458ac46b1d5eed752c316da25450f67285b" "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-7/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" "+90442458ac46b1d5eed752c316da25450f67285b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "+90442458ac46b1d5eed752c316da25450f67285b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9df84fb797f34b994eec2bbe67d5488a82d62148d4dd97af7384712a5ed87aac [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" "9df84fb797f34b994eec2bbe67d5488a82d62148d4dd97af7384712a5ed87aac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9df84fb797f34b994eec2bbe67d5488a82d62148d4dd97af7384712a5ed87aac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9df84fb797f34b994eec2bbe67d5488a82d62148d4dd97af7384712a5ed87aac", kill_on_drop: false }` [INFO] [stdout] 9df84fb797f34b994eec2bbe67d5488a82d62148d4dd97af7384712a5ed87aac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "+90442458ac46b1d5eed752c316da25450f67285b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 806e0d4bab23672eb784e61e136f68c33ce0abb0f20d4078dc6ca99bb9707535 [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" "806e0d4bab23672eb784e61e136f68c33ce0abb0f20d4078dc6ca99bb9707535", kill_on_drop: false }` [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking solution-structs v0.1.0 (/opt/rustwide/workdir/03-structs-lifetimes/solution) [INFO] [stderr] Checking solution-generics v0.1.0 (/opt/rustwide/workdir/04-generics-traits/solution) [INFO] [stderr] Checking solution v0.1.0 (/opt/rustwide/workdir/01-hello/solution) [INFO] [stderr] Checking exercise-match v0.1.0 (/opt/rustwide/workdir/05-match-result/exercise) [INFO] [stderr] Checking demo-strings v0.1.0 (/opt/rustwide/workdir/06-strings/demo) [INFO] [stderr] Checking demo v0.1.0 (/opt/rustwide/workdir/02-basics/demo) [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] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> 04-generics-traits/solution/src/main.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> 04-generics-traits/solution/src/main.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [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] [stderr] Checking demo-structs v0.1.0 (/opt/rustwide/workdir/03-structs-lifetimes/demo) [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking solution2 v0.1.0 (/opt/rustwide/workdir/02-basics/solution) [INFO] [stderr] Checking exercise-hello v0.1.0 (/opt/rustwide/workdir/01-hello/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] warning: 2 warnings emitted [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] 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: 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: 1 warning emitted [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" "806e0d4bab23672eb784e61e136f68c33ce0abb0f20d4078dc6ca99bb9707535", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "806e0d4bab23672eb784e61e136f68c33ce0abb0f20d4078dc6ca99bb9707535", kill_on_drop: false }` [INFO] [stdout] 806e0d4bab23672eb784e61e136f68c33ce0abb0f20d4078dc6ca99bb9707535