[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-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbds0900%2Ffoosball" "/workspace/builds/worker-29/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-29/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bds0900/foosball 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/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-29/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-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc8495e12940d703eb30d62622bca35ba81d97741d03bd862bc383e17c82a4ea [INFO] running `Command { std: "docker" "start" "-a" "fc8495e12940d703eb30d62622bca35ba81d97741d03bd862bc383e17c82a4ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc8495e12940d703eb30d62622bca35ba81d97741d03bd862bc383e17c82a4ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc8495e12940d703eb30d62622bca35ba81d97741d03bd862bc383e17c82a4ea", kill_on_drop: false }` [INFO] [stdout] fc8495e12940d703eb30d62622bca35ba81d97741d03bd862bc383e17c82a4ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-29/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 057c26a315264f1e3dedca9650e4dcbf786b9b54a6310285243e78f1f0554fd8 [INFO] running `Command { std: "docker" "start" "-a" "057c26a315264f1e3dedca9650e4dcbf786b9b54a6310285243e78f1f0554fd8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.118 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling siphasher v0.3.9 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling mio v0.8.0 [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.12.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.1 [INFO] [stderr] Compiling sha2 v0.10.2 [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 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 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 is never used: `Status` [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 is never constructed: `Match` [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 is never used: `add_score` [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 is never constructed: `GameManager` [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 is never used: `get_result` [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 is never used: `get_last_result` [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 is never used: `get_results` [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 is never used: `get_results_by_player_id` [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 is never used: `get_results_by_match_id` [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 is never used: `record_result` [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 is never constructed: `Report` [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 is never constructed: `TeamReport` [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 is never constructed: `Player` [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 is never used: `get_report` [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: field is never read: `team_id` [INFO] [stdout] --> src/player.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | team_id: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] --> src/player.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Debug, Deserialize)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `goalee` [INFO] [stdout] --> src/player.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | goalee: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] --> src/player.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Debug, Deserialize)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `striker` [INFO] [stdout] --> src/player.rs:24:5 [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] --> src/player.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Clone, Debug, Deserialize)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_report` [INFO] [stdout] --> src/player.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | async fn get_report(&self)->Result{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 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" "057c26a315264f1e3dedca9650e4dcbf786b9b54a6310285243e78f1f0554fd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "057c26a315264f1e3dedca9650e4dcbf786b9b54a6310285243e78f1f0554fd8", kill_on_drop: false }` [INFO] [stdout] 057c26a315264f1e3dedca9650e4dcbf786b9b54a6310285243e78f1f0554fd8