[INFO] cloning repository https://github.com/zxiang77/taskmanager-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zxiang77/taskmanager-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxiang77%2Ftaskmanager-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxiang77%2Ftaskmanager-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc22c4cb064541a56090b8072cc0886b940a33dd [INFO] testing zxiang77/taskmanager-rs against try#fc4ba03ef77ca5018fb78a097d3b924d30f15bfc+target=i686-unknown-linux-musl for musl_upgrade_1_2_take3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxiang77%2Ftaskmanager-rs" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zxiang77/taskmanager-rs on toolchain fc4ba03ef77ca5018fb78a097d3b924d30f15bfc [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zxiang77/taskmanager-rs [INFO] finished tweaking git repo https://github.com/zxiang77/taskmanager-rs [INFO] tweaked toml for git repo https://github.com/zxiang77/taskmanager-rs written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded postgres v0.16.0-rc.2 [INFO] [stderr] Downloaded postgres-protocol v0.4.1 [INFO] [stderr] Downloaded tokio-postgres v0.4.0-rc.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ef897ae5fca313bfb30bc49eca0f7fa6bee315a2785d6990d3c39142cbf493c [INFO] running `Command { std: "docker" "start" "-a" "2ef897ae5fca313bfb30bc49eca0f7fa6bee315a2785d6990d3c39142cbf493c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ef897ae5fca313bfb30bc49eca0f7fa6bee315a2785d6990d3c39142cbf493c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ef897ae5fca313bfb30bc49eca0f7fa6bee315a2785d6990d3c39142cbf493c", kill_on_drop: false }` [INFO] [stdout] 2ef897ae5fca313bfb30bc49eca0f7fa6bee315a2785d6990d3c39142cbf493c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "build" "--frozen" "--message-format=json" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8d7b97c9589ef4b97b29827a0461a2147a9bce039cc6aca2114db095f375894f [INFO] running `Command { std: "docker" "start" "-a" "8d7b97c9589ef4b97b29827a0461a2147a9bce039cc6aca2114db095f375894f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling num_cpus v1.14.0 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling net2 v0.2.38 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling tokio-executor v0.1.10 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling tokio-sync v0.1.8 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling syn v1.0.105 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling cc v1.0.77 [INFO] [stderr] Compiling tokio-codec v0.1.2 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling tokio-current-thread v0.1.7 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling backtrace v0.3.66 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling gimli v0.26.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.149 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling miniz_oxide v0.5.4 [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling tokio-udp v0.1.6 [INFO] [stderr] Compiling object v0.29.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling serde v1.0.149 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling actix-service v0.4.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling once_cell v1.16.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling darling_core v0.8.6 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling enum-as-inner v0.2.1 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling const-random-macro v0.1.15 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling derive_more v0.15.0 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling const-random v0.1.15 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling trust-dns-proto v0.7.4 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling actix-server-config v0.1.2 [INFO] [stderr] Compiling actix-codec v0.1.2 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling hashbrown v0.6.3 [INFO] [stderr] Compiling darling_macro v0.8.6 [INFO] [stderr] Compiling unicode-segmentation v1.10.0 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling ordermap v0.3.5 [INFO] [stderr] Compiling fixedbitset v0.1.9 [INFO] [stderr] Compiling serde_json v1.0.89 [INFO] [stderr] Compiling petgraph v0.4.13 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling darling v0.8.6 [INFO] [stderr] Compiling actix-utils v0.4.7 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling trust-dns-resolver v0.11.1 [INFO] [stderr] Compiling actix-threadpool v0.1.2 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling actix-rt v0.2.6 [INFO] [stderr] Compiling crossbeam-deque v0.7.4 [INFO] [stderr] Compiling ahash v0.2.19 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling itoa v1.0.4 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling sha1 v0.6.1 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling tokio-signal v0.2.9 [INFO] [stderr] Compiling tokio-threadpool v0.1.18 [INFO] [stderr] Compiling actix-connect v0.2.5 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling derive_state_machine_future v0.2.0 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling tokio-uds v0.2.7 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling rent_to_own v0.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling md5 v0.6.1 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling postgres-protocol v0.4.1 [INFO] [stderr] Compiling actix-http v0.2.11 [INFO] [stderr] Compiling tokio-fs v0.1.7 [INFO] [stderr] Compiling actix-server v0.6.1 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling antidote v1.0.0 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling actix-testing v0.1.0 [INFO] [stderr] Compiling state_machine_future v0.2.0 [INFO] [stderr] Compiling tokio-postgres v0.4.0-rc.3 [INFO] [stderr] Compiling actix-router v0.1.5 [INFO] [stderr] Compiling actix-web-codegen v0.1.3 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling awc v0.2.8 [INFO] [stderr] Compiling actix-web v1.0.9 [INFO] [stderr] Compiling postgres v0.16.0-rc.2 [INFO] [stderr] Compiling taskmanager v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Date`, `NaiveDate` [INFO] [stdout] --> src/task.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Utc, NaiveDate, DateTime}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::task::TaskState::OPEN` [INFO] [stdout] --> src/task.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::task::TaskState::OPEN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db_connection` [INFO] [stdout] --> src/task.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::db_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map` [INFO] [stdout] --> src/task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::hash_map; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls` [INFO] [stdout] --> src/task.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use postgres::{Client, NoTls}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Numeric::Day` [INFO] [stdout] --> src/task.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | use chrono::format::Numeric::Day; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/task.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Utc, NaiveDate, DateTime}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/task.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let name = match self.name.as_ref() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `desc` [INFO] [stdout] --> src/task.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let desc = match self.name.as_ref() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/task.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | fn create(&self, opt: &[&impl ToSql]) -> Result { // [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `desc`, `state`, and `due_date` are never read [INFO] [stdout] --> src/task.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Task { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | desc: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | state: TaskState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | due_date: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST` is never used [INFO] [stdout] --> src/task.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ST: &'static str = ""; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE_NAME` is never used [INFO] [stdout] --> src/task.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const TABLE_NAME: &'static str = "TASK"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_overdue` is never used [INFO] [stdout] --> src/task.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn is_overdue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/task.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn create(&self, opt: &[&impl ToSql]) -> Result { // [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/task.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | client.execute(&q[..], &[&TABLE_NAME, ]); // todo complete this [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] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `taskmanager::task::Task` [INFO] [stdout] --> src/bin/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use taskmanager::task::Task; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `taskmanager::db_connection` [INFO] [stdout] --> src/bin/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use taskmanager::db_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/bin/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/bin/main.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | use actix_web::{Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut c = get_client(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut c = get_client(); [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: function `index` is never used [INFO] [stdout] --> src/bin/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn index(info: web::Path<(String, u32)>) -> impl Responder { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sql` is never read [INFO] [stdout] --> src/bin/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct DevReq { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 37 | sql: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `visitor_count` is never read [INFO] [stdout] --> src/bin/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 41 | visitor_count: Cell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | svr.run(); [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] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 58.58s [INFO] running `Command { std: "docker" "inspect" "8d7b97c9589ef4b97b29827a0461a2147a9bce039cc6aca2114db095f375894f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d7b97c9589ef4b97b29827a0461a2147a9bce039cc6aca2114db095f375894f", kill_on_drop: false }` [INFO] [stdout] 8d7b97c9589ef4b97b29827a0461a2147a9bce039cc6aca2114db095f375894f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "test" "--frozen" "--no-run" "--message-format=json" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d225b22667fdabf85b4cbeaaf39aa7561c09e2da3100380c08df33500ee9aae7 [INFO] running `Command { std: "docker" "start" "-a" "d225b22667fdabf85b4cbeaaf39aa7561c09e2da3100380c08df33500ee9aae7", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `Date`, `NaiveDate` [INFO] [stdout] --> src/task.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Utc, NaiveDate, DateTime}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::task::TaskState::OPEN` [INFO] [stdout] --> src/task.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::task::TaskState::OPEN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db_connection` [INFO] [stdout] --> src/task.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::db_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map` [INFO] [stdout] --> src/task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::hash_map; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls` [INFO] [stdout] --> src/task.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use postgres::{Client, NoTls}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Numeric::Day` [INFO] [stdout] --> src/task.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | use chrono::format::Numeric::Day; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/task.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Utc, NaiveDate, DateTime}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/task.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let name = match self.name.as_ref() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `desc` [INFO] [stdout] --> src/task.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let desc = match self.name.as_ref() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/task.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | fn create(&self, opt: &[&impl ToSql]) -> Result { // [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `desc`, `state`, and `due_date` are never read [INFO] [stdout] --> src/task.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Task { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | desc: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | state: TaskState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | due_date: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST` is never used [INFO] [stdout] --> src/task.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ST: &'static str = ""; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE_NAME` is never used [INFO] [stdout] --> src/task.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const TABLE_NAME: &'static str = "TASK"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_overdue` is never used [INFO] [stdout] --> src/task.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn is_overdue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/task.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn create(&self, opt: &[&impl ToSql]) -> Result { // [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/task.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | client.execute(&q[..], &[&TABLE_NAME, ]); // todo complete this [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] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling taskmanager v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Date`, `NaiveDate` [INFO] [stdout] --> src/task.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Utc, NaiveDate, DateTime}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::task::TaskState::OPEN` [INFO] [stdout] --> src/task.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::task::TaskState::OPEN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db_connection` [INFO] [stdout] --> src/task.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::db_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map` [INFO] [stdout] --> src/task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::hash_map; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls` [INFO] [stdout] --> src/task.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use postgres::{Client, NoTls}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Numeric::Day` [INFO] [stdout] --> src/task.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | use chrono::format::Numeric::Day; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `taskmanager::task::Task` [INFO] [stdout] --> src/bin/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use taskmanager::task::Task; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `taskmanager::db_connection` [INFO] [stdout] --> src/bin/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use taskmanager::db_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/bin/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> src/bin/main.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | use actix_web::{Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stdout] --> src/task.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Utc, NaiveDate, DateTime}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/task.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let name = match self.name.as_ref() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `desc` [INFO] [stdout] --> src/task.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let desc = match self.name.as_ref() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_desc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt` [INFO] [stdout] --> src/task.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | fn create(&self, opt: &[&impl ToSql]) -> Result { // [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/main.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut c = get_client(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `desc`, `state`, and `due_date` are never read [INFO] [stdout] --> src/task.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Task { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 11 | id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | desc: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | state: TaskState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | due_date: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ST` is never used [INFO] [stdout] --> src/task.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const ST: &'static str = ""; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE_NAME` is never used [INFO] [stdout] --> src/task.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const TABLE_NAME: &'static str = "TASK"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_overdue` is never used [INFO] [stdout] --> src/task.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn is_overdue(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/task.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn create(&self, opt: &[&impl ToSql]) -> Result { // [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/task.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | client.execute(&q[..], &[&TABLE_NAME, ]); // todo complete this [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] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let mut c = get_client(); [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: function `index` is never used [INFO] [stdout] --> src/bin/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn index(info: web::Path<(String, u32)>) -> impl Responder { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sql` is never read [INFO] [stdout] --> src/bin/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct DevReq { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 37 | sql: String, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `visitor_count` is never read [INFO] [stdout] --> src/bin/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 41 | visitor_count: Cell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/main.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | svr.run(); [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] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "d225b22667fdabf85b4cbeaaf39aa7561c09e2da3100380c08df33500ee9aae7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d225b22667fdabf85b4cbeaaf39aa7561c09e2da3100380c08df33500ee9aae7", kill_on_drop: false }` [INFO] [stdout] d225b22667fdabf85b4cbeaaf39aa7561c09e2da3100380c08df33500ee9aae7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "test" "--frozen" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] d974a425802502bf8091cbb9a123bd5cca1a4d3ce1447c34c26fc61ea2ebeb8f [INFO] running `Command { std: "docker" "start" "-a" "d974a425802502bf8091cbb9a123bd5cca1a4d3ce1447c34c26fc61ea2ebeb8f", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Date`, `NaiveDate` [INFO] [stderr] --> src/task.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use chrono::{Date, Utc, NaiveDate, DateTime}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::task::TaskState::OPEN` [INFO] [stderr] --> src/task.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::task::TaskState::OPEN; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::db_connection` [INFO] [stderr] --> src/task.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::db_connection; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map` [INFO] [stderr] --> src/task.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::collections::hash_map; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Client`, `NoTls` [INFO] [stderr] --> src/task.rs:8:16 [INFO] [stderr] | [INFO] [stderr] 8 | use postgres::{Client, NoTls}; [INFO] [stderr] | ^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::format::Numeric::Day` [INFO] [stderr] --> src/task.rs:123:5 [INFO] [stderr] | [INFO] [stderr] 123 | use chrono::format::Numeric::Day; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated struct `chrono::Date`: Use `NaiveDate` or `DateTime` instead [INFO] [stderr] --> src/task.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use chrono::{Date, Utc, NaiveDate, DateTime}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/task.rs:103:13 [INFO] [stderr] | [INFO] [stderr] 103 | let name = match self.name.as_ref() { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `desc` [INFO] [stderr] --> src/task.rs:108:13 [INFO] [stderr] | [INFO] [stderr] 108 | let desc = match self.name.as_ref() { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_desc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `opt` [INFO] [stderr] --> src/task.rs:97:22 [INFO] [stderr] | [INFO] [stderr] 97 | fn create(&self, opt: &[&impl ToSql]) -> Result { // [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_opt` [INFO] [stderr] [INFO] [stderr] warning: fields `id`, `name`, `desc`, `state`, and `due_date` are never read [INFO] [stderr] --> src/task.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct Task { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 11 | id: Option, [INFO] [stderr] | ^^ [INFO] [stderr] 12 | name: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] 13 | desc: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] 14 | state: TaskState, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 15 | due_date: Option>, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `ST` is never used [INFO] [stderr] --> src/task.rs:18:7 [INFO] [stderr] | [INFO] [stderr] 18 | const ST: &'static str = ""; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TABLE_NAME` is never used [INFO] [stderr] --> src/task.rs:21:7 [INFO] [stderr] | [INFO] [stderr] 21 | const TABLE_NAME: &'static str = "TASK"; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `is_overdue` is never used [INFO] [stderr] --> src/task.rs:88:8 [INFO] [stderr] | [INFO] [stderr] 88 | fn is_overdue(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `create` is never used [INFO] [stderr] --> src/task.rs:97:8 [INFO] [stderr] | [INFO] [stderr] 97 | fn create(&self, opt: &[&impl ToSql]) -> Result { // [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/task.rs:113:9 [INFO] [stderr] | [INFO] [stderr] 113 | client.execute(&q[..], &[&TABLE_NAME, ]); // todo complete this [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] [INFO] [stderr] warning: `taskmanager` (lib) generated 16 warnings [INFO] [stderr] warning: `taskmanager` (lib test) generated 16 warnings (16 duplicates) [INFO] [stderr] warning: unused import: `taskmanager::task::Task` [INFO] [stderr] --> src/bin/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use taskmanager::task::Task; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `taskmanager::db_connection` [INFO] [stderr] --> src/bin/main.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use taskmanager::db_connection; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/bin/main.rs:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Result` [INFO] [stderr] --> src/bin/main.rs:32:17 [INFO] [stderr] | [INFO] [stderr] 32 | use actix_web::{Result}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/bin/main.rs:57:13 [INFO] [stderr] | [INFO] [stderr] 57 | let mut c = get_client(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/main.rs:57:9 [INFO] [stderr] | [INFO] [stderr] 57 | let mut c = get_client(); [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: function `index` is never used [INFO] [stderr] --> src/bin/main.rs:13:4 [INFO] [stderr] | [INFO] [stderr] 13 | fn index(info: web::Path<(String, u32)>) -> impl Responder { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `sql` is never read [INFO] [stderr] --> src/bin/main.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 36 | struct DevReq { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 37 | sql: String, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `visitor_count` is never read [INFO] [stderr] --> src/bin/main.rs:41:5 [INFO] [stderr] | [INFO] [stderr] 40 | struct AppState { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 41 | visitor_count: Cell, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bin/main.rs:90:13 [INFO] [stderr] | [INFO] [stderr] 90 | svr.run(); [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] [INFO] [stderr] warning: `taskmanager` (bin "main" test) generated 10 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/i686-unknown-linux-musl/debug/deps/taskmanager-5352526c6ee696ec) [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] [stderr] Running unittests src/bin/main.rs (/opt/rustwide/target/i686-unknown-linux-musl/debug/deps/main-afb91cd4aa38e489) [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" "d974a425802502bf8091cbb9a123bd5cca1a4d3ce1447c34c26fc61ea2ebeb8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d974a425802502bf8091cbb9a123bd5cca1a4d3ce1447c34c26fc61ea2ebeb8f", kill_on_drop: false }` [INFO] [stdout] d974a425802502bf8091cbb9a123bd5cca1a4d3ce1447c34c26fc61ea2ebeb8f