[INFO] cloning repository https://github.com/Raina3266/my-todo-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Raina3266/my-todo-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaina3266%2Fmy-todo-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaina3266%2Fmy-todo-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d43542ae516e2cb2d9d56b277a977fca5e75369e [INFO] checking Raina3266/my-todo-server/d43542ae516e2cb2d9d56b277a977fca5e75369e against master#3b1b0ef4d80d3117924d91352c8b6ca528708b3c for pr-152996 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaina3266%2Fmy-todo-server" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Raina3266/my-todo-server [INFO] finished tweaking git repo https://github.com/Raina3266/my-todo-server [INFO] tweaked toml for git repo https://github.com/Raina3266/my-todo-server written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Raina3266/my-todo-server on toolchain 3b1b0ef4d80d3117924d91352c8b6ca528708b3c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3b1b0ef4d80d3117924d91352c8b6ca528708b3c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Raina3266/my-todo-server 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" "+3b1b0ef4d80d3117924d91352c8b6ca528708b3c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust-multipart-rfc7578_2 v0.8.0 [INFO] [stderr] Downloaded diesel_table_macro_syntax v0.3.0 [INFO] [stderr] Downloaded reserve-port v2.3.0 [INFO] [stderr] Downloaded dsl_auto_type v0.2.0 [INFO] [stderr] Downloaded expect-json-macros v1.9.0 [INFO] [stderr] Downloaded expect-json v1.9.0 [INFO] [stderr] Downloaded inventory v0.3.22 [INFO] [stderr] Downloaded pq-sys v0.7.5 [INFO] [stderr] Downloaded bytesize v2.3.1 [INFO] [stderr] Downloaded diesel_derives v2.3.7 [INFO] [stderr] Downloaded diesel v2.3.6 [INFO] [stderr] Downloaded axum-test v19.0.0 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3b1b0ef4d80d3117924d91352c8b6ca528708b3c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f47237252bf45d1e307b5d4e6ff114b170dbdd3f846444a2e10254f58a95bce4 [INFO] running `Command { std: "docker" "start" "-a" "f47237252bf45d1e307b5d4e6ff114b170dbdd3f846444a2e10254f58a95bce4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f47237252bf45d1e307b5d4e6ff114b170dbdd3f846444a2e10254f58a95bce4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f47237252bf45d1e307b5d4e6ff114b170dbdd3f846444a2e10254f58a95bce4", kill_on_drop: false }` [INFO] [stdout] f47237252bf45d1e307b5d4e6ff114b170dbdd3f846444a2e10254f58a95bce4 [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=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3b1b0ef4d80d3117924d91352c8b6ca528708b3c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97438cf25cb80c4a904927529403409db4a00c958307d02a2270cb84475ca7e8 [INFO] running `Command { std: "docker" "start" "-a" "97438cf25cb80c4a904927529403409db4a00c958307d02a2270cb84475ca7e8", kill_on_drop: false }` [INFO] [stderr] Checking pin-project-lite v0.2.17 [INFO] [stderr] Checking futures-core v0.3.32 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Compiling erased-serde v0.4.10 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling num-conv v0.2.0 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling typetag v0.2.21 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking deranged v0.5.8 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling pq-sys v0.7.5 [INFO] [stderr] Checking uuid v1.21.0 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling diesel_derives v2.3.7 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Checking ryu v1.0.23 [INFO] [stderr] Checking inventory v0.3.22 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking downcast-rs v2.0.2 [INFO] [stderr] Checking bytesize v2.3.1 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking cookie v0.18.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.3.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling typetag-impl v0.2.21 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Compiling expect-json-macros v1.9.0 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking reserve-port v2.3.0 [INFO] [stderr] Checking rust-multipart-rfc7578_2 v0.8.0 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling dsl_auto_type v0.2.0 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Checking expect-json v1.9.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking diesel v2.3.6 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking axum-test v19.0.0 [INFO] [stderr] Checking todo-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0603]: struct import `Todo` is private [INFO] [stdout] --> src/main.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | state::{AppState, Todo}, [INFO] [stdout] | ^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `Todo` is defined here... [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::database::Todo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `Todo` which is defined here [INFO] [stdout] --> src/database.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Todo { [INFO] [stdout] | ^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `Todo` through the re-export [INFO] [stdout] | [INFO] [stdout] 13 | state::{AppState, database::Todo}, [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorResponse` [INFO] [stdout] --> src/error.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::{Json, http::StatusCode, response::{ErrorResponse, IntoResponse, Response}}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::mapref::one::RefMut` [INFO] [stdout] --> src/state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dashmap::mapref::one::RefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/state.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `Todo` is private [INFO] [stdout] --> src/main.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | state::{AppState, Todo}, [INFO] [stdout] | ^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `Todo` is defined here... [INFO] [stdout] --> src/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::database::Todo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `Todo` which is defined here [INFO] [stdout] --> src/database.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Todo { [INFO] [stdout] | ^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `Todo` through the re-export [INFO] [stdout] | [INFO] [stdout] 13 | state::{AppState, database::Todo}, [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ErrorResponse` [INFO] [stdout] --> src/error.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::{Json, http::StatusCode, response::{ErrorResponse, IntoResponse, Response}}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::mapref::one::RefMut` [INFO] [stdout] --> src/state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dashmap::mapref::one::RefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/state.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | id: state.create_todo(message.message), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Uuid`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `uuid::Uuid` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `std::result::Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 55 | id: state.create_todo(message.message).expect("REASON"), [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `collect` found for enum `std::result::Result, error::Error>` in the current scope [INFO] [stdout] --> src/main.rs:66:35 [INFO] [stdout] | [INFO] [stdout] 66 | todos: state.list_todos().collect(), [INFO] [stdout] | ^^^^^^^ `std::result::Result, error::Error>` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 66 | todos: state.list_todos().into_iter().collect(), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in an `Arc` as mutable [INFO] [stdout] --> src/main.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | state.update_todo(todo.id, todo.message)?; [INFO] [stdout] | ^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Arc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in an `Arc` as mutable [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | state.delete_todo(id.id)?; [INFO] [stdout] | ^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Arc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required because it appears within the type `State>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct State(pub S); [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] help: add `#![feature(trivial_bounds)]` to the crate attributes to enable [INFO] [stdout] | [INFO] [stdout] 1 + #![feature(trivial_bounds)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | id: state.create_todo(message.message), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Uuid`, found `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `uuid::Uuid` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `std::result::Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 55 | id: state.create_todo(message.message).expect("REASON"), [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(State>, ...) -> ... {create_todo_handler}: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | .route("/create_todo", post(create_todo_handler)) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(State>, Json<...>) -> ... {create_todo_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] help: the following other types implement trait `Handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / impl Handler<(), S> for MethodRouter [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | S: Clone + 'static, [INFO] [stdout] | |_______________________^ `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/handler/mod.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / impl Handler for Layered [INFO] [stdout] 314 | | where [INFO] [stdout] 315 | | L: Layer> + Clone + Send + Sync + 'static, [INFO] [stdout] 316 | | H: Handler, [INFO] [stdout] ... | [INFO] [stdout] 320 | | T: 'static, [INFO] [stdout] 321 | | S: 'static, [INFO] [stdout] | |_______________^ `Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `post` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | H: Handler, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `post` [INFO] [stdout] ... [INFO] [stdout] 445 | top_level_handler_fn!(post, POST); [INFO] [stdout] | --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-18182109812388368784.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(State>) -> ... {list_todo_handler}: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | .route("/list_todos", get(list_todo_handler)) [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(State>) -> ... {list_todo_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] help: the following other types implement trait `Handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / impl Handler<(), S> for MethodRouter [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | S: Clone + 'static, [INFO] [stdout] | |_______________________^ `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/handler/mod.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / impl Handler for Layered [INFO] [stdout] 314 | | where [INFO] [stdout] 315 | | L: Layer> + Clone + Send + Sync + 'static, [INFO] [stdout] 316 | | H: Handler, [INFO] [stdout] ... | [INFO] [stdout] 320 | | T: 'static, [INFO] [stdout] 321 | | S: 'static, [INFO] [stdout] | |_______________^ `Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `axum::routing::get` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | H: Handler, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `get` [INFO] [stdout] ... [INFO] [stdout] 441 | top_level_handler_fn!(get, GET); [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-11335734804530313985.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(State>, ...) -> ... {update_todo_handler}: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:25:37 [INFO] [stdout] | [INFO] [stdout] 25 | .route("/update_todo", post(update_todo_handler)) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(State>, Json<...>) -> ... {update_todo_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] help: the following other types implement trait `Handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / impl Handler<(), S> for MethodRouter [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | S: Clone + 'static, [INFO] [stdout] | |_______________________^ `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/handler/mod.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / impl Handler for Layered [INFO] [stdout] 314 | | where [INFO] [stdout] 315 | | L: Layer> + Clone + Send + Sync + 'static, [INFO] [stdout] 316 | | H: Handler, [INFO] [stdout] ... | [INFO] [stdout] 320 | | T: 'static, [INFO] [stdout] 321 | | S: 'static, [INFO] [stdout] | |_______________^ `Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `post` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | H: Handler, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `post` [INFO] [stdout] ... [INFO] [stdout] 445 | top_level_handler_fn!(post, POST); [INFO] [stdout] | --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-14816529099039491544.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `collect` found for enum `std::result::Result, error::Error>` in the current scope [INFO] [stdout] --> src/main.rs:66:35 [INFO] [stdout] | [INFO] [stdout] 66 | todos: state.list_todos().collect(), [INFO] [stdout] | ^^^^^^^ `std::result::Result, error::Error>` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 66 | todos: state.list_todos().into_iter().collect(), [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(State>, ...) -> ... {delete_todo_handler}: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:26:37 [INFO] [stdout] | [INFO] [stdout] 26 | .route("/delete_todo", post(delete_todo_handler)) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(State>, Json<...>) -> ... {delete_todo_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] help: the following other types implement trait `Handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / impl Handler<(), S> for MethodRouter [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | S: Clone + 'static, [INFO] [stdout] | |_______________________^ `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/handler/mod.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / impl Handler for Layered [INFO] [stdout] 314 | | where [INFO] [stdout] 315 | | L: Layer> + Clone + Send + Sync + 'static, [INFO] [stdout] 316 | | H: Handler, [INFO] [stdout] ... | [INFO] [stdout] 320 | | T: 'static, [INFO] [stdout] 321 | | S: 'static, [INFO] [stdout] | |_______________^ `Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `post` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | H: Handler, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `post` [INFO] [stdout] ... [INFO] [stdout] 445 | top_level_handler_fn!(post, POST); [INFO] [stdout] | --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-4434687953871290144.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Router::new() [INFO] [stdout] | ^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required by a bound in `Router::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/mod.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | S: Clone + Send + Sync + 'static, [INFO] [stdout] | ^^^^ required by this bound in `Router::::new` [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn new() -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Router::new() [INFO] [stdout] | ^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required by a bound in `Router::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/mod.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | S: Clone + Send + Sync + 'static, [INFO] [stdout] | ^^^^ required by this bound in `Router::::new` [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn new() -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in an `Arc` as mutable [INFO] [stdout] --> src/main.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | state.update_todo(todo.id, todo.message)?; [INFO] [stdout] | ^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Arc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Router::new() [INFO] [stdout] | ^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required by a bound in `Router::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/mod.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | S: Clone + Send + Sync + 'static, [INFO] [stdout] | ^^^^ required by this bound in `Router::::new` [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn new() -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in an `Arc` as mutable [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | state.delete_todo(id.id)?; [INFO] [stdout] | ^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Arc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | assert!(state.find_todo_with_id(id).is_ok()); [INFO] [stdout] | ----------------- ^^ expected `Uuid`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `uuid::Uuid` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/state.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn find_todo_with_id(&mut self, target_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ --------------- [INFO] [stdout] help: consider using `Result::expect` to unwrap the `std::result::Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 88 | assert!(state.find_todo_with_id(id.expect("REASON")).is_ok()); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-1b57e1aada7a265d.long-type-12339555838411997951.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Insertable` [INFO] [stdout] --> src/state.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use diesel::{ExpressionMethods, Insertable, PgConnection, QueryDsl, RunQueryDsl}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `count` found for enum `std::result::Result, error::Error>` in the current scope [INFO] [stdout] --> src/state.rs:90:39 [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(state.list_todos().count(), 1); [INFO] [stdout] | ^^^^^ `std::result::Result, error::Error>` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(state.list_todos().into_iter().count(), 1); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/state.rs:91:39 [INFO] [stdout] | [INFO] [stdout] 91 | assert_eq!(state.list_todos().next().unwrap().message, message); [INFO] [stdout] | ^^^^ method not found in `std::result::Result, error::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state.rs:96:41 [INFO] [stdout] | [INFO] [stdout] 96 | assert!(state.find_todo_with_id(id).is_ok()); [INFO] [stdout] | ----------------- ^^ expected `Uuid`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `uuid::Uuid` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/state.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn find_todo_with_id(&mut self, target_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ --------------- [INFO] [stdout] help: consider using `Result::expect` to unwrap the `std::result::Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 96 | assert!(state.find_todo_with_id(id.expect("REASON")).is_ok()); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | state.update_todo(id, updated_message.clone()).unwrap(); [INFO] [stdout] | ----------- ^^ expected `Uuid`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `uuid::Uuid` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/state.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn update_todo(&mut self, target_id: Uuid, new_message: String) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] help: consider using `Result::expect` to unwrap the `std::result::Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 97 | state.update_todo(id.expect("REASON"), updated_message.clone()).unwrap(); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `count` found for enum `std::result::Result, error::Error>` in the current scope [INFO] [stdout] --> src/state.rs:98:39 [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(state.list_todos().count(), 1); [INFO] [stdout] | ^^^^^ `std::result::Result, error::Error>` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(state.list_todos().into_iter().count(), 1); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0596, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `todo-server` (bin "todo-server") due to 48 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `next` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/state.rs:99:39 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(state.list_todos().next().unwrap().message, updated_message); [INFO] [stdout] | ^^^^ method not found in `std::result::Result, error::Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state.rs:107:27 [INFO] [stdout] | [INFO] [stdout] 107 | state.delete_todo(id).unwrap(); [INFO] [stdout] | ----------- ^^ expected `Uuid`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `uuid::Uuid` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/state.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn delete_todo(&mut self, target_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ --------------- [INFO] [stdout] help: consider using `Result::expect` to unwrap the `std::result::Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 107 | state.delete_todo(id.expect("REASON")).unwrap(); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/state.rs:108:41 [INFO] [stdout] | [INFO] [stdout] 108 | assert!(state.find_todo_with_id(id).is_err()); [INFO] [stdout] | ----------------- ^^ expected `Uuid`, found `Result` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `uuid::Uuid` [INFO] [stdout] found enum `std::result::Result` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/state.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn find_todo_with_id(&mut self, target_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ --------------- [INFO] [stdout] help: consider using `Result::expect` to unwrap the `std::result::Result` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 108 | assert!(state.find_todo_with_id(id.expect("REASON")).is_err()); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `count` found for enum `std::result::Result, error::Error>` in the current scope [INFO] [stdout] --> src/state.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | assert_eq!(state.list_todos().count(), 0); [INFO] [stdout] | ^^^^^ `std::result::Result, error::Error>` is not an iterator [INFO] [stdout] | [INFO] [stdout] help: call `.into_iter()` first [INFO] [stdout] | [INFO] [stdout] 109 | assert_eq!(state.list_todos().into_iter().count(), 0); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(State>, ...) -> ... {create_todo_handler}: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 23 | .route("/create_todo", post(create_todo_handler)) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(State>, Json<...>) -> ... {create_todo_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] help: the following other types implement trait `Handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / impl Handler<(), S> for MethodRouter [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | S: Clone + 'static, [INFO] [stdout] | |_______________________^ `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/handler/mod.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / impl Handler for Layered [INFO] [stdout] 314 | | where [INFO] [stdout] 315 | | L: Layer> + Clone + Send + Sync + 'static, [INFO] [stdout] 316 | | H: Handler, [INFO] [stdout] ... | [INFO] [stdout] 320 | | T: 'static, [INFO] [stdout] 321 | | S: 'static, [INFO] [stdout] | |_______________^ `Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `post` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | H: Handler, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `post` [INFO] [stdout] ... [INFO] [stdout] 445 | top_level_handler_fn!(post, POST); [INFO] [stdout] | --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-9435319925847601497.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(State>) -> ... {list_todo_handler}: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | .route("/list_todos", get(list_todo_handler)) [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(State>) -> ... {list_todo_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] help: the following other types implement trait `Handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / impl Handler<(), S> for MethodRouter [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | S: Clone + 'static, [INFO] [stdout] | |_______________________^ `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/handler/mod.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / impl Handler for Layered [INFO] [stdout] 314 | | where [INFO] [stdout] 315 | | L: Layer> + Clone + Send + Sync + 'static, [INFO] [stdout] 316 | | H: Handler, [INFO] [stdout] ... | [INFO] [stdout] 320 | | T: 'static, [INFO] [stdout] 321 | | S: 'static, [INFO] [stdout] | |_______________^ `Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `axum::routing::get` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | H: Handler, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `get` [INFO] [stdout] ... [INFO] [stdout] 441 | top_level_handler_fn!(get, GET); [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-329814494120282858.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(State>, ...) -> ... {update_todo_handler}: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:25:37 [INFO] [stdout] | [INFO] [stdout] 25 | .route("/update_todo", post(update_todo_handler)) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(State>, Json<...>) -> ... {update_todo_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] help: the following other types implement trait `Handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / impl Handler<(), S> for MethodRouter [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | S: Clone + 'static, [INFO] [stdout] | |_______________________^ `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/handler/mod.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / impl Handler for Layered [INFO] [stdout] 314 | | where [INFO] [stdout] 315 | | L: Layer> + Clone + Send + Sync + 'static, [INFO] [stdout] 316 | | H: Handler, [INFO] [stdout] ... | [INFO] [stdout] 320 | | T: 'static, [INFO] [stdout] 321 | | S: 'static, [INFO] [stdout] | |_______________^ `Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `post` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | H: Handler, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `post` [INFO] [stdout] ... [INFO] [stdout] 445 | top_level_handler_fn!(post, POST); [INFO] [stdout] | --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-16069433757906013242.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(State>, ...) -> ... {delete_todo_handler}: Handler<_, _>` is not satisfied [INFO] [stdout] --> src/main.rs:26:37 [INFO] [stdout] | [INFO] [stdout] 26 | .route("/delete_todo", post(delete_todo_handler)) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^ the trait `Handler<_, _>` is not implemented for fn item `fn(State>, Json<...>) -> ... {delete_todo_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: Consider using `#[axum::debug_handler]` to improve the error message [INFO] [stdout] help: the following other types implement trait `Handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / impl Handler<(), S> for MethodRouter [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | S: Clone + 'static, [INFO] [stdout] | |_______________________^ `MethodRouter` implements `Handler<(), S>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/handler/mod.rs:313:1 [INFO] [stdout] | [INFO] [stdout] 313 | / impl Handler for Layered [INFO] [stdout] 314 | | where [INFO] [stdout] 315 | | L: Layer> + Clone + Send + Sync + 'static, [INFO] [stdout] 316 | | H: Handler, [INFO] [stdout] ... | [INFO] [stdout] 320 | | T: 'static, [INFO] [stdout] 321 | | S: 'static, [INFO] [stdout] | |_______________^ `Layered` implements `Handler` [INFO] [stdout] note: required by a bound in `post` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/method_routing.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | H: Handler, [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `post` [INFO] [stdout] ... [INFO] [stdout] 445 | top_level_handler_fn!(post, POST); [INFO] [stdout] | --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound in this function [INFO] [stdout] | in this macro invocation [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-16146576602423425747.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Router::new() [INFO] [stdout] | ^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required by a bound in `Router::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/mod.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | S: Clone + Send + Sync + 'static, [INFO] [stdout] | ^^^^ required by this bound in `Router::::new` [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn new() -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Router::new() [INFO] [stdout] | ^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required by a bound in `Router::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/mod.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | S: Clone + Send + Sync + 'static, [INFO] [stdout] | ^^^^ required by this bound in `Router::::new` [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn new() -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Router::new() [INFO] [stdout] | ^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] note: required by a bound in `Router::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/routing/mod.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | S: Clone + Send + Sync + 'static, [INFO] [stdout] | ^^^^ required by this bound in `Router::::new` [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn new() -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | Json(message): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_create_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | Json(todo): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_update_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequestParts` is implemented for `State` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/extract/state.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | / impl FromRequestParts for State [INFO] [stdout] 299 | | where [INFO] [stdout] 300 | | InnerState: FromRef, [INFO] [stdout] 301 | | OuterState: Send + Sync, [INFO] [stdout] | |____________________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `State>` to implement `FromRequestParts>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | State(state): State>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_0_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `NonNull` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `NonNull` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `state::AppState`, the trait `Sync` is not implemented for `NonNull` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] note: required because it appears within the type `pg::connection::raw::RawConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/raw.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | pub(super) struct RawConnection { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `dyn StatementCacheStrategy` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn StatementCacheStrategy` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `Unique>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `connection::statement_cache::StatementCache` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/statement_cache/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct StatementCache { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/todo_server-79664fde8e94cd0c.long-type-4771238620490182103.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Instrumentation + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn Instrumentation + 'static)` [INFO] [stdout] help: the trait `FromRequest` is implemented for `axum::Json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/axum-0.8.8/src/json.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | / impl FromRequest for Json [INFO] [stdout] 100 | | where [INFO] [stdout] 101 | | T: DeserializeOwned, [INFO] [stdout] 102 | | S: Send + Sync, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: required for `std::ptr::Unique<(dyn Instrumentation + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn Instrumentation + 'static)>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/alloc/src/boxed.rs:234:11 [INFO] [stdout] note: required because it appears within the type `std::option::Option>` [INFO] [stdout] --> /rustc/3b1b0ef4d80d3117924d91352c8b6ca528708b3c/library/core/src/option.rs:600:9 [INFO] [stdout] note: required because it appears within the type `connection::instrumentation::DynInstrumentation` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/connection/instrumentation.rs:332:19 [INFO] [stdout] | [INFO] [stdout] 332 | pub(crate) struct DynInstrumentation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `pg::connection::private::ConnectionAndTransactionManager` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:666:16 [INFO] [stdout] | [INFO] [stdout] 666 | pub struct ConnectionAndTransactionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `PgConnection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.3.6/src/pg/connection/mod.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct PgConnection { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: required because it appears within the type `state::AppState` [INFO] [stdout] --> src/state.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: required for `Arc` to implement `Send` [INFO] [stdout] = note: required for `axum::Json` to implement `FromRequest>` [INFO] [stdout] note: required by a bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] --> src/main.rs:93:15 [INFO] [stdout] | [INFO] [stdout] 93 | Json(id): Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__axum_macros_check_delete_todo_handler_1_from_request_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Insertable` [INFO] [stdout] --> src/state.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | use diesel::{ExpressionMethods, Insertable, PgConnection, QueryDsl, RunQueryDsl}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0596, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `todo-server` (bin "todo-server" test) due to 58 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "97438cf25cb80c4a904927529403409db4a00c958307d02a2270cb84475ca7e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97438cf25cb80c4a904927529403409db4a00c958307d02a2270cb84475ca7e8", kill_on_drop: false }` [INFO] [stdout] 97438cf25cb80c4a904927529403409db4a00c958307d02a2270cb84475ca7e8