[INFO] cloning repository https://github.com/juliosouzam/learn-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/juliosouzam/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b4e5fc81641fc27af39d825f83d53ea3af7e6fa [INFO] testing juliosouzam/learn-rust 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%2Fjuliosouzam%2Flearn-rust" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/juliosouzam/learn-rust 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/juliosouzam/learn-rust [INFO] finished tweaking git repo https://github.com/juliosouzam/learn-rust [INFO] tweaked toml for git repo https://github.com/juliosouzam/learn-rust written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/juliosouzam/learn-rust 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "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] 7677de5e0d4c5111d45cb26cc61b0bfb00c82774c85e947881812c90b8c11d71 [INFO] running `Command { std: "docker" "start" "-a" "7677de5e0d4c5111d45cb26cc61b0bfb00c82774c85e947881812c90b8c11d71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7677de5e0d4c5111d45cb26cc61b0bfb00c82774c85e947881812c90b8c11d71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7677de5e0d4c5111d45cb26cc61b0bfb00c82774c85e947881812c90b8c11d71", kill_on_drop: false }` [INFO] [stdout] 7677de5e0d4c5111d45cb26cc61b0bfb00c82774c85e947881812c90b8c11d71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a6dfe28bd54918aa4d9d4e87d94f59ae2670477525ebd40b3c4b342c38da209 [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" "4a6dfe28bd54918aa4d9d4e87d94f59ae2670477525ebd40b3c4b342c38da209", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling structopt v0.3.25 [INFO] [stderr] Compiling tasks v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `position` [INFO] [stdout] --> src/bin/derive.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | position: Position, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Employee` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/derive.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Clone, Copy)] [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: field is never read: `work_hours` [INFO] [stdout] --> src/bin/derive.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | work_hours: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Employee` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/derive.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Clone, Copy)] [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] error[E0603]: function `hi` is private [INFO] [stdout] --> src/bin/modules.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | greet::hi(); [INFO] [stdout] | ^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `hi` is defined here [INFO] [stdout] --> src/bin/modules.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | fn hi() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function `add` is private [INFO] [stdout] --> src/bin/modules.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | math::add(3, 6); [INFO] [stdout] | ^^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `add` is defined here [INFO] [stdout] --> src/bin/modules.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | fn add(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/modules.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/modules.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tasks` due to 3 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function is never used: `all_caps` [INFO] [stdout] --> src/bin/testing.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn all_caps(word: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/a28.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 18 | fn new(color: Color) -> Self { [INFO] [stdout] | ---- expected `ShirtColor` because of return type [INFO] [stdout] 19 | match color { [INFO] [stdout] 20 | Color::Purple => Err("purple not allowed".to_owned()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `ShirtColor`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `ShirtColor` [INFO] [stdout] found enum `Result<_, String>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tasks` due to 2 previous errors [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4a6dfe28bd54918aa4d9d4e87d94f59ae2670477525ebd40b3c4b342c38da209", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a6dfe28bd54918aa4d9d4e87d94f59ae2670477525ebd40b3c4b342c38da209", kill_on_drop: false }` [INFO] [stdout] 4a6dfe28bd54918aa4d9d4e87d94f59ae2670477525ebd40b3c4b342c38da209