[INFO] cloning repository https://github.com/Sebastian-Noren/WebApi_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sebastian-Noren/WebApi_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSebastian-Noren%2FWebApi_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSebastian-Noren%2FWebApi_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c1816b032671e473d0a06114f2545d34e8d9e60c [INFO] building Sebastian-Noren/WebApi_Rust against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSebastian-Noren%2FWebApi_Rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Sebastian-Noren/WebApi_Rust [INFO] finished tweaking git repo https://github.com/Sebastian-Noren/WebApi_Rust [INFO] tweaked toml for git repo https://github.com/Sebastian-Noren/WebApi_Rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Sebastian-Noren/WebApi_Rust on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Sebastian-Noren/WebApi_Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hyper-timeout v0.5.1 [INFO] [stderr] Downloaded prost-types v0.13.3 [INFO] [stderr] Downloaded pathdiff v0.2.2 [INFO] [stderr] Downloaded prost v0.13.3 [INFO] [stderr] Downloaded prost-derive v0.13.3 [INFO] [stderr] Downloaded pest_generator v2.7.14 [INFO] [stderr] Downloaded pest_derive v2.7.14 [INFO] [stderr] Downloaded pest_meta v2.7.14 [INFO] [stderr] Downloaded prettyplease v0.2.24 [INFO] [stderr] Downloaded prost-build v0.13.3 [INFO] [stderr] Downloaded libm v0.2.10 [INFO] [stderr] Downloaded flexi_logger v0.29.3 [INFO] [stderr] Downloaded redis v0.27.5 [INFO] [stderr] Downloaded rustix v0.38.36 [INFO] [stderr] Downloaded petgraph v0.6.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d2c4b47393e9d4b829053d05b8c426314ef8ebcd2ba902d69b4e896e7fa6b33 [INFO] running `Command { std: "docker" "start" "-a" "7d2c4b47393e9d4b829053d05b8c426314ef8ebcd2ba902d69b4e896e7fa6b33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d2c4b47393e9d4b829053d05b8c426314ef8ebcd2ba902d69b4e896e7fa6b33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d2c4b47393e9d4b829053d05b8c426314ef8ebcd2ba902d69b4e896e7fa6b33", kill_on_drop: false }` [INFO] [stdout] 7d2c4b47393e9d4b829053d05b8c426314ef8ebcd2ba902d69b4e896e7fa6b33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b42183f441a693547bb90bfdaaf8ef7794f566283db5ad9f8f4eb676856ce0e1 [INFO] running `Command { std: "docker" "start" "-a" "b42183f441a693547bb90bfdaaf8ef7794f566283db5ad9f8f4eb676856ce0e1", kill_on_drop: false }` [INFO] [stderr] Compiling value-bag v1.9.0 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling libm v0.2.10 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling cc v1.1.18 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling rustix v0.38.36 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling prettyplease v0.2.24 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling time v0.3.9 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling ordered-multimap v0.6.0 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling rust-ini v0.19.0 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling pathdiff v0.2.2 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling prost-derive v0.13.3 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling pin-project-internal v1.1.6 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling pin-project v1.1.6 [INFO] [stderr] Compiling pest v2.7.14 [INFO] [stderr] Compiling flexi_logger v0.29.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling prost v0.13.3 [INFO] [stderr] Compiling prost-types v0.13.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling prost-build v0.13.3 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stderr] Compiling tonic-build v0.12.3 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Compiling rsa v0.9.6 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling tower v0.5.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling WebApi v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling axum v0.7.7 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling config v0.14.0 [INFO] [stderr] Compiling polling v3.7.3 [INFO] [stderr] Compiling async-io v2.3.4 [INFO] [stderr] Compiling hyper v1.5.0 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-std v1.13.0 [INFO] [stderr] Compiling redis v0.27.5 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-timeout v0.5.1 [INFO] [stderr] Compiling tonic v0.12.3 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stdout] warning: unused imports: `delete`, `post`, and `put` [INFO] [stdout] --> src/routes/handlers.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::{delete, get, post, put, web, HttpResponse, Responder, Error}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AeadCore` and `generic_array::GenericArray` [INFO] [stdout] --> src/cryptography.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | aead::{Aead, AeadCore, generic_array::GenericArray, KeyInit}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Keypair` [INFO] [stdout] --> src/cryptography.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | use rsa::signature::{Keypair, RandomizedSigner, SignatureEncoding, Verifier}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cryptography.rs:267:64 [INFO] [stdout] | [INFO] [stdout] 267 | .map_err(|e| format!("Key Generation failed: {}", e))?;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/handlers.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut content = format!("Received areaId: {}, imgId: {}", area_id, img_id); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/routes/handlers.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::prelude` [INFO] [stdout] --> src/routes/handlers.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::TryFutureExt` [INFO] [stdout] --> src/routes/handlers.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::TryFutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cryptography.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/routes/handlers.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn add(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subtract` is never used [INFO] [stdout] --> src/routes/handlers.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn subtract(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply` is never used [INFO] [stdout] --> src/routes/handlers.rs:177:4 [INFO] [stdout] | [INFO] [stdout] 177 | fn multiply(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_operations` is never used [INFO] [stdout] --> src/routes/handlers.rs:182:14 [INFO] [stdout] | [INFO] [stdout] 182 | pub async fn compute_operations(a: i32, b: i32, c: i32) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `WebApi` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `web_api` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cryptography` and `models` [INFO] [stdout] --> src/main.rs:6:68 [INFO] [stdout] | [INFO] [stdout] 6 | use WebApi::{config, constants, routes, redis_server::RedisClient, models, cryptography}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 41s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 6` [INFO] running `Command { std: "docker" "inspect" "b42183f441a693547bb90bfdaaf8ef7794f566283db5ad9f8f4eb676856ce0e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b42183f441a693547bb90bfdaaf8ef7794f566283db5ad9f8f4eb676856ce0e1", kill_on_drop: false }` [INFO] [stdout] b42183f441a693547bb90bfdaaf8ef7794f566283db5ad9f8f4eb676856ce0e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "RUSTDOCFLAGS=--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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f228179966960b1213b5f15aa3f9456e0e962e43da22436787c078d8e01d9dd1 [INFO] running `Command { std: "docker" "start" "-a" "f228179966960b1213b5f15aa3f9456e0e962e43da22436787c078d8e01d9dd1", kill_on_drop: false }` [INFO] [stderr] Compiling WebApi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `delete`, `post`, and `put` [INFO] [stdout] --> src/routes/handlers.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::{delete, get, post, put, web, HttpResponse, Responder, Error}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AeadCore` and `generic_array::GenericArray` [INFO] [stdout] --> src/cryptography.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | aead::{Aead, AeadCore, generic_array::GenericArray, KeyInit}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Keypair` [INFO] [stdout] --> src/cryptography.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | use rsa::signature::{Keypair, RandomizedSigner, SignatureEncoding, Verifier}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cryptography.rs:267:64 [INFO] [stdout] | [INFO] [stdout] 267 | .map_err(|e| format!("Key Generation failed: {}", e))?;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/handlers.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut content = format!("Received areaId: {}, imgId: {}", area_id, img_id); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/routes/handlers.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::prelude` [INFO] [stdout] --> src/routes/handlers.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::TryFutureExt` [INFO] [stdout] --> src/routes/handlers.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::TryFutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cryptography.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/routes/handlers.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn add(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subtract` is never used [INFO] [stdout] --> src/routes/handlers.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn subtract(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply` is never used [INFO] [stdout] --> src/routes/handlers.rs:177:4 [INFO] [stdout] | [INFO] [stdout] 177 | fn multiply(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_operations` is never used [INFO] [stdout] --> src/routes/handlers.rs:182:14 [INFO] [stdout] | [INFO] [stdout] 182 | pub async fn compute_operations(a: i32, b: i32, c: i32) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `WebApi` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `web_api` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cryptography` and `models` [INFO] [stdout] --> src/main.rs:6:68 [INFO] [stdout] | [INFO] [stdout] 6 | use WebApi::{config, constants, routes, redis_server::RedisClient, models, cryptography}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete`, `post`, and `put` [INFO] [stdout] --> src/routes/handlers.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use actix_web::{delete, get, post, put, web, HttpResponse, Responder, Error}; [INFO] [stdout] | ^^^^^^ ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AeadCore` and `generic_array::GenericArray` [INFO] [stdout] --> src/cryptography.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | aead::{Aead, AeadCore, generic_array::GenericArray, KeyInit}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Keypair` [INFO] [stdout] --> src/cryptography.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | use rsa::signature::{Keypair, RandomizedSigner, SignatureEncoding, Verifier}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/cryptography.rs:267:64 [INFO] [stdout] | [INFO] [stdout] 267 | .map_err(|e| format!("Key Generation failed: {}", e))?;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/routes/handlers.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut content = format!("Received areaId: {}, imgId: {}", area_id, img_id); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/routes/handlers.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::prelude` [INFO] [stdout] --> src/routes/handlers.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::TryFutureExt` [INFO] [stdout] --> src/routes/handlers.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::TryFutureExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/cryptography.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/routes/handlers.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn add(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subtract` is never used [INFO] [stdout] --> src/routes/handlers.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn subtract(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiply` is never used [INFO] [stdout] --> src/routes/handlers.rs:177:4 [INFO] [stdout] | [INFO] [stdout] 177 | fn multiply(a: i32, b: i32, c: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_operations` is never used [INFO] [stdout] --> src/routes/handlers.rs:182:14 [INFO] [stdout] | [INFO] [stdout] 182 | pub async fn compute_operations(a: i32, b: i32, c: i32) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.97s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 6` [INFO] running `Command { std: "docker" "inspect" "f228179966960b1213b5f15aa3f9456e0e962e43da22436787c078d8e01d9dd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f228179966960b1213b5f15aa3f9456e0e962e43da22436787c078d8e01d9dd1", kill_on_drop: false }` [INFO] [stdout] f228179966960b1213b5f15aa3f9456e0e962e43da22436787c078d8e01d9dd1