[INFO] cloning repository https://github.com/raja-dettex/rorm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/raja-dettex/rorm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraja-dettex%2Frorm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraja-dettex%2Frorm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 15438be3468b9d78ac473e8eaa617789a82a130d [INFO] checking raja-dettex/rorm against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraja-dettex%2Frorm" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/raja-dettex/rorm on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/raja-dettex/rorm [INFO] finished tweaking git repo https://github.com/raja-dettex/rorm [INFO] tweaked toml for git repo https://github.com/raja-dettex/rorm written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/raja-dettex/rorm 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 788b824a6310b8e57720e6a7640cb95aa116a237a3de7d8484eeebe3b3cfce16 [INFO] running `Command { std: "docker" "start" "-a" "788b824a6310b8e57720e6a7640cb95aa116a237a3de7d8484eeebe3b3cfce16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "788b824a6310b8e57720e6a7640cb95aa116a237a3de7d8484eeebe3b3cfce16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "788b824a6310b8e57720e6a7640cb95aa116a237a3de7d8484eeebe3b3cfce16", kill_on_drop: false }` [INFO] [stdout] 788b824a6310b8e57720e6a7640cb95aa116a237a3de7d8484eeebe3b3cfce16 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d22c3c77c07fb6d9347f5d17f64908355b526617dd246cdb6408e4ee0bdeca60 [INFO] running `Command { std: "docker" "start" "-a" "d22c3c77c07fb6d9347f5d17f64908355b526617dd246cdb6408e4ee0bdeca60", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking finl_unicode v1.2.0 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking stringprep v0.1.4 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Checking whoami v1.4.1 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking quote v1.0.35 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking postgres-protocol v0.6.6 [INFO] [stderr] Checking postgres-types v0.2.6 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-postgres v0.7.10 [INFO] [stderr] Checking postgres v0.19.7 [INFO] [stderr] Checking orm_lib v0.1.0 (/opt/rustwide/workdir/orm_lib) [INFO] [stdout] warning: unused imports: `collections::HashMap`, `hash::Hash` [INFO] [stdout] --> orm_lib/src/lib.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `hash::Hash` [INFO] [stdout] --> orm_lib/src/lib.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `key_types` should have an upper camel case name [INFO] [stdout] --> orm_lib/src/serializer/util.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum key_types { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `KeyTypes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `key_types` should have an upper camel case name [INFO] [stdout] --> orm_lib/src/serializer/util.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum key_types { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `KeyTypes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> orm_lib/src/db_client/client.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | for (key, val) in t_map.clone() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> orm_lib/src/db_client/client.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | for (key, val) in t_map.clone() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [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] --> orm_lib/src/db_client/client.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let mut map = row_to_map(row); [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: unused variable: `i` [INFO] [stdout] --> orm_lib/src/orm/orm.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm_lib/src/orm/orm.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut conn = self.conn_pool.get(self.index).unwrap().clone(); [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] --> orm_lib/src/db_client/client.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let mut map = row_to_map(row); [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: unused variable: `i` [INFO] [stdout] --> orm_lib/src/orm/orm.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dbConn` should have a snake case name [INFO] [stdout] --> orm_lib/src/db_client/client.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let dbConn = DbConn { client : Arc::new(Mutex::new(client)), marker: PhantomData}; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `db_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> orm_lib/src/orm/orm.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | self.index == 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = self.index == 0; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm_lib/src/orm/orm.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut conn = self.conn_pool.get(self.index).unwrap().clone(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dbConn` should have a snake case name [INFO] [stdout] --> orm_lib/src/db_client/client.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let dbConn = DbConn { client : Arc::new(Mutex::new(client)), marker: PhantomData}; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `db_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> orm_lib/src/orm/orm.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | self.index == 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = self.index == 0; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking orm v0.1.0 (/opt/rustwide/workdir/orm) [INFO] [stderr] Checking rorm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `JoinHandle`, `Receiver`, `Sender`, `any::Any`, `channel`, `fmt::format`, `hash::Hash`, `marker::PhantomData` [INFO] [stdout] --> orm/src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{any::Any, collections::HashMap, fmt::format, hash::Hash, marker::PhantomData, sync::{mpsc::{channel, Receiver, Sender}, Arc, Mutex}, thread::{self, JoinHandle... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orm_lib::db_client::client::DbConn` [INFO] [stdout] --> orm/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use orm_lib::db_client::client::DbConn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls`, `Row`, `connect` [INFO] [stdout] --> orm/src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_postgres::{Client, NoTls, Row, connect}; [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> orm/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JoinHandle`, `Receiver`, `Sender`, `any::Any`, `channel`, `fmt::format`, `hash::Hash`, `marker::PhantomData` [INFO] [stdout] --> orm/src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{any::Any, collections::HashMap, fmt::format, hash::Hash, marker::PhantomData, sync::{mpsc::{channel, Receiver, Sender}, Arc, Mutex}, thread::{self, JoinHandle... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orm_lib::db_client::client::DbConn` [INFO] [stdout] --> orm/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use orm_lib::db_client::client::DbConn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls`, `Row`, `connect` [INFO] [stdout] --> orm/src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_postgres::{Client, NoTls, Row, connect}; [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> orm/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm/src/main.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | async fn findAll_blocking(mut orm : Arc>>) { [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: variable does not need to be mutable [INFO] [stdout] --> orm/src/main.rs:110:31 [INFO] [stdout] | [INFO] [stdout] 110 | async fn findAll_non_blocking(mut orm : Arc>>) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `person` [INFO] [stdout] --> orm/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let person = Person { id : 2, name: "neha".to_string()}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_person` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> orm/src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let stmt = "CREATE TABLE Person(id INT PRIMARY KEY, name VARCHAR(10));"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findAll_blocking` should have a snake case name [INFO] [stdout] --> orm/src/main.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | async fn findAll_blocking(mut orm : Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_all_blocking` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findAll_non_blocking` should have a snake case name [INFO] [stdout] --> orm/src/main.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn findAll_non_blocking(mut orm : Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_all_non_blocking` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm/src/main.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | async fn findAll_blocking(mut orm : Arc>>) { [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: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm/src/main.rs:110:31 [INFO] [stdout] | [INFO] [stdout] 110 | async fn findAll_non_blocking(mut orm : Arc>>) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `person` [INFO] [stdout] --> orm/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let person = Person { id : 2, name: "neha".to_string()}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_person` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> orm/src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let stmt = "CREATE TABLE Person(id INT PRIMARY KEY, name VARCHAR(10));"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findAll_blocking` should have a snake case name [INFO] [stdout] --> orm/src/main.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | async fn findAll_blocking(mut orm : Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_all_blocking` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findAll_non_blocking` should have a snake case name [INFO] [stdout] --> orm/src/main.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn findAll_non_blocking(mut orm : Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_all_non_blocking` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.78s [INFO] running `Command { std: "docker" "inspect" "d22c3c77c07fb6d9347f5d17f64908355b526617dd246cdb6408e4ee0bdeca60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d22c3c77c07fb6d9347f5d17f64908355b526617dd246cdb6408e4ee0bdeca60", kill_on_drop: false }` [INFO] [stdout] d22c3c77c07fb6d9347f5d17f64908355b526617dd246cdb6408e4ee0bdeca60 [INFO] checking raja-dettex/rorm against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraja-dettex%2Frorm" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/raja-dettex/rorm on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/raja-dettex/rorm [INFO] finished tweaking git repo https://github.com/raja-dettex/rorm [INFO] tweaked toml for git repo https://github.com/raja-dettex/rorm written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/raja-dettex/rorm 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c270e223aef8a72ddae7ea5a2b31b807be3f6698a8a65f44923c216c9344f80 [INFO] running `Command { std: "docker" "start" "-a" "2c270e223aef8a72ddae7ea5a2b31b807be3f6698a8a65f44923c216c9344f80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c270e223aef8a72ddae7ea5a2b31b807be3f6698a8a65f44923c216c9344f80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c270e223aef8a72ddae7ea5a2b31b807be3f6698a8a65f44923c216c9344f80", kill_on_drop: false }` [INFO] [stdout] 2c270e223aef8a72ddae7ea5a2b31b807be3f6698a8a65f44923c216c9344f80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c49a3d63f7b21b7d26ad6df1084305b765df75c317197bbeeeb6fd0742e7196 [INFO] running `Command { std: "docker" "start" "-a" "1c49a3d63f7b21b7d26ad6df1084305b765df75c317197bbeeeb6fd0742e7196", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking finl_unicode v1.2.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Checking phf_shared v0.11.2 [INFO] [stderr] Checking whoami v1.4.1 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Checking stringprep v0.1.4 [INFO] [stderr] Checking quote v1.0.35 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking postgres-protocol v0.6.6 [INFO] [stderr] Checking postgres-types v0.2.6 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-postgres v0.7.10 [INFO] [stderr] Checking orm_lib v0.1.0 (/opt/rustwide/workdir/orm_lib) [INFO] [stderr] Checking postgres v0.19.7 [INFO] [stdout] warning: unused imports: `collections::HashMap`, `hash::Hash` [INFO] [stdout] --> orm_lib/src/lib.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `key_types` should have an upper camel case name [INFO] [stdout] --> orm_lib/src/serializer/util.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum key_types { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `KeyTypes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap`, `hash::Hash` [INFO] [stdout] --> orm_lib/src/lib.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `key_types` should have an upper camel case name [INFO] [stdout] --> orm_lib/src/serializer/util.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum key_types { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `KeyTypes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> orm_lib/src/db_client/client.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | for (key, val) in t_map.clone() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> orm_lib/src/db_client/client.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | for (key, val) in t_map.clone() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [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] --> orm_lib/src/db_client/client.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let mut map = row_to_map(row); [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: variable does not need to be mutable [INFO] [stdout] --> orm_lib/src/db_client/client.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | let mut map = row_to_map(row); [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: unused variable: `i` [INFO] [stdout] --> orm_lib/src/orm/orm.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> orm_lib/src/orm/orm.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm_lib/src/orm/orm.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut conn = self.conn_pool.get(self.index).unwrap().clone(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dbConn` should have a snake case name [INFO] [stdout] --> orm_lib/src/db_client/client.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let dbConn = DbConn { client : Arc::new(Mutex::new(client)), marker: PhantomData}; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `db_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> orm_lib/src/orm/orm.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | self.index == 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = self.index == 0; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm_lib/src/orm/orm.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut conn = self.conn_pool.get(self.index).unwrap().clone(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dbConn` should have a snake case name [INFO] [stdout] --> orm_lib/src/db_client/client.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let dbConn = DbConn { client : Arc::new(Mutex::new(client)), marker: PhantomData}; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `db_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> orm_lib/src/orm/orm.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | self.index == 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = self.index == 0; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking orm v0.1.0 (/opt/rustwide/workdir/orm) [INFO] [stdout] warning: unused imports: `JoinHandle`, `Receiver`, `Sender`, `any::Any`, `channel`, `fmt::format`, `hash::Hash`, `marker::PhantomData` [INFO] [stdout] --> orm/src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{any::Any, collections::HashMap, fmt::format, hash::Hash, marker::PhantomData, sync::{mpsc::{channel, Receiver, Sender}, Arc, Mutex}, thread::{self, JoinHandle... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orm_lib::db_client::client::DbConn` [INFO] [stdout] --> orm/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use orm_lib::db_client::client::DbConn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls`, `Row`, `connect` [INFO] [stdout] --> orm/src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_postgres::{Client, NoTls, Row, connect}; [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> orm/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm/src/main.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | async fn findAll_blocking(mut orm : Arc>>) { [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: variable does not need to be mutable [INFO] [stdout] --> orm/src/main.rs:110:31 [INFO] [stdout] | [INFO] [stdout] 110 | async fn findAll_non_blocking(mut orm : Arc>>) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rorm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `person` [INFO] [stdout] --> orm/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let person = Person { id : 2, name: "neha".to_string()}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_person` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> orm/src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let stmt = "CREATE TABLE Person(id INT PRIMARY KEY, name VARCHAR(10));"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findAll_blocking` should have a snake case name [INFO] [stdout] --> orm/src/main.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | async fn findAll_blocking(mut orm : Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_all_blocking` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findAll_non_blocking` should have a snake case name [INFO] [stdout] --> orm/src/main.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn findAll_non_blocking(mut orm : Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_all_non_blocking` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `JoinHandle`, `Receiver`, `Sender`, `any::Any`, `channel`, `fmt::format`, `hash::Hash`, `marker::PhantomData` [INFO] [stdout] --> orm/src/main.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{any::Any, collections::HashMap, fmt::format, hash::Hash, marker::PhantomData, sync::{mpsc::{channel, Receiver, Sender}, Arc, Mutex}, thread::{self, JoinHandle... [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `orm_lib::db_client::client::DbConn` [INFO] [stdout] --> orm/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use orm_lib::db_client::client::DbConn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `NoTls`, `Row`, `connect` [INFO] [stdout] --> orm/src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio_postgres::{Client, NoTls, Row, connect}; [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::spawn` [INFO] [stdout] --> orm/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::thread::spawn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> orm/src/main.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 100 | async fn findAll_blocking(mut orm : Arc>>) { [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: variable does not need to be mutable [INFO] [stdout] --> orm/src/main.rs:110:31 [INFO] [stdout] | [INFO] [stdout] 110 | async fn findAll_non_blocking(mut orm : Arc>>) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `person` [INFO] [stdout] --> orm/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let person = Person { id : 2, name: "neha".to_string()}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_person` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> orm/src/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let stmt = "CREATE TABLE Person(id INT PRIMARY KEY, name VARCHAR(10));"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findAll_blocking` should have a snake case name [INFO] [stdout] --> orm/src/main.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | async fn findAll_blocking(mut orm : Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_all_blocking` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findAll_non_blocking` should have a snake case name [INFO] [stdout] --> orm/src/main.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn findAll_non_blocking(mut orm : Arc>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_all_non_blocking` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.77s [INFO] running `Command { std: "docker" "inspect" "1c49a3d63f7b21b7d26ad6df1084305b765df75c317197bbeeeb6fd0742e7196", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c49a3d63f7b21b7d26ad6df1084305b765df75c317197bbeeeb6fd0742e7196", kill_on_drop: false }` [INFO] [stdout] 1c49a3d63f7b21b7d26ad6df1084305b765df75c317197bbeeeb6fd0742e7196