[INFO] fetching crate sqlx-mapping 0.1.2... [INFO] testing sqlx-mapping-0.1.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate sqlx-mapping 0.1.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate sqlx-mapping 0.1.2 [INFO] finished tweaking crates.io crate sqlx-mapping 0.1.2 [INFO] tweaked toml for crates.io crate sqlx-mapping 0.1.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sqlx-mapping 0.1.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sqlx-mapping 0.1.2 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a995f3e29a65835724b8d1145b8177a4c112dc13aa522477ed7df8bc5fb9ebe [INFO] running `Command { std: "docker" "start" "-a" "5a995f3e29a65835724b8d1145b8177a4c112dc13aa522477ed7df8bc5fb9ebe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a995f3e29a65835724b8d1145b8177a4c112dc13aa522477ed7df8bc5fb9ebe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a995f3e29a65835724b8d1145b8177a4c112dc13aa522477ed7df8bc5fb9ebe", kill_on_drop: false }` [INFO] [stdout] 5a995f3e29a65835724b8d1145b8177a4c112dc13aa522477ed7df8bc5fb9ebe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9bab51e04706c22a7bf2ac48b34a9146ad357240fb7d6fc2b305f84baa85ba0 [INFO] running `Command { std: "docker" "start" "-a" "e9bab51e04706c22a7bf2ac48b34a9146ad357240fb7d6fc2b305f84baa85ba0", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling bitflags v2.9.2 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bigdecimal v0.4.8 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling convert_case v0.7.1 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling toml_parser v1.0.2 [INFO] [stderr] Compiling phf_shared v0.12.1 [INFO] [stderr] Compiling prettyplease v0.2.36 [INFO] [stderr] Compiling litrs v0.4.2 [INFO] [stderr] Compiling toml_writer v1.0.2 [INFO] [stderr] Compiling chrono-tz v0.10.4 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling phf v0.12.1 [INFO] [stderr] Compiling env_home v0.1.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling terminal_size v0.4.2 [INFO] [stderr] Compiling which v8.0.0 [INFO] [stderr] Compiling clap_builder v4.5.43 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling clap v4.5.43 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling toml_datetime v0.7.0 [INFO] [stderr] Compiling serde_spanned v1.0.0 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling toml v0.9.5 [INFO] [stderr] Compiling toml_edit v0.23.3 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling crossterm v0.29.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling sqlx-mapping v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/codegen.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let columns = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 121 | | ColumnRow, [INFO] [stdout] 122 | | r#" [INFO] [stdout] 123 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 135 | | table_name [INFO] [stdout] 136 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/codegen.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | let pks = sqlx::query_as!( [INFO] [stdout] | _____________^ [INFO] [stdout] 167 | | PkRow, [INFO] [stdout] 168 | | r#" [INFO] [stdout] 169 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 181 | | schema_name [INFO] [stdout] 182 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/codegen.rs:199:21 [INFO] [stdout] | [INFO] [stdout] 199 | let constraints = sqlx::query_as!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 200 | | ConstraintRow, [INFO] [stdout] 201 | | r#" [INFO] [stdout] 202 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 221 | | table_name [INFO] [stdout] 222 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/codegen.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | let indexes = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 239 | | IndexRow, [INFO] [stdout] 240 | | r#" [INFO] [stdout] 241 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 257 | | table_name [INFO] [stdout] 258 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/codegen.rs:2041:20 [INFO] [stdout] | [INFO] [stdout] 2041 | let pg_classes = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 2042 | | PgClass, [INFO] [stdout] 2043 | | r#"SELECT oid, relname FROM pg_catalog.pg_class WHERE relname = ANY($1)"#, [INFO] [stdout] 2044 | | &t_names [INFO] [stdout] 2045 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ModItemAttr` [INFO] [stdout] --> src/cli.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::codegen::{ModItemAttr, Options, process_ast, process_ast_update, process_gen, scan, update_mod_rs, create_mod_rs_if_not_exists... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/cli.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | use sqlx::{Error, Pool, Postgres}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TimeZone` and `Utc` [INFO] [stdout] --> src/cli.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ToTokens` and `format_ident` [INFO] [stdout] --> src/cli.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use quote::{format_ident, ToTokens}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemStruct` and `parse_quote` [INFO] [stdout] --> src/cli.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use syn::{parse_quote, ItemStruct}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::Asia::Shanghai` [INFO] [stdout] --> src/cli.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | use chrono_tz::Asia::Shanghai; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/codegen.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/codegen.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/codegen.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono_tz::Tz` [INFO] [stdout] --> src/codegen.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use chrono_tz::Tz; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FnArg` and `ItemType` [INFO] [stdout] --> src/codegen.rs:16:153 [INFO] [stdout] | [INFO] [stdout] 16 | ...ta, MetaNameValue, Type, parse_file, parse_quote, FnArg, ItemImpl, ItemUse, ItemType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/watch.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::{Error, PgPool}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgNotification` [INFO] [stdout] --> src/watch.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::postgres::{PgListener, PgNotification}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/watch.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/watch.rs:136:22 [INFO] [stdout] | [INFO] [stdout] 136 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicI32` and `AtomicUsize` [INFO] [stdout] --> src/watch.rs:137:37 [INFO] [stdout] | [INFO] [stdout] 137 | use std::sync::atomic::{AtomicBool, AtomicI32, AtomicU8, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Command` [INFO] [stdout] --> src/watch.rs:138:103 [INFO] [stdout] | [INFO] [stdout] 138 | use crossterm::{execute, cursor, style, terminal, event::{self, Event, KeyCode, KeyEventKind}, queue, Command}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, and `Write` [INFO] [stdout] --> src/executor.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Write, BufRead, BufReader, Read, ErrorKind}; [INFO] [stdout] | ^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/executor.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool` and `Ordering` [INFO] [stdout] --> src/executor.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cursor`, `execute`, `style`, and `terminal` [INFO] [stdout] --> src/executor.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use crossterm::{execute, cursor, style, terminal}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_name` [INFO] [stdout] --> src/cli.rs:134:22 [INFO] [stdout] | [INFO] [stdout] 134 | for (table_name, table_info) in all_tables { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/codegen.rs:1264:3 [INFO] [stdout] | [INFO] [stdout] 1264 | pool: &PgPool, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crud` [INFO] [stdout] --> src/codegen.rs:1390:60 [INFO] [stdout] | [INFO] [stdout] 1390 | let Options { mod_dir, create, update, delete, retrieve, crud, model, .. } = options; [INFO] [stdout] | ^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codegen.rs:1613:7 [INFO] [stdout] | [INFO] [stdout] 1613 | let mut use_items: Vec<_> = generate_use_deps(options, &table); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codegen.rs:1925:7 [INFO] [stdout] | [INFO] [stdout] 1925 | let mut foreign_info = sqlx::query_as::<_, ForeignKey>(r#" [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/watch.rs:29:67 [INFO] [stdout] | [INFO] [stdout] 29 | ...: &PgPool, options: Options, status: Arc, mut rx: Receiver, tx: Sender) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/watch.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | let d = Arc::new(AtomicU8::new(0)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stdout` [INFO] [stdout] --> src/watch.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | let mut stdout = io::stdout(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_file` [INFO] [stdout] --> src/watch.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `mod_file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create` [INFO] [stdout] --> src/watch.rs:41:40 [INFO] [stdout] | [INFO] [stdout] 41 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `create: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `update` [INFO] [stdout] --> src/watch.rs:41:48 [INFO] [stdout] | [INFO] [stdout] 41 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `update: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delete` [INFO] [stdout] --> src/watch.rs:41:56 [INFO] [stdout] | [INFO] [stdout] 41 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `delete: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `retrieve` [INFO] [stdout] --> src/watch.rs:41:64 [INFO] [stdout] | [INFO] [stdout] 41 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `retrieve: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crud` [INFO] [stdout] --> src/watch.rs:41:74 [INFO] [stdout] | [INFO] [stdout] 41 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^ help: try ignoring the field: `crud: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> src/watch.rs:41:80 [INFO] [stdout] | [INFO] [stdout] 41 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^ help: try ignoring the field: `model: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_url` [INFO] [stdout] --> src/watch.rs:41:87 [INFO] [stdout] | [INFO] [stdout] 41 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `db_url: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/watch.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | let mut stdout = io::stdout(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_dir` [INFO] [stdout] --> src/watch.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options.clone(); [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `mod_dir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_file` [INFO] [stdout] --> src/watch.rs:206:26 [INFO] [stdout] | [INFO] [stdout] 206 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options.clone(); [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `mod_file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `executor` [INFO] [stdout] --> src/watch.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let executor = CommandExecutor; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_executor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syn::parse::Parse` [INFO] [stdout] --> src/codegen.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use syn::parse::Parse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/codegen.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_file` [INFO] [stdout] --> src/codegen.rs:399:26 [INFO] [stdout] | [INFO] [stdout] 399 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, .. } = options; [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delete` [INFO] [stdout] --> src/codegen.rs:399:52 [INFO] [stdout] | [INFO] [stdout] 399 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, .. } = options; [INFO] [stdout] | ^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `retrieve` [INFO] [stdout] --> src/codegen.rs:399:60 [INFO] [stdout] | [INFO] [stdout] 399 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, .. } = options; [INFO] [stdout] | ^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crud` [INFO] [stdout] --> src/codegen.rs:399:70 [INFO] [stdout] | [INFO] [stdout] 399 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, .. } = options; [INFO] [stdout] | ^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: try removing the field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/codegen.rs:400:7 [INFO] [stdout] | [INFO] [stdout] 400 | let p = mod_dir.display().to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codegen.rs:519:7 [INFO] [stdout] | [INFO] [stdout] 519 | let mut fields = table [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/codegen.rs:600:30 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn generate_where_struct(table: &TableInfo) -> ItemStruct { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/codegen.rs:607:36 [INFO] [stdout] | [INFO] [stdout] 607 | pub fn generate_main_struct_expand(table: &TableInfo) -> ItemStruct { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/codegen.rs:829:13 [INFO] [stdout] | [INFO] [stdout] 829 | let ty: Type = syn::parse_str(&format!("&Option<&{}ForCreate>", fk.target_table.to_pascal_case())) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_dir` [INFO] [stdout] --> src/codegen.rs:1476:17 [INFO] [stdout] | [INFO] [stdout] 1476 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `mod_dir: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mod_file` [INFO] [stdout] --> src/codegen.rs:1476:26 [INFO] [stdout] | [INFO] [stdout] 1476 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `mod_file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `crud` [INFO] [stdout] --> src/codegen.rs:1476:70 [INFO] [stdout] | [INFO] [stdout] 1476 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^ help: try ignoring the field: `crud: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_url` [INFO] [stdout] --> src/codegen.rs:1476:83 [INFO] [stdout] | [INFO] [stdout] 1476 | let Options { mod_dir, mod_file, create, update, delete, retrieve, crud, model, db_url } = options; [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `db_url: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codegen.rs:1477:7 [INFO] [stdout] | [INFO] [stdout] 1477 | let mut op = HashMap::new(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/codegen.rs:1496:11 [INFO] [stdout] | [INFO] [stdout] 1496 | let mut item = generate_retrieve_functions(table_info); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/watch.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | pub fn read_char(w: &mut W) -> io::Result where W: io::Write { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sqlx-mapping` (bin "sqlx-mapping") due to 5 previous errors; 59 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e9bab51e04706c22a7bf2ac48b34a9146ad357240fb7d6fc2b305f84baa85ba0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9bab51e04706c22a7bf2ac48b34a9146ad357240fb7d6fc2b305f84baa85ba0", kill_on_drop: false }` [INFO] [stdout] e9bab51e04706c22a7bf2ac48b34a9146ad357240fb7d6fc2b305f84baa85ba0