[INFO] cloning repository https://github.com/tf2-mixes/mixes-rating-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tf2-mixes/mixes-rating-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftf2-mixes%2Fmixes-rating-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftf2-mixes%2Fmixes-rating-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37f0478b157f7863f43d9b8e6db06d3ada3a54cb [INFO] testing tf2-mixes/mixes-rating-cli against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftf2-mixes%2Fmixes-rating-cli" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tf2-mixes/mixes-rating-cli [INFO] finished tweaking git repo https://github.com/tf2-mixes/mixes-rating-cli [INFO] tweaked toml for git repo https://github.com/tf2-mixes/mixes-rating-cli written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tf2-mixes/mixes-rating-cli on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tf2-mixes/mixes-rating-cli already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aaab1f766f9906d837b6cd61dcb60fe7afba0f6e5391e4bc4abc70b6f178e579 [INFO] running `Command { std: "docker" "start" "-a" "aaab1f766f9906d837b6cd61dcb60fe7afba0f6e5391e4bc4abc70b6f178e579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aaab1f766f9906d837b6cd61dcb60fe7afba0f6e5391e4bc4abc70b6f178e579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aaab1f766f9906d837b6cd61dcb60fe7afba0f6e5391e4bc4abc70b6f178e579", kill_on_drop: false }` [INFO] [stdout] aaab1f766f9906d837b6cd61dcb60fe7afba0f6e5391e4bc4abc70b6f178e579 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9a764b6c5630b2da20e8640098bdc8a0f85a42370ceb3fa80637efe3ea9b560 [INFO] running `Command { std: "docker" "start" "-a" "f9a764b6c5630b2da20e8640098bdc8a0f85a42370ceb3fa80637efe3ea9b560", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.84 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling futures-sink v0.3.19 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling futures-io v0.3.19 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling siphasher v0.3.7 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling encoding_rs v0.8.30 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling tokio v1.15.0 [INFO] [stderr] Compiling crypto-common v0.1.1 [INFO] [stderr] Compiling block-buffer v0.10.0 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling digest v0.10.1 [INFO] [stderr] Compiling ipnet v2.3.1 [INFO] [stderr] Compiling json v0.12.4 [INFO] [stderr] Compiling sha2 v0.10.0 [INFO] [stderr] Compiling md-5 v0.10.0 [INFO] [stderr] Compiling hmac v0.12.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling postgres-protocol v0.6.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling postgres-types v0.2.2 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling enum-primitive-derive v0.2.2 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.9 [INFO] [stderr] Compiling futures-executor v0.3.19 [INFO] [stderr] Compiling futures v0.3.19 [INFO] [stderr] Compiling tokio-postgres v0.7.5 [INFO] [stderr] Compiling postgres v0.19.2 [INFO] [stderr] Compiling hyper v0.14.16 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.8 [INFO] [stderr] Compiling mixes-db v0.1.0 (https://github.com/tf2-mixes/mixes-db#85ea73b5) [INFO] [stderr] Compiling mixes-rating v0.1.0 (https://github.com/tf2-mixes/mixes-rating#8828c8b4) [INFO] [stderr] Compiling mixes-rating-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::io::stdin_locked` [INFO] [stdout] --> src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{stdin_locked, BufRead}; [INFO] [stdout] | ^^^^^^^^^^^^ no `stdin_locked` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Database` and `SteamID` [INFO] [stdout] --> src/commands/rank_by_win_rate.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use mixes_db::{Class, Database, SteamID}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/commands/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SteamID` [INFO] [stdout] --> src/commands/mod.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | use mixes_db::{Database, SteamID}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `stdio_locked` [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(stdio_locked)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/add_user.rs:39:57 [INFO] [stdout] | [INFO] [stdout] 39 | match ratings.database_mut().add_user(steam_id, discord_id) { [INFO] [stdout] | -------- ^^^^^^^^^^ expected `String`, found `u64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mixes-db-88e559c4a2dc8663/85ea73b/src/database.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn add_user(&mut self, steam_id: SteamID, discord_id: String) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 39 | match ratings.database_mut().add_user(steam_id, discord_id.to_string()) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `users` found for mutable reference `&mut SQLDb` in the current scope [INFO] [stdout] --> src/commands/rank_by_win_rate.rs:39:44 [INFO] [stdout] | [INFO] [stdout] 39 | let users = ratings.database_mut().users()?; [INFO] [stdout] | ^^^^^ method not found in `&mut SQLDb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `username` found for mutable reference `&mut SQLDb` in the current scope [INFO] [stdout] --> src/commands/rank_by_win_rate.rs:45:61 [INFO] [stdout] | [INFO] [stdout] 45 | let username = match ratings.database_mut().username(user) { [INFO] [stdout] | ^^^^^^^^ method not found in `&mut SQLDb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/commands/update.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | .update(ratio, min_players..=max_players) [INFO] [stdout] | ^^^^^^ ------------------------- unexpected argument #2 of type `std::ops::RangeInclusive` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mixes-db-88e559c4a2dc8663/85ea73b/src/database.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn update(&mut self, min_ratio: f32) -> Result<(), Self::Error>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 55 - .update(ratio, min_players..=max_players) [INFO] [stdout] 55 + .update(ratio) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/queries.rs:18:62 [INFO] [stdout] | [INFO] [stdout] 18 | let overall_performances = performances.into_iter().map(|(_id, ps)| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `Performance`, found `(_, _)` [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Performance` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Overall` found for struct `Performance` in the current scope [INFO] [stdout] --> src/queries.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | if let Performance::Overall(op) = p { [INFO] [stdout] | ^^^^^^^ associated item not found in `Performance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ratings` [INFO] [stdout] --> src/commands/help.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | ratings: &mut mixes_rating::MixesElo, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ratings` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/commands/help.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | args: &[&str], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/commands/win_rate.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/commands/win_rate.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => println!("There was an error while trying to calculate the win-rate"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0432, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mixes-rating-cli` (bin "mixes-rating-cli") due to 8 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f9a764b6c5630b2da20e8640098bdc8a0f85a42370ceb3fa80637efe3ea9b560", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9a764b6c5630b2da20e8640098bdc8a0f85a42370ceb3fa80637efe3ea9b560", kill_on_drop: false }` [INFO] [stdout] f9a764b6c5630b2da20e8640098bdc8a0f85a42370ceb3fa80637efe3ea9b560