[INFO] cloning repository https://github.com/Andersonfrfilho/rust-backend-actix [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Andersonfrfilho/rust-backend-actix" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndersonfrfilho%2Frust-backend-actix", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndersonfrfilho%2Frust-backend-actix'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 488ea7dd9366f955b32d1e54ce08d0888bb39b3e [INFO] testing Andersonfrfilho/rust-backend-actix against try#8262275854dc0e5381c9d42d56257d94932c5a87 for pr-90799 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAndersonfrfilho%2Frust-backend-actix" "/workspace/builds/worker-54/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-54/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Andersonfrfilho/rust-backend-actix on toolchain 8262275854dc0e5381c9d42d56257d94932c5a87 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Andersonfrfilho/rust-backend-actix [INFO] finished tweaking git repo https://github.com/Andersonfrfilho/rust-backend-actix [INFO] tweaked toml for git repo https://github.com/Andersonfrfilho/rust-backend-actix written to /workspace/builds/worker-54/source/Cargo.toml [INFO] crate git repo https://github.com/Andersonfrfilho/rust-backend-actix already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "fetch" "--manifest-path" "Cargo.toml", 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93e260535bd9dccbb01166f4a609e5b3767b27b4bef24f316301498b0b07d9b4 [INFO] running `Command { std: "docker" "start" "-a" "93e260535bd9dccbb01166f4a609e5b3767b27b4bef24f316301498b0b07d9b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93e260535bd9dccbb01166f4a609e5b3767b27b4bef24f316301498b0b07d9b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93e260535bd9dccbb01166f4a609e5b3767b27b4bef24f316301498b0b07d9b4", kill_on_drop: false }` [INFO] [stdout] 93e260535bd9dccbb01166f4a609e5b3767b27b4bef24f316301498b0b07d9b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39d0468877eeeee9d665d57cc364ffd01871ae399e6a0c627e277964ae5c0320 [INFO] running `Command { std: "docker" "start" "-a" "39d0468877eeeee9d665d57cc364ffd01871ae399e6a0c627e277964ae5c0320", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.82 [INFO] [stderr] Compiling log v0.4.13 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling object v0.23.0 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling v_escape v0.15.0 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling v_htmlescape v0.12.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling standback v0.2.14 [INFO] [stderr] Compiling thread_local v1.1.2 [INFO] [stderr] Compiling time v0.2.25 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling tinyvec v1.1.0 [INFO] [stderr] Compiling addr2line v0.14.1 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling sha2 v0.9.3 [INFO] [stderr] Compiling sha-1 v0.9.2 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling blowfish v0.7.0 [INFO] [stderr] Compiling buf-min v0.4.0 [INFO] [stderr] Compiling universal-hash v0.4.0 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling http v0.2.3 [INFO] [stderr] Compiling bytestring v1.0.0 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling parking_lot_core v0.8.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling backtrace v0.3.56 [INFO] [stderr] Compiling flate2 v1.0.19 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling bcrypt v0.9.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling pem v0.8.2 [INFO] [stderr] Compiling env_logger v0.8.2 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tokio v0.2.24 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling futures-macro v0.3.12 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling pin-project-internal v1.0.4 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling v_escape_derive v0.8.4 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.12 [INFO] [stderr] Compiling thiserror v1.0.23 [INFO] [stderr] Compiling pin-project v1.0.4 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling futures-executor v0.3.12 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures v0.3.12 [INFO] [stderr] Compiling trust-dns-proto v0.19.6 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.6 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling actix-router v0.2.6 [INFO] [stderr] Compiling actix-http v2.2.0 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.2 [INFO] [stderr] Compiling actix-web-httpauth v0.5.0 [INFO] [stderr] Compiling actix-files v0.5.0 [INFO] [stderr] Compiling actix-session v0.4.0 [INFO] [stderr] Compiling actix-cors v0.5.4 [INFO] [stderr] Compiling actixtest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `App`, `get` [INFO] [stdout] --> src/errors/custom.rs:2:38 [INFO] [stdout] | [INFO] [stdout] 2 | dev::HttpResponseBuilder, error, get, http::header, http::StatusCode, App, HttpResponse, [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `Error`, `HttpResponse`, `dev::HttpResponseBuilder`, `error`, `get`, `http::StatusCode`, `http::header` [INFO] [stdout] --> src/middlewares/auth.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | dev::HttpResponseBuilder, dev::ServiceRequest, error, get, http::header, http::StatusCode, App, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] 3 | Error, HttpResponse, [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web_httpauth::extractors::AuthenticationError` [INFO] [stdout] --> src/middlewares/auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web_httpauth::extractors::AuthenticationError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Error` [INFO] [stdout] --> src/middlewares/auth.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use derive_more::{Display, Error}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jsonwebtoken::errors::ErrorKind` [INFO] [stdout] --> src/middlewares/auth.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use jsonwebtoken::errors::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result`, `error` [INFO] [stdout] --> src/routes/session.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{web,http,error,Result, Responder,HttpRequest, HttpResponse}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Error` [INFO] [stdout] --> src/routes/session.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use derive_more::{Display, Error}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Session` [INFO] [stdout] --> src/routes/session.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_session::{Session}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/routes/session.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_files as fs` [INFO] [stdout] --> src/routes/session.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_files as fs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ContentDisposition`, `DispositionType` [INFO] [stdout] --> src/routes/session.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use actix_web::http::header::{ContentDisposition, DispositionType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/session.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | let mut header = Header::new(Algorithm::HS512); [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] error[E0271]: type mismatch resolving `::Output == Result` [INFO] [stdout] --> src/main.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | .wrap(HttpAuthentication::bearer(middlewares::auth::validator)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `actix_web::Error`, found enum `custom::MyError` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, actix_web::Error>` [INFO] [stdout] found enum `Result<_, custom::MyError>` [INFO] [stdout] note: required by `HttpAuthentication::::bearer` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/actix-web-httpauth-0.5.0/src/middleware.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn bearer(process_fn: F) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Output == Result` [INFO] [stdout] --> src/main.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | .wrap(HttpAuthentication::bearer(middlewares::auth::validator)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `custom::MyError`, found struct `actix_web::Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, custom::MyError>` [INFO] [stdout] found enum `Result<_, actix_web::Error>` [INFO] [stdout] = note: required because of the requirements on the impl of `Transform` for `HttpAuthentication impl futures::Future {validator}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `actixtest` due to 3 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "39d0468877eeeee9d665d57cc364ffd01871ae399e6a0c627e277964ae5c0320", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39d0468877eeeee9d665d57cc364ffd01871ae399e6a0c627e277964ae5c0320", kill_on_drop: false }` [INFO] [stdout] 39d0468877eeeee9d665d57cc364ffd01871ae399e6a0c627e277964ae5c0320