[INFO] cloning repository https://github.com/decapo01/rust-macro-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/decapo01/rust-macro-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdecapo01%2Frust-macro-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdecapo01%2Frust-macro-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69bb74f5d1087dfd9b359c5027efa1559ff0db79 [INFO] checking decapo01/rust-macro-demo/69bb74f5d1087dfd9b359c5027efa1559ff0db79 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdecapo01%2Frust-macro-demo" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/decapo01/rust-macro-demo on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/decapo01/rust-macro-demo [INFO] finished tweaking git repo https://github.com/decapo01/rust-macro-demo [INFO] tweaked toml for git repo https://github.com/decapo01/rust-macro-demo written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/decapo01/rust-macro-demo 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded validator_derive v0.12.0 [INFO] [stderr] Downloaded postgres-types v0.2.2 [INFO] [stderr] Downloaded field_names v0.2.0 [INFO] [stderr] Downloaded rust_decimal_macros v1.22.0 [INFO] [stderr] Downloaded bigdecimal v0.2.2 [INFO] [stderr] Downloaded postgres v0.19.2 [INFO] [stderr] Downloaded tokio-postgres v0.7.5 [INFO] [stderr] Downloaded rust_decimal v1.22.0 [INFO] [stderr] Downloaded postgres-protocol v0.6.3 [INFO] [stderr] Downloaded validator v0.12.0 [INFO] [stderr] Downloaded siphasher v0.3.9 [INFO] [stderr] Downloaded md-5 v0.10.1 [INFO] [stderr] Downloaded validator_types v0.12.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 53613fe67c4694ad3738650fdf304ff04cab6ff3b4d66d1e5f2823c99505db01 [INFO] running `Command { std: "docker" "start" "-a" "53613fe67c4694ad3738650fdf304ff04cab6ff3b4d66d1e5f2823c99505db01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53613fe67c4694ad3738650fdf304ff04cab6ff3b4d66d1e5f2823c99505db01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53613fe67c4694ad3738650fdf304ff04cab6ff3b4d66d1e5f2823c99505db01", kill_on_drop: false }` [INFO] [stdout] 53613fe67c4694ad3738650fdf304ff04cab6ff3b4d66d1e5f2823c99505db01 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54de2a9f42185ce1ac16d2b31fcdc480226eb0d6b102400b7cb3da160df83965 [INFO] running `Command { std: "docker" "start" "-a" "54de2a9f42185ce1ac16d2b31fcdc480226eb0d6b102400b7cb3da160df83965", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling siphasher v0.3.9 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-common v0.1.3 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling rust_decimal v1.22.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling digest v0.10.3 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Checking unicode-xid v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.1 [INFO] [stderr] Compiling sha2 v0.10.2 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Compiling validator_types v0.12.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking postgres-protocol v0.6.3 [INFO] [stderr] Compiling regex v1.5.5 [INFO] [stderr] Compiling darling_core v0.13.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling validator_derive v0.12.0 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling darling_macro v0.13.1 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Compiling field_names v0.2.0 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking bigdecimal v0.2.2 [INFO] [stderr] Checking postgres-types v0.2.2 [INFO] [stderr] Checking validator v0.12.0 [INFO] [stderr] Checking tokio-postgres v0.7.5 [INFO] [stderr] Checking postgres v0.19.2 [INFO] [stderr] Compiling rust_decimal_macros v1.22.0 [INFO] [stderr] Checking rust-macro-check v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `iter::FromIterator` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, fmt, iter::FromIterator}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValidationError` [INFO] [stdout] --> src/main.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use validator::{Validate, ValidationError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bigdecimal::BigDecimal` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bigdecimal::BigDecimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/main.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{DateTime, Local, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro::TokenStream` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use proc_macro::TokenStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `enum_str` [INFO] [stdout] --> src/main.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | macro_rules! enum_str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `iter::FromIterator` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, fmt, iter::FromIterator}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValidationError` [INFO] [stdout] --> src/main.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use validator::{Validate, ValidationError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bigdecimal::BigDecimal` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bigdecimal::BigDecimal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/main.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{DateTime, Local, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro::TokenStream` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use proc_macro::TokenStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `enum_str` [INFO] [stdout] --> src/main.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | macro_rules! enum_str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericClient` [INFO] [stdout] --> src/main.rs:23:38 [INFO] [stdout] | [INFO] [stdout] 23 | use tokio_postgres::{Client, Config, GenericClient, NoTls, Row}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericClient` [INFO] [stdout] --> src/main.rs:23:38 [INFO] [stdout] | [INFO] [stdout] 23 | use tokio_postgres::{Client, Config, GenericClient, NoTls, Row}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/main.rs:389:9 [INFO] [stdout] | [INFO] [stdout] 389 | ty: &tokio_postgres::types::Type, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/main.rs:389:9 [INFO] [stdout] | [INFO] [stdout] 389 | ty: &tokio_postgres::types::Type, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/main.rs:532:9 [INFO] [stdout] | [INFO] [stdout] 532 | let params: &[&(dyn ToSql + Sync)] = &[ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params_foo` [INFO] [stdout] --> src/main.rs:540:9 [INFO] [stdout] | [INFO] [stdout] 540 | let params_foo: Vec<&(dyn ToSql + Sync)> = vec![ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_params_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crit_02` [INFO] [stdout] --> src/main.rs:602:9 [INFO] [stdout] | [INFO] [stdout] 602 | let crit_02 = new_crit_struct.to_criteria(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_crit_02` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/main.rs:532:9 [INFO] [stdout] | [INFO] [stdout] 532 | let params: &[&(dyn ToSql + Sync)] = &[ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params_foo` [INFO] [stdout] --> src/main.rs:540:9 [INFO] [stdout] | [INFO] [stdout] 540 | let params_foo: Vec<&(dyn ToSql + Sync)> = vec![ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_params_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crit_02` [INFO] [stdout] --> src/main.rs:602:9 [INFO] [stdout] | [INFO] [stdout] 602 | let crit_02 = new_crit_struct.to_criteria(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_crit_02` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Criteria` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | trait Criteria {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ThingId(String); [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ThingId` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_update_sql` is never used [INFO] [stdout] --> src/main.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn create_update_sql(table: &String, id_field: &String, fields: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update` is never used [INFO] [stdout] --> src/main.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Id`, `Money`, `Velocity`, `StartTime`, and `Misc` are never constructed [INFO] [stdout] --> src/main.rs:217:19 [INFO] [stdout] | [INFO] [stdout] 216 | enum [<$name Fields>] { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 217 | $([<$field_name:camel>]),* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | / entity! { [INFO] [stdout] 410 | | #[derive(Debug, Deserialize)] [INFO] [stdout] 411 | | pub struct User { [INFO] [stdout] 412 | | pub id : UserId, [INFO] [stdout] ... | [INFO] [stdout] 418 | | } [INFO] [stdout] 419 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `UserFields` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/main.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 229 | enum [<$name Criteria>] { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 238 | $([<$field_name:camel Like>]($field_type)),*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 239 | $([<$field_name:camel NLike>]($field_type)),*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | / entity! { [INFO] [stdout] 410 | | #[derive(Debug, Deserialize)] [INFO] [stdout] 411 | | pub struct User { [INFO] [stdout] 412 | | pub id : UserId, [INFO] [stdout] ... | [INFO] [stdout] 418 | | } [INFO] [stdout] 419 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `UserCriteria` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:252:19 [INFO] [stdout] | [INFO] [stdout] 243 | struct [<$name CriteriaStruct>] { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 252 | $([<$field_name _like>]: Option<$field_type>),*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 253 | $([<$field_name _nlike>]: Option<$field_type>),*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | / entity! { [INFO] [stdout] 410 | | #[derive(Debug, Deserialize)] [INFO] [stdout] 411 | | pub struct User { [INFO] [stdout] 412 | | pub id : UserId, [INFO] [stdout] ... | [INFO] [stdout] 418 | | } [INFO] [stdout] 419 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `UserCriteriaStruct` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MyT` is never used [INFO] [stdout] --> src/main.rs:438:7 [INFO] [stdout] | [INFO] [stdout] 438 | trait MyT {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mk_params` is never used [INFO] [stdout] --> src/main.rs:440:4 [INFO] [stdout] | [INFO] [stdout] 440 | fn mk_params<'a>(user: &'a User) -> [&'a (dyn ToSql + Sync); 5] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_row` is never used [INFO] [stdout] --> src/main.rs:450:4 [INFO] [stdout] | [INFO] [stdout] 450 | fn from_row(row: &Row) -> User { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Criteria` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | trait Criteria {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ThingId(String); [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ThingId` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_update_sql` is never used [INFO] [stdout] --> src/main.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn create_update_sql(table: &String, id_field: &String, fields: &[String]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update` is never used [INFO] [stdout] --> src/main.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 74 | async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Id`, `Money`, `Velocity`, `StartTime`, and `Misc` are never constructed [INFO] [stdout] --> src/main.rs:217:19 [INFO] [stdout] | [INFO] [stdout] 216 | enum [<$name Fields>] { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 217 | $([<$field_name:camel>]),* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | / entity! { [INFO] [stdout] 410 | | #[derive(Debug, Deserialize)] [INFO] [stdout] 411 | | pub struct User { [INFO] [stdout] 412 | | pub id : UserId, [INFO] [stdout] ... | [INFO] [stdout] 418 | | } [INFO] [stdout] 419 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `UserFields` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/main.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 229 | enum [<$name Criteria>] { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 238 | $([<$field_name:camel Like>]($field_type)),*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 239 | $([<$field_name:camel NLike>]($field_type)),*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | / entity! { [INFO] [stdout] 410 | | #[derive(Debug, Deserialize)] [INFO] [stdout] 411 | | pub struct User { [INFO] [stdout] 412 | | pub id : UserId, [INFO] [stdout] ... | [INFO] [stdout] 418 | | } [INFO] [stdout] 419 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `UserCriteria` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:252:19 [INFO] [stdout] | [INFO] [stdout] 243 | struct [<$name CriteriaStruct>] { [INFO] [stdout] | ------------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 252 | $([<$field_name _like>]: Option<$field_type>),*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 253 | $([<$field_name _nlike>]: Option<$field_type>),*, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 409 | / entity! { [INFO] [stdout] 410 | | #[derive(Debug, Deserialize)] [INFO] [stdout] 411 | | pub struct User { [INFO] [stdout] 412 | | pub id : UserId, [INFO] [stdout] ... | [INFO] [stdout] 418 | | } [INFO] [stdout] 419 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `UserCriteriaStruct` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: this warning originates in the macro `entity` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MyT` is never used [INFO] [stdout] --> src/main.rs:438:7 [INFO] [stdout] | [INFO] [stdout] 438 | trait MyT {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mk_params` is never used [INFO] [stdout] --> src/main.rs:440:4 [INFO] [stdout] | [INFO] [stdout] 440 | fn mk_params<'a>(user: &'a User) -> [&'a (dyn ToSql + Sync); 5] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_row` is never used [INFO] [stdout] --> src/main.rs:450:4 [INFO] [stdout] | [INFO] [stdout] 450 | fn from_row(row: &Row) -> User { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.71s [INFO] running `Command { std: "docker" "inspect" "54de2a9f42185ce1ac16d2b31fcdc480226eb0d6b102400b7cb3da160df83965", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54de2a9f42185ce1ac16d2b31fcdc480226eb0d6b102400b7cb3da160df83965", kill_on_drop: false }` [INFO] [stdout] 54de2a9f42185ce1ac16d2b31fcdc480226eb0d6b102400b7cb3da160df83965