[INFO] cloning repository https://github.com/fifc/my2postgres [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fifc/my2postgres" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffifc%2Fmy2postgres", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffifc%2Fmy2postgres'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b413b36143a95e6428b27aad2c1507ccef96d1f4 [INFO] checking fifc/my2postgres against master#430feb24a46993e5073c1bb1b39da190d83fa2bf for pr-78363 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffifc%2Fmy2postgres" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fifc/my2postgres on toolchain 430feb24a46993e5073c1bb1b39da190d83fa2bf [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+430feb24a46993e5073c1bb1b39da190d83fa2bf" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fifc/my2postgres [INFO] removed workspace from git repo https://github.com/fifc/my2postgres [INFO] finished tweaking git repo https://github.com/fifc/my2postgres [INFO] tweaked toml for git repo https://github.com/fifc/my2postgres written to /workspace/builds/worker-14/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+430feb24a46993e5073c1bb1b39da190d83fa2bf" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+430feb24a46993e5073c1bb1b39da190d83fa2bf" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+430feb24a46993e5073c1bb1b39da190d83fa2bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c6dd62afaa70673699fdf5ca6c25e4a04a0d705ab2a914a2e5d384b558a16bbe [INFO] running `Command { std: "docker" "start" "-a" "c6dd62afaa70673699fdf5ca6c25e4a04a0d705ab2a914a2e5d384b558a16bbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6dd62afaa70673699fdf5ca6c25e4a04a0d705ab2a914a2e5d384b558a16bbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6dd62afaa70673699fdf5ca6c25e4a04a0d705ab2a914a2e5d384b558a16bbe", kill_on_drop: false }` [INFO] [stdout] c6dd62afaa70673699fdf5ca6c25e4a04a0d705ab2a914a2e5d384b558a16bbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+430feb24a46993e5073c1bb1b39da190d83fa2bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18db8d9f3960278c0a394fcafbacbea5795f3d3df7f40d4e393fe2fd179868cf [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "18db8d9f3960278c0a394fcafbacbea5795f3d3df7f40d4e393fe2fd179868cf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking futures-core v0.3.7 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Checking futures-sink v0.3.7 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking futures-io v0.3.7 [INFO] [stderr] Checking subtle v2.3.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking siphasher v0.3.3 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking bytes v0.6.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking mio-named-pipes v0.1.7 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Checking lock_api v0.4.1 [INFO] [stderr] Checking futures-task v0.3.7 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking instant v0.1.8 [INFO] [stderr] Checking futures-channel v0.3.7 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking phf_shared v0.8.0 [INFO] [stderr] Checking yaml-rust v0.4.4 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Checking lexical-core v0.7.4 [INFO] [stderr] Compiling hashbrown v0.6.3 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking crossbeam-channel v0.4.4 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking openssl-sys v0.9.58 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking mio v0.7.4 [INFO] [stderr] Checking flate2 v1.0.18 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking crossbeam v0.7.3 [INFO] [stderr] Compiling const-random-macro v0.1.11 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking tokio v0.3.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking openssl v0.10.30 [INFO] [stderr] Checking const-random v0.1.11 [INFO] [stderr] Checking ahash v0.2.19 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.9.1 [INFO] [stderr] Checking lexical v5.2.0 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking hmac v0.9.0 [INFO] [stderr] Checking sha2 v0.9.1 [INFO] [stderr] Checking lru v0.5.3 [INFO] [stderr] Checking postgres-protocol v0.5.3 [INFO] [stderr] Checking twox-hash v1.6.0 [INFO] [stderr] Checking postgres-types v0.1.3 [INFO] [stderr] Checking tokio-util v0.4.0 [INFO] [stderr] Compiling pin-project-internal v1.0.1 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.7 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking thiserror v1.0.21 [INFO] [stderr] Checking pin-project v1.0.1 [INFO] [stderr] Checking futures-util v0.3.7 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking futures-executor v0.3.7 [INFO] [stderr] Checking futures v0.3.7 [INFO] [stderr] Checking tokio-postgres v0.5.5 [INFO] [stderr] Checking tokio-postgres v0.6.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking config v0.10.1 [INFO] [stderr] Checking bigdecimal v0.1.2 [INFO] [stderr] Checking rust_decimal v1.8.1 [INFO] [stderr] Checking deadpool v0.5.2 [INFO] [stderr] Checking deadpool-postgres v0.5.6 [INFO] [stderr] Checking mysql_common v0.24.1 [INFO] [stderr] Checking mysql_async v0.25.0 [INFO] [stderr] Checking my2pg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/main.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delay_for` in module `tokio::time` [INFO] [stdout] --> src/stream.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | tokio::time::delay_for(std::time::Duration::new(10, 0)).await; [INFO] [stdout] | ^^^^^^^^^ not found in `tokio::time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/main.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `delay_for` in module `tokio::time` [INFO] [stdout] --> src/stream.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | tokio::time::delay_for(std::time::Duration::new(10, 0)).await; [INFO] [stdout] | ^^^^^^^^^ not found in `tokio::time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl futures::Future` [INFO] [stdout] --> src/main.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | async fn main() -> Result<(),std::io::Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stream.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^ expected struct `deadpool_postgres::tokio_postgres::Config`, found struct `tokio_postgres::Config` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `tokio_postgres` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/stream.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] = note: required by `Manager::::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/stream.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/deadpool-postgres-0.5.6/src/lib.rs:184:23 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct Manager> { [INFO] [stdout] | ---------------------- required by this bound in `Manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/stream.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | Pool::new(mgr, 15) [INFO] [stdout] | ^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/deadpool-0.5.2/src/managed/mod.rs:184:53 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn new(manager: impl Manager + Send + Sync + 'static, max_size: usize) -> Pool { [INFO] [stdout] | ---- required by this bound in `deadpool::managed::Pool::::new` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `deadpool::managed::Manager` for `Manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stream.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 47 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^ expected struct `deadpool_postgres::tokio_postgres::Config`, found struct `tokio_postgres::Config` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `tokio_postgres` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/stream.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] = note: required by `Manager::::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/stream.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/deadpool-postgres-0.5.6/src/lib.rs:184:23 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct Manager> { [INFO] [stdout] | ---------------------- required by this bound in `Manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prep_exec` found for struct `Conn` in the current scope [INFO] [stdout] --> src/stream.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | let result = mysql.prep_exec(sql, ()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `Conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/stream.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | Pool::new(mgr, 15) [INFO] [stdout] | ^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/deadpool-0.5.2/src/managed/mod.rs:184:53 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn new(manager: impl Manager + Send + Sync + 'static, max_size: usize) -> Pool { [INFO] [stdout] | ---- required by this bound in `deadpool::managed::Pool::::new` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `deadpool::managed::Manager` for `Manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prep_exec` found for struct `Conn` in the current scope [INFO] [stdout] --> src/stream.rs:167:28 [INFO] [stdout] | [INFO] [stdout] 167 | let result = mysql.prep_exec(sql, ()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `Conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prep_exec` found for struct `Conn` in the current scope [INFO] [stdout] --> src/stream.rs:167:28 [INFO] [stdout] | [INFO] [stdout] 167 | let result = mysql.prep_exec(sql, ()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `Conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:14 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/stream.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | for i in 0..1000 { [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/stream.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (_, _rows) = result.map_and_drop(|row| { [INFO] [stdout] | __________________________^ [INFO] [stdout] 169 | | let n:i64 = row.get(0).unwrap(); [INFO] [stdout] 170 | | total += n; [INFO] [stdout] 171 | | println!("{:#?}\t{:#?}", n, total); [INFO] [stdout] 172 | | n [INFO] [stdout] 173 | | }).await.unwrap(); [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `prep_exec` found for struct `Conn` in the current scope [INFO] [stdout] --> src/stream.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | let result = mysql.prep_exec(sql, ()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ method not found in `Conn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/my2pg.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^ expected struct `deadpool_postgres::tokio_postgres::Config`, found struct `tokio_postgres::Config` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `tokio_postgres` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/my2pg.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] = note: required by `Manager::::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/my2pg.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/deadpool-postgres-0.5.6/src/lib.rs:184:23 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct Manager> { [INFO] [stdout] | ---------------------- required by this bound in `Manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/my2pg.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | Pool::new(mgr, 15) [INFO] [stdout] | ^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/deadpool-0.5.2/src/managed/mod.rs:184:53 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn new(manager: impl Manager + Send + Sync + 'static, max_size: usize) -> Pool { [INFO] [stdout] | ---- required by this bound in `deadpool::managed::Pool::::new` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `deadpool::managed::Manager` for `Manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql_async::prelude` [INFO] [stdout] --> src/stream.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use mysql_async::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/main.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | async fn main() -> Result<(),std::io::Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0433, E0599, E0698, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `my2pg` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/my2pg.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^ expected struct `deadpool_postgres::tokio_postgres::Config`, found struct `tokio_postgres::Config` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `tokio_postgres` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/my2pg.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] = note: required by `Manager::::new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/my2pg.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | let mgr = Manager::new(cfg, tokio_postgres::NoTls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/deadpool-postgres-0.5.6/src/lib.rs:184:23 [INFO] [stdout] | [INFO] [stdout] 184 | pub struct Manager> { [INFO] [stdout] | ---------------------- required by this bound in `Manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `tokio_postgres::NoTls: deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not satisfied [INFO] [stdout] --> src/my2pg.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | Pool::new(mgr, 15) [INFO] [stdout] | ^^^ the trait `deadpool_postgres::tokio_postgres::tls::MakeTlsConnect` is not implemented for `tokio_postgres::NoTls` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/deadpool-0.5.2/src/managed/mod.rs:184:53 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn new(manager: impl Manager + Send + Sync + 'static, max_size: usize) -> Pool { [INFO] [stdout] | ---- required by this bound in `deadpool::managed::Pool::::new` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `deadpool::managed::Manager` for `Manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mysql_async::prelude` [INFO] [stdout] --> src/stream.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use mysql_async::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0425, E0433, E0599, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "18db8d9f3960278c0a394fcafbacbea5795f3d3df7f40d4e393fe2fd179868cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18db8d9f3960278c0a394fcafbacbea5795f3d3df7f40d4e393fe2fd179868cf", kill_on_drop: false }` [INFO] [stdout] 18db8d9f3960278c0a394fcafbacbea5795f3d3df7f40d4e393fe2fd179868cf