[INFO] cloning repository https://github.com/pimeys/blocking_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pimeys/blocking_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpimeys%2Fblocking_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpimeys%2Fblocking_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 727b68fdf150b6b81f224cc44d640c5526b6d2b4 [INFO] testing pimeys/blocking_test against 1.73.0 for beta-1.74-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpimeys%2Fblocking_test" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pimeys/blocking_test on toolchain 1.73.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.73.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pimeys/blocking_test [INFO] finished tweaking git repo https://github.com/pimeys/blocking_test [INFO] tweaked toml for git repo https://github.com/pimeys/blocking_test written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pimeys/blocking_test 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" "+1.73.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/pimeys/rust-decimal.git` [INFO] [stderr] Updating git repository `https://github.com/rustasync/tide` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-task v1.0.0 [INFO] [stderr] Downloaded tokio-postgres v0.4.0-rc.3 [INFO] [stderr] Downloaded regex v1.3.0 [INFO] [stderr] Downloaded r2d2_postgres v0.15.0-rc.1 [INFO] [stderr] Downloaded runtime-native v0.3.0-alpha.6 [INFO] [stderr] Downloaded bb8-postgres v0.3.1 [INFO] [stderr] Downloaded juliex v0.3.0-alpha.8 [INFO] [stderr] Downloaded runtime-attributes v0.3.0-alpha.6 [INFO] [stderr] Downloaded postgres v0.16.0-rc.2 [INFO] [stderr] Downloaded runtime-tokio v0.3.0-alpha.6 [INFO] [stderr] Downloaded runtime-raw v0.3.0-alpha.5 [INFO] [stderr] Downloaded http-service-hyper v0.3.1 [INFO] [stderr] Downloaded bb8 v0.3.1 [INFO] [stderr] Downloaded http-service v0.3.1 [INFO] [stderr] Downloaded postgres-protocol v0.4.1 [INFO] [stderr] Downloaded tracing-attributes v0.1.2 [INFO] [stderr] Downloaded runtime v0.3.0-alpha.7 [INFO] [stderr] Downloaded tracing-core v0.1.5 [INFO] [stderr] Downloaded tracing v0.1.7 [INFO] [stderr] Downloaded serde_qs v0.5.0 [INFO] [stderr] Downloaded async-std v0.99.4 [INFO] [stderr] Downloaded chrono v0.4.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 061441e8d7543a1f97e4b69b175fceaefcd202a00d29fb9f5c96f990c202c410 [INFO] running `Command { std: "docker" "start" "-a" "061441e8d7543a1f97e4b69b175fceaefcd202a00d29fb9f5c96f990c202c410", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "061441e8d7543a1f97e4b69b175fceaefcd202a00d29fb9f5c96f990c202c410", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "061441e8d7543a1f97e4b69b175fceaefcd202a00d29fb9f5c96f990c202c410", kill_on_drop: false }` [INFO] [stdout] 061441e8d7543a1f97e4b69b175fceaefcd202a00d29fb9f5c96f990c202c410 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f21fb30d873297ac917e9f8ea2959d8804c621bd872c503770bd95f08cabc0d3 [INFO] running `Command { std: "docker" "start" "-a" "f21fb30d873297ac917e9f8ea2959d8804c621bd872c503770bd95f08cabc0d3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling futures v0.1.28 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling proc-macro2 v1.0.2 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling futures-core-preview v0.3.0-alpha.18 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling futures-io-preview v0.3.0-alpha.18 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling futures-sink-preview v0.3.0-alpha.18 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling futures-channel-preview v0.3.0-alpha.18 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling serde v1.0.99 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling unicode-normalization v0.1.8 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling lock_api v0.1.5 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling tokio-executor v0.1.8 [INFO] [stderr] Compiling tokio-sync v0.1.6 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling http v0.1.18 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling tokio-timer v0.2.11 [INFO] [stderr] Compiling futures-util-preview v0.3.0-alpha.18 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling tokio-current-thread v0.1.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling tokio-threadpool v0.1.15 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling getrandom v0.1.11 [INFO] [stderr] Compiling block-padding v0.1.4 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling fixedbitset v0.1.9 [INFO] [stderr] Compiling cc v1.0.41 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling tokio-reactor v0.1.9 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling ordermap v0.3.5 [INFO] [stderr] Compiling tokio-fs v0.1.6 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling route-recognizer v0.1.13 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.5 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling tokio-uds v0.2.5 [INFO] [stderr] Compiling tokio-udp v0.1.5 [INFO] [stderr] Compiling petgraph v0.4.13 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling sha2 v0.8.0 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling chrono v0.4.8 [INFO] [stderr] Compiling c2-chacha v0.2.2 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling lock_api v0.3.1 [INFO] [stderr] Compiling tracing-core v0.1.5 [INFO] [stderr] Compiling rent_to_own v0.1.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling md5 v0.6.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling mime_guess v1.8.7 [INFO] [stderr] Compiling futures-executor-preview v0.3.0-alpha.18 [INFO] [stderr] Compiling tokio-sync v0.2.0-alpha.4 [INFO] [stderr] Compiling futures-preview v0.3.0-alpha.18 [INFO] [stderr] Compiling postgres-protocol v0.4.1 [INFO] [stderr] Compiling http-service v0.3.1 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling antidote v1.0.0 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling rand v0.7.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling tokio-io v0.2.0-alpha.4 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling backtrace v0.3.35 [INFO] [stderr] Compiling hyper v0.12.33 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling safemem v0.3.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling indexmap v1.1.0 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling url v2.1.0 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling futures-timer v0.3.0 [INFO] [stderr] Compiling runtime-raw v0.3.0-alpha.5 [INFO] [stderr] Compiling crossbeam v0.7.2 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling lock_api v0.2.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling dtoa v0.4.4 [INFO] [stderr] Compiling data-encoding v2.1.2 [INFO] [stderr] Compiling async-datagram v3.0.0 [INFO] [stderr] Compiling async-ready v3.0.0 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling romio v0.3.0-alpha.9 [INFO] [stderr] Compiling multipart v0.16.1 [INFO] [stderr] Compiling cookie v0.12.0 [INFO] [stderr] Compiling juliex v0.3.0-alpha.8 [INFO] [stderr] Compiling darling_core v0.8.6 [INFO] [stderr] Compiling tokio-codec v0.2.0-alpha.4 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.2 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling unicode-width v0.1.6 [INFO] [stderr] Compiling termcolor v1.0.5 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling r2d2 v0.8.5 [INFO] [stderr] Compiling num v0.2.0 [INFO] [stderr] Compiling runtime-native v0.3.0-alpha.6 [INFO] [stderr] Compiling bb8 v0.3.1 [INFO] [stderr] Compiling async-task v1.0.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling runtime-tokio v0.3.0-alpha.6 [INFO] [stderr] Compiling async-std v0.99.4 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling serde_derive v1.0.99 [INFO] [stderr] Compiling tracing-attributes v0.1.2 [INFO] [stderr] Compiling tokio-macros v0.2.0-alpha.4 [INFO] [stderr] Compiling runtime-attributes v0.3.0-alpha.6 [INFO] [stderr] Compiling regex v1.3.0 [INFO] [stderr] Compiling darling_macro v0.8.6 [INFO] [stderr] Compiling runtime v0.3.0-alpha.7 [INFO] [stderr] Compiling tracing v0.1.7 [INFO] [stderr] Compiling tokio-executor v0.2.0-alpha.4 [INFO] [stderr] Compiling darling v0.8.6 [INFO] [stderr] Compiling derive_state_machine_future v0.2.0 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling http-service-hyper v0.3.1 [INFO] [stderr] Compiling pretty_env_logger v0.3.1 [INFO] [stderr] Compiling tokio-net v0.2.0-alpha.4 [INFO] [stderr] Compiling tokio-timer v0.3.0-alpha.4 [INFO] [stderr] Compiling tokio-fs v0.2.0-alpha.4 [INFO] [stderr] Compiling tokio v0.2.0-alpha.4 [INFO] [stderr] Compiling state_machine_future v0.2.0 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_qs v0.5.0 [INFO] [stderr] Compiling tide-core v0.2.0 (https://github.com/rustasync/tide#af0b900b) [INFO] [stderr] Compiling tokio-postgres v0.4.0-rc.3 [INFO] [stderr] Compiling tide-querystring v0.1.0 (https://github.com/rustasync/tide#af0b900b) [INFO] [stderr] Compiling tide-cors v0.2.0 (https://github.com/rustasync/tide#af0b900b) [INFO] [stderr] Compiling tide-forms v0.1.0 (https://github.com/rustasync/tide#af0b900b) [INFO] [stderr] Compiling tide-cookies v0.2.0 (https://github.com/rustasync/tide#af0b900b) [INFO] [stderr] Compiling tide-log v0.1.0 (https://github.com/rustasync/tide#af0b900b) [INFO] [stderr] Compiling tide-headers v0.1.0 (https://github.com/rustasync/tide#af0b900b) [INFO] [stderr] Compiling tide v0.2.0 (https://github.com/rustasync/tide#af0b900b) [INFO] [stderr] Compiling postgres v0.16.0-rc.2 [INFO] [stderr] Compiling bb8-postgres v0.3.1 [INFO] [stderr] Compiling r2d2_postgres v0.15.0-rc.1 [INFO] [stderr] Compiling rust_decimal v1.0.1 (https://github.com/pimeys/rust-decimal.git#fbb60744) [INFO] [stderr] Compiling blocking-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:104:26 [INFO] [stdout] | [INFO] [stdout] 104 | app.at("/:name").get(run_query).post(save_query); [INFO] [stdout] | ^^^^^^^^^ future returned by `run_query` is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn futures::Stream> + std::marker::Send + 'static)` [INFO] [stdout] note: future is not `Send` as this value is used across an await [INFO] [stdout] --> src/main.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | match cx.state().run(&name).await { [INFO] [stdout] | -- ^^^^^ await occurs here, with `cx` maybe used later [INFO] [stdout] | | [INFO] [stdout] | has type `&tide::Context` which is not `Send` [INFO] [stdout] ... [INFO] [stdout] 55 | } [INFO] [stdout] | - `cx` is later dropped here [INFO] [stdout] help: consider moving this into a `let` binding to create a shorter lived borrow [INFO] [stdout] --> src/main.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | match cx.state().run(&name).await { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tide::router::route::Route::<'a, State>::get` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/tide-d8df193c9a60972c/af0b900/src/router/route.rs:55:36 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn get(&mut self, ep: impl Endpoint) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `Route::<'a, State>::get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:104:42 [INFO] [stdout] | [INFO] [stdout] 104 | app.at("/:name").get(run_query).post(save_query); [INFO] [stdout] | ^^^^^^^^^^ future returned by `save_query` is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn futures::Stream> + std::marker::Send + 'static)` [INFO] [stdout] note: future is not `Send` as this value is used across an await [INFO] [stdout] --> src/main.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | cx.state().save(name, query).await; [INFO] [stdout] | -- ^^^^^- `cx` is later dropped here [INFO] [stdout] | | | [INFO] [stdout] | | await occurs here, with `cx` maybe used later [INFO] [stdout] | has type `&tide::Context` which is not `Send` [INFO] [stdout] help: consider moving this into a `let` binding to create a shorter lived borrow [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | cx.state().save(name, query).await; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `tide::router::route::Route::<'a, State>::post` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/tide-d8df193c9a60972c/af0b900/src/router/route.rs:73:37 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn post(&mut self, ep: impl Endpoint) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `Route::<'a, State>::post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: future cannot be sent between threads safely [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | #[runtime::main(runtime_tokio::Tokio)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future created by async block is not `Send` [INFO] [stdout] | [INFO] [stdout] note: opaque type is declared here [INFO] [stdout] --> src/main.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | async fn main() -> std::result::Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: this item depends on auto traits of the hidden type, but may also be registering the hidden type. This is not supported right now. You can try moving the opaque type and the item that actually registers a hidden type into a new submodule [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | #[runtime::main(runtime_tokio::Tokio)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: future is not `Send` as it awaits another future which is not `Send` [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | #[runtime::main(runtime_tokio::Tokio)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ await occurs here on type `impl futures::Future>>`, which is not `Send` [INFO] [stdout] note: required by a bound in `runtime::runtime_raw::enter` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/runtime-raw-0.3.0-alpha.5/src/lib.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn enter(rt: R, fut: F) -> T [INFO] [stdout] | ----- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 60 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^ required by this bound in `enter` [INFO] [stdout] = note: this error originates in the attribute macro `runtime::main` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `blocking-test` (bin "blocking-test") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "f21fb30d873297ac917e9f8ea2959d8804c621bd872c503770bd95f08cabc0d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f21fb30d873297ac917e9f8ea2959d8804c621bd872c503770bd95f08cabc0d3", kill_on_drop: false }` [INFO] [stdout] f21fb30d873297ac917e9f8ea2959d8804c621bd872c503770bd95f08cabc0d3