[INFO] cloning repository https://github.com/tascord/election [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tascord/election" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftascord%2Felection", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftascord%2Felection'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b9275fd8f3d1d8c8c5622334d1acce4c3f2f38c [INFO] testing tascord/election against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftascord%2Felection" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tascord/election [INFO] finished tweaking git repo https://github.com/tascord/election [INFO] tweaked toml for git repo https://github.com/tascord/election written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tascord/election on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tascord/election 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded to_and_fro v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9297908621fe387312d0ce1c22fc6b8f2c11885a13407da5121eb40b0ce18811 [INFO] running `Command { std: "docker" "start" "-a" "9297908621fe387312d0ce1c22fc6b8f2c11885a13407da5121eb40b0ce18811", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9297908621fe387312d0ce1c22fc6b8f2c11885a13407da5121eb40b0ce18811", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9297908621fe387312d0ce1c22fc6b8f2c11885a13407da5121eb40b0ce18811", kill_on_drop: false }` [INFO] [stdout] 9297908621fe387312d0ce1c22fc6b8f2c11885a13407da5121eb40b0ce18811 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6663016495aff0af712d0ada64a1afff5b2e65859123cf57ccaa2ffa735bcc99 [INFO] running `Command { std: "docker" "start" "-a" "6663016495aff0af712d0ada64a1afff5b2e65859123cf57ccaa2ffa735bcc99", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.21 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling jiff v0.2.12 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling openssl-sys v0.9.108 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling to_and_fro v0.7.1 [INFO] [stderr] Compiling pretty_env_logger v0.5.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.9 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling elc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0603]: function `logger` is private [INFO] [stdout] --> src/main.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | logger::logger(); [INFO] [stdout] | ^^^^^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `logger` is defined here [INFO] [stdout] --> src/logger.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | fn logger() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LevelFilter` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{LevelFilter, info, warn}; [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 imports: `info` and `warn` [INFO] [stdout] --> src/logger.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{LevelFilter, info, warn}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `args`, `collections::HashMap`, and `self` [INFO] [stdout] --> src/logger.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | env::{self, args}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | fs::{self, File, OpenOptions}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/ty.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{info, trace}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `de::DeserializeOwned` [INFO] [stdout] --> src/ty.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize, de::DeserializeOwned}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Box` [INFO] [stdout] --> src/logger.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(path: String) -> Box { [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(path: String) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logger.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | Self(OpenOptions::new().create(true).append(true).open("elc.log")) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `File`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::fs::File` [INFO] [stdout] found enum `Result` [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/logger.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Log(File); [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 21 | Self(OpenOptions::new().create(true).append(true).open("elc.log").expect("REASON")) [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logger.rs:27:54 [INFO] [stdout] | [INFO] [stdout] 27 | builder.target(env_logger::fmt::Target::Pipe(Log(OpenOptions::new() [INFO] [stdout] | __________________________________________________---_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this struct are incorrect [INFO] [stdout] 28 | | .create(true) [INFO] [stdout] 29 | | .append(true) [INFO] [stdout] 30 | | .open("elc.log")))); [INFO] [stdout] | |________________________^ expected `File`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::fs::File` [INFO] [stdout] found enum `Result` [INFO] [stdout] note: tuple struct defined here [INFO] [stdout] --> src/logger.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Log(File); [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 30 | .open("elc.log").expect("REASON")))); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logger.rs:27:50 [INFO] [stdout] | [INFO] [stdout] 27 | builder.target(env_logger::fmt::Target::Pipe(Log(OpenOptions::new() [INFO] [stdout] | ____________________-----------------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this enum variant are incorrect [INFO] [stdout] 28 | | .create(true) [INFO] [stdout] 29 | | .append(true) [INFO] [stdout] 30 | | .open("elc.log")))); [INFO] [stdout] | |_________________________^ expected `Box`, found `Log` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn std::io::Write + Send + 'static)>` [INFO] [stdout] found struct `logger::Log` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.8/src/fmt/writer/target.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Pipe(Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 27 ~ builder.target(env_logger::fmt::Target::Pipe(Box::new(Log(OpenOptions::new() [INFO] [stdout] 28 | .create(true) [INFO] [stdout] 29 | .append(true) [INFO] [stdout] 30 ~ .open("elc.log"))))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/logger.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | builder.target(env_logger::fmt::Target::Pipe(Log(OpenOptions::new() [INFO] [stdout] | _____________------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this method are incorrect [INFO] [stdout] 28 | | .create(true) [INFO] [stdout] 29 | | .append(true) [INFO] [stdout] 30 | | .open("elc.log")))); [INFO] [stdout] | |__________________________^ expected `pretty_env_logger::env_logger::Target`, found `env_logger::Target` [INFO] [stdout] | [INFO] [stdout] = note: `env_logger::Target` and `pretty_env_logger::env_logger::Target` have similar names, but are actually distinct types [INFO] [stdout] note: `env_logger::Target` is defined in crate `env_logger` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.11.8/src/fmt/writer/target.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Target { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: `pretty_env_logger::env_logger::Target` is defined in crate `env_logger` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.10.2/src/fmt/writer/mod.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Target { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.10.2/src/logger.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | pub fn target(&mut self, target: fmt::Target) -> &mut Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0308, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `elc` (bin "elc") due to 6 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6663016495aff0af712d0ada64a1afff5b2e65859123cf57ccaa2ffa735bcc99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6663016495aff0af712d0ada64a1afff5b2e65859123cf57ccaa2ffa735bcc99", kill_on_drop: false }` [INFO] [stdout] 6663016495aff0af712d0ada64a1afff5b2e65859123cf57ccaa2ffa735bcc99