[INFO] updating cached repository https://github.com/AOSC-Dev/pakreqWeb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] [stderr] From https://github.com/AOSC-Dev/pakreqWeb [INFO] [stderr] 35ce489..ba50164 master -> master [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ba501640733a583dc3cea203c3d163a42bb93269 [INFO] testing AOSC-Dev/pakreqWeb against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAOSC-Dev%2FpakreqWeb" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AOSC-Dev/pakreqWeb on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AOSC-Dev/pakreqWeb [INFO] finished tweaking git repo https://github.com/AOSC-Dev/pakreqWeb [INFO] tweaked toml for git repo https://github.com/AOSC-Dev/pakreqWeb written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/AOSC-Dev/pakreqWeb already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 589b618f3389f2f1ef5fac651b13d32317e3e82cd89f46c3589ded47c331a371 [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" "589b618f3389f2f1ef5fac651b13d32317e3e82cd89f46c3589ded47c331a371", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "589b618f3389f2f1ef5fac651b13d32317e3e82cd89f46c3589ded47c331a371", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "589b618f3389f2f1ef5fac651b13d32317e3e82cd89f46c3589ded47c331a371", kill_on_drop: false }` [INFO] [stdout] 589b618f3389f2f1ef5fac651b13d32317e3e82cd89f46c3589ded47c331a371 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=forbid" "-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:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e071dc06133d4e81e30ccb64eb1b2b5089c6b037b765a07dc7ee6926a91fdcf [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" "7e071dc06133d4e81e30ccb64eb1b2b5089c6b037b765a07dc7ee6926a91fdcf", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling bytes v0.5.5 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling gimli v0.22.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling object v0.20.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling v_escape v0.12.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling v_htmlescape v0.10.0 [INFO] [stderr] Compiling encoding_index_tests v0.1.4 [INFO] [stderr] Compiling anymap v0.12.1 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling yansi-term v0.1.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling bindgen v0.50.1 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling std_prelude v0.2.12 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling shell-words v1.0.0 [INFO] [stderr] Compiling wild v2.0.4 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling lock_api v0.4.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling miniz_oxide v0.4.0 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling yaml-rust v0.4.4 [INFO] [stderr] Compiling error-chain v0.12.2 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-korean v1.20141219.5 [INFO] [stderr] Compiling encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-japanese v1.20141219.5 [INFO] [stderr] Compiling encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Compiling clang-sys v0.28.1 [INFO] [stderr] Compiling line-wrap v0.1.1 [INFO] [stderr] Compiling annotate-snippets v0.9.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling buf-min v0.1.0 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling bytestring v0.1.5 [INFO] [stderr] Compiling path_abs v0.5.0 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling encoding_rs v0.8.23 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling term_size v0.3.2 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling terminal_size v0.1.13 [INFO] [stderr] Compiling termios v0.3.2 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling bstr v0.2.13 [INFO] [stderr] Compiling content_inspector v0.2.4 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling encoding v0.2.33 [INFO] [stderr] Compiling flate2 v1.0.16 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling syn v1.0.34 [INFO] [stderr] Compiling addr2line v0.13.0 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling globset v0.4.5 [INFO] [stderr] Compiling console v0.11.3 [INFO] [stderr] Compiling toolchain_find v0.1.4 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.5 [INFO] [stderr] Compiling proc-quote-impl v0.3.2 [INFO] [stderr] Compiling cexpr v0.3.6 [INFO] [stderr] Compiling backtrace v0.3.50 [INFO] [stderr] Compiling r2d2 v0.8.9 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling ring v0.16.15 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling onig_sys v69.5.0 [INFO] [stderr] Compiling libgit2-sys v0.12.7+1.0.0 [INFO] [stderr] Compiling ansi_colours v1.0.1 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [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 brotli2 v0.3.2 [INFO] [stderr] Compiling onig v6.0.0 [INFO] [stderr] Compiling git2 v0.13.6 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling proc-quote v0.3.2 [INFO] [stderr] Compiling v_eval v0.6.0 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling derive_more v0.99.9 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling actix-macros v0.1.2 [INFO] [stderr] Compiling v_escape_derive v0.8.1 [INFO] [stderr] Compiling liquid-derive v0.20.1 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling async-trait v0.1.36 [INFO] [stderr] Compiling enum-as-inner v0.3.2 [INFO] [stderr] Compiling yarte_html v0.12.0 [INFO] [stderr] Compiling actix-web-codegen v0.2.2 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling which v2.0.1 [INFO] [stderr] Compiling pin-project v0.4.22 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling actix-threadpool v0.3.2 [INFO] [stderr] Compiling serde v1.0.114 [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 argonautica v0.2.1 (https://github.com/bcmyers/argonautica#67fc8d8d) [INFO] [stderr] Compiling actix-server v1.0.3 [INFO] [stderr] Compiling actix-tls v1.0.0 [INFO] [stderr] Compiling chrono v0.4.13 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling kstring v0.1.2 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Compiling string_cache v0.8.0 [INFO] [stderr] Compiling bincode v1.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_yaml v0.8.13 [INFO] [stderr] Compiling actix-router v0.2.4 [INFO] [stderr] Compiling trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling liquid-core v0.20.2 [INFO] [stderr] Compiling plist v1.0.0 [INFO] [stderr] Compiling simple_asn1 v0.4.0 [INFO] [stderr] Compiling diesel v1.4.5 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling yarte_helpers v0.12.0 [INFO] [stderr] Compiling markup5ever v0.10.0 [INFO] [stderr] Compiling actix-connect v1.0.2 [INFO] [stderr] Compiling yarte_parser v0.12.0 [INFO] [stderr] Compiling actix-http v1.0.1 [INFO] [stderr] Compiling syntect v4.2.0 [INFO] [stderr] Compiling yarte_hir v0.12.0 [INFO] [stderr] Compiling liquid-lib v0.20.2 [INFO] [stderr] Compiling awc v1.0.1 [INFO] [stderr] Compiling liquid v0.20.1 [INFO] [stderr] Compiling yarte_dom v0.12.0 [INFO] [stderr] Compiling actix-web v2.0.0 [INFO] [stderr] Compiling yarte_codegen v0.12.0 [INFO] [stderr] Compiling bat v0.15.4 [INFO] [stderr] Compiling actix-identity v0.2.1 [INFO] [stderr] Compiling yarte_derive v0.12.0 [INFO] [stderr] Compiling yarte v0.12.0 [INFO] [stderr] Compiling pakreqWeb-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Identity` [INFO] [stdout] --> src/main.rs:4:44 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_identity::{CookieIdentityPolicy, Identity, IdentityService}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/main.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{http, http::StatusCode, middleware, web, App, Error, HttpServer, Responder}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Responder`, `error` [INFO] [stdout] --> src/auth.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{error, web, Error, Responder}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/auth.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{http, http::StatusCode, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::PgConnection` [INFO] [stdout] --> src/auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestInput` [INFO] [stdout] --> src/db.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Oauth, Request, RequestInput, RequestStr, User}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `auth`, `db`, `models` [INFO] [stdout] --> src/oauth.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{auth, db, models, DbPool, BAD_REQUEST}; [INFO] [stdout] | ^^^^ ^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INTERNAL_ERR_RESPONSE`, `NOT_AUTHORIZED_RESPONSE` [INFO] [stdout] --> src/oauth.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::rest::{BAD_REQUEST_RETURN, INTERNAL_ERR_RESPONSE, NOT_AUTHORIZED_RESPONSE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Responder`, `error` [INFO] [stdout] --> src/oauth.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{error, web, Error, Responder}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/oauth.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{http, http::StatusCode, HttpRequest, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/oauth.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{DateTime, Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `EncodingKey`, `Header`, `Validation`, `decode`, `encode` [INFO] [stdout] --> src/oauth.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/oauth.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/oauth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Iter`, `PathBuf` [INFO] [stdout] --> src/oauth.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::{Iter, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> src/rest.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{auth, db, models, DbPool}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Responder`, `error` [INFO] [stdout] --> src/rest.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{error, web, Error, Responder}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/rest.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{http, http::StatusCode, HttpRequest, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/oauth.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pool: web::Data, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/oauth.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `secret` [INFO] [stdout] --> src/oauth.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | if let Ok(secret) = std::env::var("TG_BOT_SECRET") { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/oauth.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pool: web::Data, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/oauth.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_user_by_oauth` [INFO] [stdout] --> src/db.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn get_user_by_oauth( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `close_request_by_id` [INFO] [stdout] --> src/db.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn close_request_by_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_user` [INFO] [stdout] --> src/db.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn add_user(conn: &PgConnection, user_: User) -> Result<(), diesel::result::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_oauth_info` [INFO] [stdout] --> src/db.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn add_oauth_info(conn: &PgConnection, info: Oauth) -> Result<(), diesel::result::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auth_date` [INFO] [stdout] --> src/oauth.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | auth_date: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/oauth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | id: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/oauth.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | hash: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `username` [INFO] [stdout] --> src/oauth.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | username: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `photo_url` [INFO] [stdout] --> src/oauth.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | photo_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `first_name` [INFO] [stdout] --> src/oauth.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | first_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_name` [INFO] [stdout] --> src/oauth.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | last_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/oauth.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | data: TgProfile, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_jwt_token` [INFO] [stdout] --> src/rest.rs:178:10 [INFO] [stdout] | [INFO] [stdout] 178 | async fn validate_jwt_token(token: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `base_url` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | base_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `pakreqWeb_rs` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `pakreq_web_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6m 26s [INFO] running `Command { std: "docker" "inspect" "7e071dc06133d4e81e30ccb64eb1b2b5089c6b037b765a07dc7ee6926a91fdcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e071dc06133d4e81e30ccb64eb1b2b5089c6b037b765a07dc7ee6926a91fdcf", kill_on_drop: false }` [INFO] [stdout] 7e071dc06133d4e81e30ccb64eb1b2b5089c6b037b765a07dc7ee6926a91fdcf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=forbid" "-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:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c7f78bc67ac9c1fbc6736fdec36ea53d198b1ee2c013d81d899a35f446d53ef [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" "9c7f78bc67ac9c1fbc6736fdec36ea53d198b1ee2c013d81d899a35f446d53ef", kill_on_drop: false }` [INFO] [stderr] Compiling pakreqWeb-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Identity` [INFO] [stdout] --> src/main.rs:4:44 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_identity::{CookieIdentityPolicy, Identity, IdentityService}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/main.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{http, http::StatusCode, middleware, web, App, Error, HttpServer, Responder}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Responder`, `error` [INFO] [stdout] --> src/auth.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{error, web, Error, Responder}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/auth.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{http, http::StatusCode, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::PgConnection` [INFO] [stdout] --> src/auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestInput` [INFO] [stdout] --> src/db.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Oauth, Request, RequestInput, RequestStr, User}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `auth`, `db`, `models` [INFO] [stdout] --> src/oauth.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{auth, db, models, DbPool, BAD_REQUEST}; [INFO] [stdout] | ^^^^ ^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `INTERNAL_ERR_RESPONSE`, `NOT_AUTHORIZED_RESPONSE` [INFO] [stdout] --> src/oauth.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::rest::{BAD_REQUEST_RETURN, INTERNAL_ERR_RESPONSE, NOT_AUTHORIZED_RESPONSE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Responder`, `error` [INFO] [stdout] --> src/oauth.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{error, web, Error, Responder}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/oauth.rs:4:23 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{http, http::StatusCode, HttpRequest, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/oauth.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{DateTime, Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DecodingKey`, `EncodingKey`, `Header`, `Validation`, `decode`, `encode` [INFO] [stdout] --> src/oauth.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/oauth.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/oauth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Iter`, `PathBuf` [INFO] [stdout] --> src/oauth.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::{Iter, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> src/rest.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{auth, db, models, DbPool}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Responder`, `error` [INFO] [stdout] --> src/rest.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{error, web, Error, Responder}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/rest.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{http, http::StatusCode, HttpRequest, HttpResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/oauth.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pool: web::Data, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/oauth.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `secret` [INFO] [stdout] --> src/oauth.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | if let Ok(secret) = std::env::var("TG_BOT_SECRET") { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/oauth.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pool: web::Data, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/oauth.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_user_by_oauth` [INFO] [stdout] --> src/db.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn get_user_by_oauth( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `close_request_by_id` [INFO] [stdout] --> src/db.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn close_request_by_id( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_user` [INFO] [stdout] --> src/db.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn add_user(conn: &PgConnection, user_: User) -> Result<(), diesel::result::Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_oauth_info` [INFO] [stdout] --> src/db.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn add_oauth_info(conn: &PgConnection, info: Oauth) -> Result<(), diesel::result::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auth_date` [INFO] [stdout] --> src/oauth.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | auth_date: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/oauth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | id: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hash` [INFO] [stdout] --> src/oauth.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | hash: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `username` [INFO] [stdout] --> src/oauth.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | username: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `photo_url` [INFO] [stdout] --> src/oauth.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | photo_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `first_name` [INFO] [stdout] --> src/oauth.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | first_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_name` [INFO] [stdout] --> src/oauth.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | last_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/oauth.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | data: TgProfile, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `validate_jwt_token` [INFO] [stdout] --> src/rest.rs:178:10 [INFO] [stdout] | [INFO] [stdout] 178 | async fn validate_jwt_token(token: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `base_url` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | base_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `pakreqWeb_rs` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `pakreq_web_rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.08s [INFO] running `Command { std: "docker" "inspect" "9c7f78bc67ac9c1fbc6736fdec36ea53d198b1ee2c013d81d899a35f446d53ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c7f78bc67ac9c1fbc6736fdec36ea53d198b1ee2c013d81d899a35f446d53ef", kill_on_drop: false }` [INFO] [stdout] 9c7f78bc67ac9c1fbc6736fdec36ea53d198b1ee2c013d81d899a35f446d53ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=forbid" "-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:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b91d92f816dd1fe52dbf012adc7deb1ebb31b5906f58edcb29a939f0c7ea70cd [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" "b91d92f816dd1fe52dbf012adc7deb1ebb31b5906f58edcb29a939f0c7ea70cd", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Identity` [INFO] [stderr] --> src/main.rs:4:44 [INFO] [stderr] | [INFO] [stderr] 4 | use actix_identity::{CookieIdentityPolicy, Identity, IdentityService}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `http::StatusCode` [INFO] [stderr] --> src/main.rs:6:23 [INFO] [stderr] | [INFO] [stderr] 6 | use actix_web::{http, http::StatusCode, middleware, web, App, Error, HttpServer, Responder}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Responder`, `error` [INFO] [stderr] --> src/auth.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use actix_web::{error, web, Error, Responder}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `http::StatusCode` [INFO] [stderr] --> src/auth.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | use actix_web::{http, http::StatusCode, HttpResponse}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::PgConnection` [INFO] [stderr] --> src/auth.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use diesel::PgConnection; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `RequestInput` [INFO] [stderr] --> src/db.rs:1:37 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::models::{Oauth, Request, RequestInput, RequestStr, User}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `auth`, `db`, `models` [INFO] [stderr] --> src/oauth.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::{auth, db, models, DbPool, BAD_REQUEST}; [INFO] [stderr] | ^^^^ ^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `INTERNAL_ERR_RESPONSE`, `NOT_AUTHORIZED_RESPONSE` [INFO] [stderr] --> src/oauth.rs:2:39 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::rest::{BAD_REQUEST_RETURN, INTERNAL_ERR_RESPONSE, NOT_AUTHORIZED_RESPONSE}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Responder`, `error` [INFO] [stderr] --> src/oauth.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use actix_web::{error, web, Error, Responder}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `http::StatusCode` [INFO] [stderr] --> src/oauth.rs:4:23 [INFO] [stderr] | [INFO] [stderr] 4 | use actix_web::{http, http::StatusCode, HttpRequest, HttpResponse}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Duration` [INFO] [stderr] --> src/oauth.rs:5:24 [INFO] [stderr] | [INFO] [stderr] 5 | use chrono::{DateTime, Duration, Utc}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DecodingKey`, `EncodingKey`, `Header`, `Validation`, `decode`, `encode` [INFO] [stderr] --> src/oauth.rs:6:20 [INFO] [stderr] | [INFO] [stderr] 6 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation}; [INFO] [stderr] | ^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/oauth.rs:7:26 [INFO] [stderr] | [INFO] [stderr] 7 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_json::to_string` [INFO] [stderr] --> src/oauth.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use serde_json::to_string; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Iter`, `PathBuf` [INFO] [stderr] --> src/oauth.rs:9:17 [INFO] [stderr] | [INFO] [stderr] 9 | use std::path::{Iter, PathBuf}; [INFO] [stderr] | ^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `models` [INFO] [stderr] --> src/rest.rs:1:23 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::{auth, db, models, DbPool}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Responder`, `error` [INFO] [stderr] --> src/rest.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_web::{error, web, Error, Responder}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `http::StatusCode` [INFO] [stderr] --> src/rest.rs:3:23 [INFO] [stderr] | [INFO] [stderr] 3 | use actix_web::{http, http::StatusCode, HttpRequest, HttpResponse}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pool` [INFO] [stderr] --> src/oauth.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | pool: web::Data, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/oauth.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | req: HttpRequest, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `secret` [INFO] [stderr] --> src/oauth.rs:34:15 [INFO] [stderr] | [INFO] [stderr] 34 | if let Ok(secret) = std::env::var("TG_BOT_SECRET") { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pool` [INFO] [stderr] --> src/oauth.rs:41:5 [INFO] [stderr] | [INFO] [stderr] 41 | pool: web::Data, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/oauth.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | req: HttpRequest, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_user_by_oauth` [INFO] [stderr] --> src/db.rs:81:8 [INFO] [stderr] | [INFO] [stderr] 81 | pub fn get_user_by_oauth( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `close_request_by_id` [INFO] [stderr] --> src/db.rs:103:8 [INFO] [stderr] | [INFO] [stderr] 103 | pub fn close_request_by_id( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_user` [INFO] [stderr] --> src/db.rs:135:8 [INFO] [stderr] | [INFO] [stderr] 135 | pub fn add_user(conn: &PgConnection, user_: User) -> Result<(), diesel::result::Error> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `add_oauth_info` [INFO] [stderr] --> src/db.rs:142:8 [INFO] [stderr] | [INFO] [stderr] 142 | pub fn add_oauth_info(conn: &PgConnection, info: Oauth) -> Result<(), diesel::result::Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `auth_date` [INFO] [stderr] --> src/oauth.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | auth_date: DateTime, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `id` [INFO] [stderr] --> src/oauth.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | id: u64, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `hash` [INFO] [stderr] --> src/oauth.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | hash: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `username` [INFO] [stderr] --> src/oauth.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | username: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `photo_url` [INFO] [stderr] --> src/oauth.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | photo_url: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `first_name` [INFO] [stderr] --> src/oauth.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | first_name: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `last_name` [INFO] [stderr] --> src/oauth.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | last_name: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `data` [INFO] [stderr] --> src/oauth.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | data: TgProfile, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `validate_jwt_token` [INFO] [stderr] --> src/rest.rs:178:10 [INFO] [stderr] | [INFO] [stderr] 178 | async fn validate_jwt_token(token: String) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `base_url` [INFO] [stderr] --> src/main.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 43 | base_url: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `pakreqWeb_rs` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `pakreq_web_rs` [INFO] [stderr] [INFO] [stderr] warning: 38 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.50s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/pakreqWeb_rs-f27a1634c4d37441 [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 [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b91d92f816dd1fe52dbf012adc7deb1ebb31b5906f58edcb29a939f0c7ea70cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b91d92f816dd1fe52dbf012adc7deb1ebb31b5906f58edcb29a939f0c7ea70cd", kill_on_drop: false }` [INFO] [stdout] b91d92f816dd1fe52dbf012adc7deb1ebb31b5906f58edcb29a939f0c7ea70cd