[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 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprateek-90%2Fnotif-service" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/prateek-90/notif-service 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/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-13/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" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_yaml v0.8.12 [INFO] [stderr] Downloaded amq-protocol-codegen v1.4.0 [INFO] [stderr] Downloaded amq-protocol v1.4.0 [INFO] [stderr] Downloaded snafu v0.4.4 [INFO] [stderr] Downloaded amiquip v0.3.3 [INFO] [stderr] Downloaded snafu-derive v0.4.4 [INFO] [stderr] Downloaded amq-protocol-types v1.2.0 [INFO] [stderr] Downloaded cookie-factory v0.2.4 [INFO] [stderr] Downloaded pin-project v0.4.19 [INFO] [stderr] Downloaded pin-project-internal v0.4.19 [INFO] [stderr] Downloaded git2 v0.10.2 [INFO] [stderr] Downloaded built v0.3.2 [INFO] [stderr] Downloaded libgit2-sys v0.9.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] e3ce7721b0bbd8d7af50eaf9699b71e6e23986c23c4d8310302cf2ab0249e5a2 [INFO] running `Command { std: "docker" "start" "-a" "e3ce7721b0bbd8d7af50eaf9699b71e6e23986c23c4d8310302cf2ab0249e5a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e3ce7721b0bbd8d7af50eaf9699b71e6e23986c23c4d8310302cf2ab0249e5a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3ce7721b0bbd8d7af50eaf9699b71e6e23986c23c4d8310302cf2ab0249e5a2", kill_on_drop: false }` [INFO] [stdout] e3ce7721b0bbd8d7af50eaf9699b71e6e23986c23c4d8310302cf2ab0249e5a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] cbe6deab3e50de57111254980b394e601b0d4dd89bae3b1fd9d38ae7217f8268 [INFO] running `Command { std: "docker" "start" "-a" "cbe6deab3e50de57111254980b394e601b0d4dd89bae3b1fd9d38ae7217f8268", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling arc-swap v0.4.6 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Compiling gimli v0.21.0 [INFO] [stderr] Compiling object v0.19.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 doc-comment v0.3.3 [INFO] [stderr] Compiling ref_slice v1.2.0 [INFO] [stderr] Compiling indexmap v1.4.0 [INFO] [stderr] Compiling bytestring v0.1.5 [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling dirs-sys v0.3.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling snap v0.2.5 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling flate2 v1.0.14 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling crossbeam-queue v0.2.2 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Compiling input_buffer v0.2.0 [INFO] [stderr] Compiling term v0.6.1 [INFO] [stderr] Compiling crossbeam v0.7.3 [INFO] [stderr] Compiling twox-hash v1.5.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling slog-scope v4.3.0 [INFO] [stderr] Compiling slog-async v2.5.0 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling slog-stdlog v4.0.0 [INFO] [stderr] Compiling slog-term v2.6.0 [INFO] [stderr] Compiling addr2line v0.12.1 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling openssl-sys v0.9.57 [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 slog-envlogger v2.2.0 [INFO] [stderr] Compiling error-chain v0.10.0 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling flate2 v0.2.20 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling snafu-derive v0.4.4 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling actix-codec v0.2.0 [INFO] [stderr] Compiling git2 v0.10.2 [INFO] [stderr] Compiling kafka v0.8.0 [INFO] [stderr] Compiling snafu v0.4.4 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [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 enum-as-inner v0.3.2 [INFO] [stderr] Compiling async-trait v0.1.33 [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 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 actix-connect v1.0.2 [INFO] [stderr] Compiling built v0.3.2 [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 amiquip v0.3.3 [INFO] [stderr] Compiling amq-protocol-codegen v1.4.0 [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 45s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: actix-web v2.0.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 10` [INFO] running `Command { std: "docker" "inspect" "cbe6deab3e50de57111254980b394e601b0d4dd89bae3b1fd9d38ae7217f8268", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbe6deab3e50de57111254980b394e601b0d4dd89bae3b1fd9d38ae7217f8268", kill_on_drop: false }` [INFO] [stdout] cbe6deab3e50de57111254980b394e601b0d4dd89bae3b1fd9d38ae7217f8268 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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] 87e143163ccf40953f9c9c4503b26254f4f5a5604e4a295eb41bc593beb12a59 [INFO] running `Command { std: "docker" "start" "-a" "87e143163ccf40953f9c9c4503b26254f4f5a5604e4a295eb41bc593beb12a59", 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.86s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: actix-web v2.0.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 11` [INFO] running `Command { std: "docker" "inspect" "87e143163ccf40953f9c9c4503b26254f4f5a5604e4a295eb41bc593beb12a59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87e143163ccf40953f9c9c4503b26254f4f5a5604e4a295eb41bc593beb12a59", kill_on_drop: false }` [INFO] [stdout] 87e143163ccf40953f9c9c4503b26254f4f5a5604e4a295eb41bc593beb12a59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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", 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] 6f1d691c1a3a6811bb1462531100ef0758ecf80ba868421e28305df9741f1637 [INFO] running `Command { std: "docker" "start" "-a" "6f1d691c1a3a6811bb1462531100ef0758ecf80ba868421e28305df9741f1637", 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: `notif-worker` (bin "notif-worker" test) generated 17 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.33s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: actix-web v2.0.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 12` [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/notif_worker-e4ac4038e8090b17) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6f1d691c1a3a6811bb1462531100ef0758ecf80ba868421e28305df9741f1637", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f1d691c1a3a6811bb1462531100ef0758ecf80ba868421e28305df9741f1637", kill_on_drop: false }` [INFO] [stdout] 6f1d691c1a3a6811bb1462531100ef0758ecf80ba868421e28305df9741f1637