[INFO] cloning repository https://github.com/prateek-90/notif-service [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/prateek-90/notif-service" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprateek-90%2Fnotif-service", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprateek-90%2Fnotif-service'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d19f929fa240f8fd2936550027a1cb693ff203d2 [INFO] testing prateek-90/notif-service against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprateek-90%2Fnotif-service" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/prateek-90/notif-service on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/prateek-90/notif-service [INFO] finished tweaking git repo https://github.com/prateek-90/notif-service [INFO] tweaked toml for git repo https://github.com/prateek-90/notif-service written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/prateek-90/notif-service already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ref_slice v1.2.0 [INFO] [stderr] Downloaded slog-envlogger v2.2.0 [INFO] [stderr] Downloaded kafka v0.8.0 [INFO] [stderr] Downloaded amiquip v0.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "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] 4eea65b1974314ff1641d238093b3a7dd7b27628141db8b2f38e78fd5ebdc9a8 [INFO] running `Command { std: "docker" "start" "-a" "4eea65b1974314ff1641d238093b3a7dd7b27628141db8b2f38e78fd5ebdc9a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4eea65b1974314ff1641d238093b3a7dd7b27628141db8b2f38e78fd5ebdc9a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eea65b1974314ff1641d238093b3a7dd7b27628141db8b2f38e78fd5ebdc9a8", kill_on_drop: false }` [INFO] [stdout] 4eea65b1974314ff1641d238093b3a7dd7b27628141db8b2f38e78fd5ebdc9a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f2918a84a2ab0ffe0410ba261e4f6a3bf903edb59d41c033a2d545776f91934 [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" "1f2918a84a2ab0ffe0410ba261e4f6a3bf903edb59d41c033a2d545776f91934", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling arc-swap v0.4.6 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling gimli v0.21.0 [INFO] [stderr] Compiling object v0.19.0 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling slog v2.5.2 [INFO] [stderr] Compiling cookie-factory v0.2.4 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling ref_slice v1.2.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling unicode-normalization v0.1.12 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling snap v0.2.5 [INFO] [stderr] Compiling flate2 v1.0.14 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling bytestring v0.1.5 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling crossbeam-channel v0.4.2 [INFO] [stderr] Compiling crossbeam-queue v0.2.2 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling slog-scope v4.3.0 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling input_buffer v0.2.0 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling term v0.6.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling crossbeam v0.7.3 [INFO] [stderr] Compiling slog-async v2.5.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling slog-term v2.6.0 [INFO] [stderr] Compiling addr2line v0.12.1 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling slog-stdlog v4.0.0 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling openssl-sys v0.9.57 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling libgit2-sys v0.9.2 [INFO] [stderr] Compiling miniz-sys v0.1.12 [INFO] [stderr] Compiling backtrace v0.3.48 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling slog-envlogger v2.2.0 [INFO] [stderr] Compiling twox-hash v1.5.0 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling error-chain v0.10.0 [INFO] [stderr] Compiling flate2 v0.2.20 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling actix-codec v0.2.0 [INFO] [stderr] Compiling snafu-derive v0.4.4 [INFO] [stderr] Compiling kafka v0.8.0 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling git2 v0.10.2 [INFO] [stderr] Compiling snafu v0.4.4 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Compiling pin-project-internal v0.4.19 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling derive_more v0.99.7 [INFO] [stderr] Compiling actix-macros v0.1.2 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling async-trait v0.1.33 [INFO] [stderr] Compiling enum-as-inner v0.3.2 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling actix-web-codegen v0.2.2 [INFO] [stderr] Compiling actix_derive v0.5.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling pin-project v0.4.19 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling actix-threadpool v0.3.2 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling actix-service v1.0.5 [INFO] [stderr] Compiling h2 v0.2.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Compiling actix-utils v1.0.6 [INFO] [stderr] Compiling actix-server v1.0.3 [INFO] [stderr] Compiling actix-tls v1.0.0 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Compiling actix-connect v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Compiling actix-router v0.2.4 [INFO] [stderr] Compiling serde_yaml v0.8.12 [INFO] [stderr] Compiling amq-protocol-types v1.2.0 [INFO] [stderr] Compiling handlebars v1.1.0 [INFO] [stderr] Compiling actix-http v1.0.1 [INFO] [stderr] Compiling built v0.3.2 [INFO] [stderr] Compiling amq-protocol-codegen v1.4.0 [INFO] [stderr] Compiling amiquip v0.3.3 [INFO] [stderr] Compiling amq-protocol v1.4.0 [INFO] [stderr] Compiling awc v1.0.1 [INFO] [stderr] Compiling actix v0.9.0 [INFO] [stderr] Compiling actix-web v2.0.0 [INFO] [stderr] Compiling actix-cors v0.2.0 [INFO] [stderr] Compiling notif-worker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Consumer`, `FetchOffset`, `GroupOffsetStorage` [INFO] [stdout] --> src/main.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use kafka::consumer::{Consumer, GroupOffsetStorage, FetchOffset}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Result` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ResponseBuilder`, `Response` [INFO] [stdout] --> src/models/dtos.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_http::{Error, Response, ResponseBuilder}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/models/dtos.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{HttpRequest, HttpResponse, Responder, http::StatusCode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/app/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/app/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/app/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpServer`, `Responder`, `web::Json` [INFO] [stdout] --> src/app/otp.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{ web, web::Json, App, HttpServer, Responder, HttpResponse, http::StatusCode}; [INFO] [stdout] | ^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BodySize`, `Body`, `MessageBody`, `ResponseBody`, `SizedStream` [INFO] [stdout] --> src/app/otp.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_http::body::{Body, BodySize, MessageBody, ResponseBody, SizedStream}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `o` [INFO] [stdout] --> src/app/otp.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use slog::{Drain, o, info}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `slog_term::*` [INFO] [stdout] --> src/app/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use slog_term::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `o` [INFO] [stdout] --> src/utils/util.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use slog::{Drain, o, info, Logger}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/app/otp.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn generate_otp(mut payload: web::Json, data: web::Data) -> HttpResponse { [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: unused import: `Drain` [INFO] [stdout] --> src/app/otp.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use slog::{Drain, o, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Drain` [INFO] [stdout] --> src/utils/util.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use slog::{Drain, o, info, Logger}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:34:65 [INFO] [stdout] | [INFO] [stdout] 34 | let config: AppConfig = serde_yaml::from_reader(f).map_err(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/app/otp.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | serde_json::to_string(&otp).unwrap_or_else(|err| format!("No otp found")) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 28s [INFO] running `Command { std: "docker" "inspect" "1f2918a84a2ab0ffe0410ba261e4f6a3bf903edb59d41c033a2d545776f91934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f2918a84a2ab0ffe0410ba261e4f6a3bf903edb59d41c033a2d545776f91934", kill_on_drop: false }` [INFO] [stdout] 1f2918a84a2ab0ffe0410ba261e4f6a3bf903edb59d41c033a2d545776f91934 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82b952db42a37e9c30e228e4c6ab8dd0c873a9078b75ee9d6db428037f7e2c74 [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" "82b952db42a37e9c30e228e4c6ab8dd0c873a9078b75ee9d6db428037f7e2c74", kill_on_drop: false }` [INFO] [stderr] Compiling notif-worker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Consumer`, `FetchOffset`, `GroupOffsetStorage` [INFO] [stdout] --> src/main.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use kafka::consumer::{Consumer, GroupOffsetStorage, FetchOffset}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Result` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ResponseBuilder`, `Response` [INFO] [stdout] --> src/models/dtos.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_http::{Error, Response, ResponseBuilder}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/models/dtos.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{HttpRequest, HttpResponse, Responder, http::StatusCode}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/app/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/app/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/app/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpServer`, `Responder`, `web::Json` [INFO] [stdout] --> src/app/otp.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{ web, web::Json, App, HttpServer, Responder, HttpResponse, http::StatusCode}; [INFO] [stdout] | ^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BodySize`, `Body`, `MessageBody`, `ResponseBody`, `SizedStream` [INFO] [stdout] --> src/app/otp.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_http::body::{Body, BodySize, MessageBody, ResponseBody, SizedStream}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `o` [INFO] [stdout] --> src/app/otp.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use slog::{Drain, o, info}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `slog_term::*` [INFO] [stdout] --> src/app/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use slog_term::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `o` [INFO] [stdout] --> src/utils/util.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use slog::{Drain, o, info, Logger}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/app/otp.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn generate_otp(mut payload: web::Json, data: web::Data) -> HttpResponse { [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: unused import: `Drain` [INFO] [stdout] --> src/app/otp.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use slog::{Drain, o, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Drain` [INFO] [stdout] --> src/utils/util.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use slog::{Drain, o, info, Logger}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:34:65 [INFO] [stdout] | [INFO] [stdout] 34 | let config: AppConfig = serde_yaml::from_reader(f).map_err(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/app/otp.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | serde_json::to_string(&otp).unwrap_or_else(|err| format!("No otp found")) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.28s [INFO] running `Command { std: "docker" "inspect" "82b952db42a37e9c30e228e4c6ab8dd0c873a9078b75ee9d6db428037f7e2c74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82b952db42a37e9c30e228e4c6ab8dd0c873a9078b75ee9d6db428037f7e2c74", kill_on_drop: false }` [INFO] [stdout] 82b952db42a37e9c30e228e4c6ab8dd0c873a9078b75ee9d6db428037f7e2c74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen", 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] 0cd3657c25423a34716a5f5080bf2e89c0586ffc79ffa457d9fce938012d3a57 [INFO] running `Command { std: "docker" "start" "-a" "0cd3657c25423a34716a5f5080bf2e89c0586ffc79ffa457d9fce938012d3a57", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Consumer`, `FetchOffset`, `GroupOffsetStorage` [INFO] [stderr] --> src/main.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | use kafka::consumer::{Consumer, GroupOffsetStorage, FetchOffset}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Result` [INFO] [stderr] --> src/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::Result; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ResponseBuilder`, `Response` [INFO] [stderr] --> src/models/dtos.rs:5:25 [INFO] [stderr] | [INFO] [stderr] 5 | use actix_http::{Error, Response, ResponseBuilder}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `http::StatusCode` [INFO] [stderr] --> src/models/dtos.rs:6:55 [INFO] [stderr] | [INFO] [stderr] 6 | use actix_web::{HttpRequest, HttpResponse, Responder, http::StatusCode}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs::File` [INFO] [stderr] --> src/app/mod.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::prelude::*` [INFO] [stderr] --> src/app/mod.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::io::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> src/app/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `App`, `HttpServer`, `Responder`, `web::Json` [INFO] [stderr] --> src/app/otp.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_web::{ web, web::Json, App, HttpServer, Responder, HttpResponse, http::StatusCode}; [INFO] [stderr] | ^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BodySize`, `Body`, `MessageBody`, `ResponseBody`, `SizedStream` [INFO] [stderr] --> src/app/otp.rs:4:24 [INFO] [stderr] | [INFO] [stderr] 4 | use actix_http::body::{Body, BodySize, MessageBody, ResponseBody, SizedStream}; [INFO] [stderr] | ^^^^ ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `o` [INFO] [stderr] --> src/app/otp.rs:5:19 [INFO] [stderr] | [INFO] [stderr] 5 | use slog::{Drain, o, info}; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `slog_term::*` [INFO] [stderr] --> src/app/mod.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use slog_term::*; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `o` [INFO] [stderr] --> src/utils/util.rs:2:19 [INFO] [stderr] | [INFO] [stderr] 2 | use slog::{Drain, o, info, Logger}; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/app/otp.rs:16:27 [INFO] [stderr] | [INFO] [stderr] 16 | pub async fn generate_otp(mut payload: web::Json, data: web::Data) -> HttpResponse { [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Drain` [INFO] [stderr] --> src/app/otp.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | use slog::{Drain, o, info}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Drain` [INFO] [stderr] --> src/utils/util.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | use slog::{Drain, o, info, Logger}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/main.rs:34:65 [INFO] [stderr] | [INFO] [stderr] 34 | let config: AppConfig = serde_yaml::from_reader(f).map_err(|err| { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/app/otp.rs:13:49 [INFO] [stderr] | [INFO] [stderr] 13 | serde_json::to_string(&otp).unwrap_or_else(|err| format!("No otp found")) [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] [INFO] [stderr] warning: 17 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/notif_worker-477a1c4a6a3da2ed [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0cd3657c25423a34716a5f5080bf2e89c0586ffc79ffa457d9fce938012d3a57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cd3657c25423a34716a5f5080bf2e89c0586ffc79ffa457d9fce938012d3a57", kill_on_drop: false }` [INFO] [stdout] 0cd3657c25423a34716a5f5080bf2e89c0586ffc79ffa457d9fce938012d3a57