[INFO] cloning repository https://github.com/bds0900/foosball
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bds0900/foosball" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbds0900%2Ffoosball", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbds0900%2Ffoosball'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e476b67f9c5f342a50e39d9b50a1161fea7cc119
[INFO] testing bds0900/foosball against beta-2022-07-10 for beta-1.63-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbds0900%2Ffoosball" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/bds0900/foosball on toolchain beta-2022-07-10
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/bds0900/foosball
[INFO] finished tweaking git repo https://github.com/bds0900/foosball
[INFO] tweaked toml for git repo https://github.com/bds0900/foosball written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/bds0900/foosball already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4e720ab1ff0bfb1cf975c2cc3eb05ece289cfc76f159571db063c827889de5dd
[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" "4e720ab1ff0bfb1cf975c2cc3eb05ece289cfc76f159571db063c827889de5dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4e720ab1ff0bfb1cf975c2cc3eb05ece289cfc76f159571db063c827889de5dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4e720ab1ff0bfb1cf975c2cc3eb05ece289cfc76f159571db063c827889de5dd", kill_on_drop: false }`
[INFO] [stdout] 4e720ab1ff0bfb1cf975c2cc3eb05ece289cfc76f159571db063c827889de5dd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "build" "--frozen" "--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] 024aa0403c6aabe10c712f7cd7b29e082d381731b8be419ea7c0553582e1c4d1
[INFO] running `Command { std: "docker" "start" "-a" "024aa0403c6aabe10c712f7cd7b29e082d381731b8be419ea7c0553582e1c4d1", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.118
[INFO] [stderr]    Compiling syn v1.0.86
[INFO] [stderr]    Compiling once_cell v1.9.0
[INFO] [stderr]    Compiling siphasher v0.3.9
[INFO] [stderr]    Compiling fallible-iterator v0.2.0
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling sha2 v0.10.2
[INFO] [stderr]    Compiling md-5 v0.10.1
[INFO] [stderr]    Compiling phf_shared v0.10.0
[INFO] [stderr]    Compiling phf v0.10.1
[INFO] [stderr]    Compiling getrandom v0.2.4
[INFO] [stderr]    Compiling parking_lot_core v0.9.1
[INFO] [stderr]    Compiling signal-hook-registry v1.4.0
[INFO] [stderr]    Compiling num_cpus v1.13.1
[INFO] [stderr]    Compiling mio v0.8.0
[INFO] [stderr]    Compiling socket2 v0.4.4
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]    Compiling time v0.1.44
[INFO] [stderr]    Compiling rand_core v0.6.3
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]    Compiling parking_lot v0.12.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling chrono v0.4.19
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling postgres-protocol v0.6.3
[INFO] [stderr]    Compiling futures-macro v0.3.21
[INFO] [stderr]    Compiling tokio-macros v1.7.0
[INFO] [stderr]    Compiling postgres-derive v0.4.1
[INFO] [stderr]    Compiling async-trait v0.1.52
[INFO] [stderr]    Compiling serde_derive v1.0.136
[INFO] [stderr]    Compiling tokio v1.17.0
[INFO] [stderr]    Compiling postgres-types v0.2.2
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling serde v1.0.136
[INFO] [stderr]    Compiling futures-executor v0.3.21
[INFO] [stderr]    Compiling futures v0.3.21
[INFO] [stderr]    Compiling tokio-util v0.6.9
[INFO] [stderr]    Compiling tokio-postgres v0.7.5
[INFO] [stderr]    Compiling postgres v0.19.2
[INFO] [stderr]    Compiling winning v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Date`, `Duration`, `Utc`
[INFO] [stdout]  --> src/game.rs:1:29
[INFO] [stdout]   |
[INFO] [stdout] 1 | use chrono::{DateTime,Local,Utc, Duration, Date};
[INFO] [stdout]   |                             ^^^  ^^^^^^^^  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Client`, `Error`, `NoTls`
[INFO] [stdout]  --> src/game.rs:2:16
[INFO] [stdout]   |
[INFO] [stdout] 2 | use postgres::{Client, NoTls, Error};
[INFO] [stdout]   |                ^^^^^^  ^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Report`, `TeamReport`, `Team`
[INFO] [stdout]  --> src/game.rs:5:14
[INFO] [stdout]   |
[INFO] [stdout] 5 |     report::{Report,TeamReport},
[INFO] [stdout]   |              ^^^^^^ ^^^^^^^^^^
[INFO] [stdout] 6 |     player::{Team}
[INFO] [stdout]   |              ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FromSql`, `ToSql`
[INFO] [stdout]  --> src/game.rs:8:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | use postgres_types::{ToSql, FromSql};
[INFO] [stdout]   |                      ^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Player`
[INFO] [stdout]  --> src/report.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     Player
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Date`, `Duration`, `Utc`
[INFO] [stdout]  --> src/player.rs:2:29
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{DateTime,Local,Utc, Duration, Date};
[INFO] [stdout]   |                             ^^^  ^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `team`
[INFO] [stdout]   --> src/game.rs:31:18
[INFO] [stdout]    |
[INFO] [stdout] 31 |     fn add_score(team: &str) {}
[INFO] [stdout]    |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_team`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]   --> src/game_manager.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 10 |     fn get_result(id:i32){
[INFO] [stdout]    |                   ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]   --> src/game_manager.rs:19:33
[INFO] [stdout]    |
[INFO] [stdout] 19 |     fn get_results_by_player_id(id:i32){
[INFO] [stdout]    |                                 ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]   --> src/game_manager.rs:22:32
[INFO] [stdout]    |
[INFO] [stdout] 22 |     fn get_results_by_match_id(id:i32){
[INFO] [stdout]    |                                ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> src/game_manager.rs:25:22
[INFO] [stdout]    |
[INFO] [stdout] 25 |     fn record_result(result:game::MatchResult){
[INFO] [stdout]    |                      ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `connection`
[INFO] [stdout]   --> src/player.rs:28:22
[INFO] [stdout]    |
[INFO] [stdout] 28 |         let (client, connection) = tokio_postgres::connect("postgres://postgres@localhost:5432", NoTls).await?;
[INFO] [stdout]    |                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Status` is never used
[INFO] [stdout]  --> src/game.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | enum Status {
[INFO] [stdout]   |      ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Match` is never constructed
[INFO] [stdout]   --> src/game.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Match {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `add_score` is never used
[INFO] [stdout]   --> src/game.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 |     fn add_score(team: &str) {}
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GameManager` is never constructed
[INFO] [stdout]  --> src/game_manager.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct GameManager{
[INFO] [stdout]   |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_result` is never used
[INFO] [stdout]   --> src/game_manager.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 |     fn get_result(id:i32){
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_last_result` is never used
[INFO] [stdout]   --> src/game_manager.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 |     fn get_last_result(){
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_results` is never used
[INFO] [stdout]   --> src/game_manager.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn get_results(){
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_results_by_player_id` is never used
[INFO] [stdout]   --> src/game_manager.rs:19:8
[INFO] [stdout]    |
[INFO] [stdout] 19 |     fn get_results_by_player_id(id:i32){
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_results_by_match_id` is never used
[INFO] [stdout]   --> src/game_manager.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 |     fn get_results_by_match_id(id:i32){
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `record_result` is never used
[INFO] [stdout]   --> src/game_manager.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 |     fn record_result(result:game::MatchResult){
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Report` is never constructed
[INFO] [stdout]   --> src/report.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct Report{
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `TeamReport` is never constructed
[INFO] [stdout]   --> src/report.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct TeamReport{
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Player` is never constructed
[INFO] [stdout]  --> src/player.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Player{
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_report` is never used
[INFO] [stdout]   --> src/player.rs:12:8
[INFO] [stdout]    |
[INFO] [stdout] 12 |     fn get_report()->Report{
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `team_id`, `goalee` and `striker` are never read
[INFO] [stdout]   --> src/player.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub struct Team{
[INFO] [stdout]    |            ---- fields in this struct
[INFO] [stdout] 22 |     team_id:i32,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 23 |     goalee:i32,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 24 |     striker:i32,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Team` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_report` is never used
[INFO] [stdout]   --> src/player.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |     async fn get_report(&self)->Result<TeamReport, Error>{
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 28 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NoTls`
[INFO] [stdout]  --> src/main.rs:1:22
[INFO] [stdout]   |
[INFO] [stdout] 1 | use tokio_postgres::{NoTls, Error};
[INFO] [stdout]   |                      ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/main.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | #[tokio::main]
[INFO] [stdout]   | ^^^^^^^^^^^^^^ expected enum `Result`, found `()`
[INFO] [stdout] 4 | async fn main() -> Result<(), Error>  {
[INFO] [stdout]   |                    ----------------- expected `Result<(), tokio_postgres::Error>` because of return type
[INFO] [stdout]   |
[INFO] [stdout]   = note:   expected enum `Result<(), tokio_postgres::Error>`
[INFO] [stdout]           found unit type `()`
[INFO] [stdout]   = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] help: try wrapping the expression in `Ok`
[INFO] [stdout]   |
[INFO] [stdout] 3 | Ok(#[tokio::main])
[INFO] [stdout]   | +++              +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `winning` due to 2 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "024aa0403c6aabe10c712f7cd7b29e082d381731b8be419ea7c0553582e1c4d1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "024aa0403c6aabe10c712f7cd7b29e082d381731b8be419ea7c0553582e1c4d1", kill_on_drop: false }`
[INFO] [stdout] 024aa0403c6aabe10c712f7cd7b29e082d381731b8be419ea7c0553582e1c4d1
