[INFO] cloning repository https://github.com/hightemp/wapp_simple_stats_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hightemp/wapp_simple_stats_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhightemp%2Fwapp_simple_stats_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhightemp%2Fwapp_simple_stats_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a66c55e5de4577d42312f1b301ec3fd3c5421963 [INFO] testing hightemp/wapp_simple_stats_rust against 1.83.0 for beta-1.84.0-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhightemp%2Fwapp_simple_stats_rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hightemp/wapp_simple_stats_rust on toolchain 1.83.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hightemp/wapp_simple_stats_rust [INFO] finished tweaking git repo https://github.com/hightemp/wapp_simple_stats_rust [INFO] tweaked toml for git repo https://github.com/hightemp/wapp_simple_stats_rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hightemp/wapp_simple_stats_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" "+1.83.0" "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-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f26b0b329a00b72a8eb8c0ea46ad9eff1f776a4fbff208135cf9e217ea49e112 [INFO] running `Command { std: "docker" "start" "-a" "f26b0b329a00b72a8eb8c0ea46ad9eff1f776a4fbff208135cf9e217ea49e112", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f26b0b329a00b72a8eb8c0ea46ad9eff1f776a4fbff208135cf9e217ea49e112", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f26b0b329a00b72a8eb8c0ea46ad9eff1f776a4fbff208135cf9e217ea49e112", kill_on_drop: false }` [INFO] [stdout] f26b0b329a00b72a8eb8c0ea46ad9eff1f776a4fbff208135cf9e217ea49e112 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8ac075aaebd86a0dcd8f223e0948a7155f748d4db47edc90b547431859c8e7e [INFO] running `Command { std: "docker" "start" "-a" "f8ac075aaebd86a0dcd8f223e0948a7155f748d4db47edc90b547431859c8e7e", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.50 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling uncased v0.9.7 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling phf_shared v0.11.1 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling time-macros v0.2.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling futures-io v0.3.26 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling ref-cast v1.0.14 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling phf v0.11.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling universal-hash v0.5.0 [INFO] [stderr] Compiling aead v0.5.1 [INFO] [stderr] Compiling cipher v0.4.3 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling aes v0.8.2 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling polyval v0.6.0 [INFO] [stderr] Compiling time v0.3.17 [INFO] [stderr] Compiling ghash v0.5.0 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling phf_generator v0.11.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling aes-gcm v0.10.1 [INFO] [stderr] Compiling phf_codegen v0.11.1 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling bstr v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling net2 v0.2.38 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling chrono-tz-build v0.0.3 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling multer v2.0.4 [INFO] [stderr] Compiling figment v0.10.8 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling async-trait v0.1.64 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling futures v0.3.26 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling chrono-tz v0.6.3 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling rocket v0.5.0-rc.2 [INFO] [stderr] Compiling globset v0.4.10 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling libsqlite3-sys v0.25.2 [INFO] [stderr] Compiling deunicode v0.4.3 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling slug v0.1.4 [INFO] [stderr] Compiling ignore v0.4.20 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling inotify v0.7.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling filetime v0.2.19 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling humansize v1.1.1 [INFO] [stderr] Compiling notify v4.0.17 [INFO] [stderr] Compiling hashlink v0.8.1 [INFO] [stderr] Compiling globwalk v0.8.1 [INFO] [stderr] Compiling normpath v0.3.2 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling hyper v0.14.24 [INFO] [stderr] Compiling rusqlite v0.28.0 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.14 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling pest v2.5.4 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.2 [INFO] [stderr] Compiling pest_meta v2.5.4 [INFO] [stderr] Compiling pest_generator v2.5.4 [INFO] [stderr] Compiling pest_derive v2.5.4 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.2 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling tokio-stream v0.1.11 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling ubyte v0.10.3 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling tera v1.17.1 [INFO] [stderr] Compiling rocket_dyn_templates v0.1.0-rc.2 [INFO] [stderr] Compiling wapp_simple_stats_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rocket::http::ContentType` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use rocket::http::ContentType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | #[macro_use] extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | if (o_request_data.v_headers.contains_key("x-real-ip")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if (o_request_data.v_headers.contains_key("x-real-ip")) { [INFO] [stdout] 98 + if o_request_data.v_headers.contains_key("x-real-ip") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | let mut i_all: i64 = conn.query_row("SELECT COUNT(*) AS c FROM visitors ORDER BY timestamp DESC", [], |o| { o.get(0) }).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Missing` and `Invalid` are never constructed [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | enum RequestDataError { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 28 | Missing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 29 | Invalid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestDataError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | / conn.execute( [INFO] [stdout] 113 | | "INSERT INTO visitors (path, ip, json) VALUES (?, ?, ?)", [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | path.clone(), [INFO] [stdout] ... | [INFO] [stdout] 118 | | ), [INFO] [stdout] 119 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 112 | let _ = conn.execute( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oW` should have a snake case name [INFO] [stdout] --> src/main.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let oW = Wrapper { value: s_counter }; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `o_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `Command { std: "docker" "inspect" "f8ac075aaebd86a0dcd8f223e0948a7155f748d4db47edc90b547431859c8e7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8ac075aaebd86a0dcd8f223e0948a7155f748d4db47edc90b547431859c8e7e", kill_on_drop: false }` [INFO] [stdout] f8ac075aaebd86a0dcd8f223e0948a7155f748d4db47edc90b547431859c8e7e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e3c5526a69dc85ff32e59965437a75af244abde5c757d791930bf0a075a516d [INFO] running `Command { std: "docker" "start" "-a" "4e3c5526a69dc85ff32e59965437a75af244abde5c757d791930bf0a075a516d", kill_on_drop: false }` [INFO] [stderr] Compiling wapp_simple_stats_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rocket::http::ContentType` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use rocket::http::ContentType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | #[macro_use] extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | if (o_request_data.v_headers.contains_key("x-real-ip")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if (o_request_data.v_headers.contains_key("x-real-ip")) { [INFO] [stdout] 98 + if o_request_data.v_headers.contains_key("x-real-ip") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | let mut i_all: i64 = conn.query_row("SELECT COUNT(*) AS c FROM visitors ORDER BY timestamp DESC", [], |o| { o.get(0) }).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Missing` and `Invalid` are never constructed [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 27 | enum RequestDataError { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 28 | Missing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 29 | Invalid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RequestDataError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/main.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | / conn.execute( [INFO] [stdout] 113 | | "INSERT INTO visitors (path, ip, json) VALUES (?, ?, ?)", [INFO] [stdout] 114 | | ( [INFO] [stdout] 115 | | path.clone(), [INFO] [stdout] ... | [INFO] [stdout] 118 | | ), [INFO] [stdout] 119 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 112 | let _ = conn.execute( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oW` should have a snake case name [INFO] [stdout] --> src/main.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | let oW = Wrapper { value: s_counter }; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `o_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "4e3c5526a69dc85ff32e59965437a75af244abde5c757d791930bf0a075a516d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e3c5526a69dc85ff32e59965437a75af244abde5c757d791930bf0a075a516d", kill_on_drop: false }` [INFO] [stdout] 4e3c5526a69dc85ff32e59965437a75af244abde5c757d791930bf0a075a516d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6e9bac0687467a344707f1c368114b1826f75fd1f59babe4d4773e50be56f4b8 [INFO] running `Command { std: "docker" "start" "-a" "6e9bac0687467a344707f1c368114b1826f75fd1f59babe4d4773e50be56f4b8", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `rocket::http::ContentType` [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use rocket::http::ContentType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | #[macro_use] extern crate rocket; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/main.rs:98:12 [INFO] [stderr] | [INFO] [stderr] 98 | if (o_request_data.v_headers.contains_key("x-real-ip")) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 98 - if (o_request_data.v_headers.contains_key("x-real-ip")) { [INFO] [stderr] 98 + if o_request_data.v_headers.contains_key("x-real-ip") { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:337:9 [INFO] [stderr] | [INFO] [stderr] 337 | let mut i_all: i64 = conn.query_row("SELECT COUNT(*) AS c FROM visitors ORDER BY timestamp DESC", [], |o| { o.get(0) }).unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variants `Missing` and `Invalid` are never constructed [INFO] [stderr] --> src/main.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 27 | enum RequestDataError { [INFO] [stderr] | ---------------- variants in this enum [INFO] [stderr] 28 | Missing, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 29 | Invalid, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RequestDataError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/main.rs:112:5 [INFO] [stderr] | [INFO] [stderr] 112 | / conn.execute( [INFO] [stderr] 113 | | "INSERT INTO visitors (path, ip, json) VALUES (?, ?, ?)", [INFO] [stderr] 114 | | ( [INFO] [stderr] 115 | | path.clone(), [INFO] [stderr] ... | [INFO] [stderr] 118 | | ), [INFO] [stderr] 119 | | ); [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 112 | let _ = conn.execute( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: variable `oW` should have a snake case name [INFO] [stderr] --> src/main.rs:152:9 [INFO] [stderr] | [INFO] [stderr] 152 | let oW = Wrapper { value: s_counter }; [INFO] [stderr] | ^^ help: convert the identifier to snake case: `o_w` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `wapp_simple_stats_rust` (bin "wapp_simple_stats_rust" test) generated 7 warnings (run `cargo fix --bin "wapp_simple_stats_rust" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/wapp_simple_stats_rust-6cff7aa52462571d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6e9bac0687467a344707f1c368114b1826f75fd1f59babe4d4773e50be56f4b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e9bac0687467a344707f1c368114b1826f75fd1f59babe4d4773e50be56f4b8", kill_on_drop: false }` [INFO] [stdout] 6e9bac0687467a344707f1c368114b1826f75fd1f59babe4d4773e50be56f4b8