[INFO] cloning repository https://github.com/SEQUOIIA/bgsi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SEQUOIIA/bgsi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSEQUOIIA%2Fbgsi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSEQUOIIA%2Fbgsi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 80110fb770879d0743cae0a42945c23d04e7922d [INFO] testing SEQUOIIA/bgsi against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSEQUOIIA%2Fbgsi" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SEQUOIIA/bgsi on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SEQUOIIA/bgsi [INFO] finished tweaking git repo https://github.com/SEQUOIIA/bgsi [INFO] tweaked toml for git repo https://github.com/SEQUOIIA/bgsi written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/SEQUOIIA/bgsi already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+1.60.0" "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] 4ebf9ada0a176ce4c992a551fa7853bf4e55b3f3eda81de1a6f3ddef980b97be [INFO] running `Command { std: "docker" "start" "-a" "4ebf9ada0a176ce4c992a551fa7853bf4e55b3f3eda81de1a6f3ddef980b97be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ebf9ada0a176ce4c992a551fa7853bf4e55b3f3eda81de1a6f3ddef980b97be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ebf9ada0a176ce4c992a551fa7853bf4e55b3f3eda81de1a6f3ddef980b97be", kill_on_drop: false }` [INFO] [stdout] 4ebf9ada0a176ce4c992a551fa7853bf4e55b3f3eda81de1a6f3ddef980b97be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+1.60.0" "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] 9d0a7a7d6a1e6348e05a2a6c3f220947e924054e7aa26a1a8207a115be6d7264 [INFO] running `Command { std: "docker" "start" "-a" "9d0a7a7d6a1e6348e05a2a6c3f220947e924054e7aa26a1a8207a115be6d7264", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling tracing-core v0.1.20 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling tinyvec v1.4.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling tracing v0.1.27 [INFO] [stderr] Compiling crossbeam v0.8.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling openssl-sys v0.9.66 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling http-body v0.4.3 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tokio-util v0.6.8 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v0.4.28 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling pin-project v0.4.28 [INFO] [stderr] Compiling thiserror v1.0.29 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling h2 v0.3.4 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_json v1.0.68 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling serde_yaml v0.8.21 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling actix-http v2.2.1 [INFO] [stderr] Compiling hyper v0.14.12 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.2 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.4 [INFO] [stderr] Compiling bgsi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Display`, `Formatter` [INFO] [stdout] --> src/config/receiver.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CustomWebhook`, `Slack` [INFO] [stdout] --> src/config/receiver.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::receiver::Provider::{Slack, CustomWebhook}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Formatter` [INFO] [stdout] --> src/config/rule.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/handler/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/config/mod.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 138 | .filter(|(name, rule)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/config/mod.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | .map(|(name, rule)| { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/api_controller.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | async fn webhook_incoming(req : HttpRequest, body : web::Bytes, query: web::Query>) -> impl Responder { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/api_controller.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(val) => HttpResponse::Ok().finish(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/handler/mod.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut msg = String::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handler/mod.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut rules = data.get_rules_by_supplier_name(&supplier.name)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ENV_PREFIX` [INFO] [stdout] --> src/config/mod.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const ENV_PREFIX : &str = "BGSI_"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_rules` [INFO] [stdout] --> src/config/mod.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn load_rules() -> STResult> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_receivers` [INFO] [stdout] --> src/config/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn load_receivers() -> STResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_suppliers` [INFO] [stdout] --> src/config/mod.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn load_suppliers() -> STResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `load_envs` [INFO] [stdout] --> src/config/mod.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | fn load_envs(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `retrieve_env` [INFO] [stdout] --> src/config/mod.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn retrieve_env(val : &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_from_bytes` [INFO] [stdout] --> src/config/mod.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn new_from_bytes(rules : &[u8], receivers : &[u8], suppliers : &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load_conf_from_yaml` [INFO] [stdout] --> src/config/mod.rs:166:4 [INFO] [stdout] | [INFO] [stdout] 166 | fn load_conf_from_yaml(data : &[u8]) -> STResult where T : DeserializeOwned { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `SendSync` [INFO] [stdout] --> src/model/mod.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub type SendSync = Arc>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Unknown` [INFO] [stdout] --> src/model/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Unknown(Box), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `STError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug)] [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: variant is never constructed: `NoSuchProvider` [INFO] [stdout] --> src/model/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | NoSuchProvider, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `STError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug)] [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: variant is never constructed: `NoHandler` [INFO] [stdout] --> src/model/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | NoHandler, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `STError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug)] [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: variant is never constructed: `HandlerNoResponse` [INFO] [stdout] --> src/model/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | HandlerNoResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `STError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug)] [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: variant is never constructed: `GitRefNotFound` [INFO] [stdout] --> src/model/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | GitRefNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `STError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug)] [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: variant is never constructed: `HandlerErr` [INFO] [stdout] --> src/model/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | HandlerErr(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `STError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/model/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug)] [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: struct is never constructed: `GitHubWebhook` [INFO] [stdout] --> src/handler/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct GitHubWebhook { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/handler/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `handle_slack` [INFO] [stdout] --> src/handler/mod.rs:160:4 [INFO] [stdout] | [INFO] [stdout] 160 | fn handle_slack() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_string` [INFO] [stdout] --> src/model/github_push.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn from_string(val : String) -> STResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Err` should have a snake case name [INFO] [stdout] --> src/config/mod.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | _Err => None [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/server.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / HttpServer::new(move || App::new() [INFO] [stdout] 17 | | .service(crate::api_controller::scope().wrap(ServerDefaults))) [INFO] [stdout] 18 | | .bind(listening_address).unwrap() [INFO] [stdout] 19 | | .run() [INFO] [stdout] 20 | | .await; [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 02s [INFO] running `Command { std: "docker" "inspect" "9d0a7a7d6a1e6348e05a2a6c3f220947e924054e7aa26a1a8207a115be6d7264", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d0a7a7d6a1e6348e05a2a6c3f220947e924054e7aa26a1a8207a115be6d7264", kill_on_drop: false }` [INFO] [stdout] 9d0a7a7d6a1e6348e05a2a6c3f220947e924054e7aa26a1a8207a115be6d7264 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+1.60.0" "test" "--frozen" "--no-run" "--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] 653bdd7cf09426a69f6c5425ced115713b77ab964849e0837508d267b106113b [INFO] running `Command { std: "docker" "start" "-a" "653bdd7cf09426a69f6c5425ced115713b77ab964849e0837508d267b106113b", kill_on_drop: false }` [INFO] [stderr] Compiling bgsi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Display`, `Formatter` [INFO] [stdout] --> src/config/receiver.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CustomWebhook`, `Slack` [INFO] [stdout] --> src/config/receiver.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::receiver::Provider::{Slack, CustomWebhook}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Formatter` [INFO] [stdout] --> src/config/rule.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/handler/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/test/handler_test.rs:9:23 [INFO] [stdout] | [INFO] [stdout] 9 | let resp = handle("placeholder".to_owned(), data, GITHUB_PUSH_WEBHOOK_PAYLOAD_1_NEW_COMMIT.to_string().into_bytes()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::option::Option<&std::string::String>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/test/handler_test.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | let resp = handle("placeholder".to_owned(), data, GITHUB_PUSH_WEBHOOK_PAYLOAD_2_NEW_COMMITS.to_string().into_bytes()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::option::Option<&std::string::String>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/test/handler_test.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | let resp = handle("placeholder".to_owned(), data, GITHUB_PUSH_WEBHOOK_PAYLOAD.to_string().into_bytes()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::option::Option<&std::string::String>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 5 warnings 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 `bgsi` due to 4 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "653bdd7cf09426a69f6c5425ced115713b77ab964849e0837508d267b106113b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "653bdd7cf09426a69f6c5425ced115713b77ab964849e0837508d267b106113b", kill_on_drop: false }` [INFO] [stdout] 653bdd7cf09426a69f6c5425ced115713b77ab964849e0837508d267b106113b