[INFO] updating cached repository https://github.com/technodeguy/rust-microservice
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] def57f6855d629eb75ae44bff3b39cf0fadae8ce
[INFO] checking technodeguy/rust-microservice against master#bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc for pr-70917
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftechnodeguy%2Frust-microservice" "/workspace/builds/worker-4/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/technodeguy/rust-microservice on toolchain bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking git repo https://github.com/technodeguy/rust-microservice
[INFO] finished tweaking git repo https://github.com/technodeguy/rust-microservice
[INFO] tweaked toml for git repo https://github.com/technodeguy/rust-microservice written to /workspace/builds/worker-4/source/Cargo.toml
[INFO] crate git repo https://github.com/technodeguy/rust-microservice already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+bf1f2eedda4fa02b7c9347dd849ed73ddd43dedc" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] af8fc024ef1a6b9b3bddb0ebdd8961a0f1dfd2d294be5c02970d6d8839769bed
[INFO] running `"docker" "start" "-a" "af8fc024ef1a6b9b3bddb0ebdd8961a0f1dfd2d294be5c02970d6d8839769bed"`
[INFO] [stderr]    Compiling syn v1.0.11
[INFO] [stderr]    Compiling regex-syntax v0.5.6
[INFO] [stderr]    Compiling aho-corasick v0.6.10
[INFO] [stderr]    Compiling mysqlclient-sys v0.2.4
[INFO] [stderr]    Compiling backtrace-sys v0.1.32
[INFO] [stderr]     Checking env_logger v0.5.13
[INFO] [stderr]     Checking error-chain v0.10.0
[INFO] [stderr]     Checking tokio-threadpool v0.1.16
[INFO] [stderr]    Compiling backtrace v0.3.40
[INFO] [stderr]     Checking dotenv v0.10.1
[INFO] [stderr]    Compiling diesel v0.16.0
[INFO] [stderr]     Checking tokio v0.1.22
[INFO] [stderr]     Checking hyper v0.12.35
[INFO] [stderr]    Compiling regex v0.2.11
[INFO] [stderr]    Compiling diesel_infer_schema v0.16.0
[INFO] [stderr]    Compiling serde_derive v1.0.103
[INFO] [stderr]    Compiling tokio-macros v0.2.0
[INFO] [stderr]    Compiling diesel_derives v1.4.1
[INFO] [stderr]     Checking tokio v0.2.2
[INFO] [stderr]     Checking diesel v1.4.3
[INFO] [stderr]    Compiling serde v1.0.103
[INFO] [stderr]     Checking serde_json v1.0.42
[INFO] [stderr]    Compiling diesel_codegen v0.16.1
[INFO] [stderr]     Checking tokio_test_api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0277]: `std::ptr::NonNull<mysqlclient_sys::st_mysql>` cannot be shared between threads safely
[INFO] [stderr]   --> src/routes/book.rs:70:3
[INFO] [stderr]    |
[INFO] [stderr] 70 |   Box::new(response)
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^ `std::ptr::NonNull<mysqlclient_sys::st_mysql>` cannot be shared between threads safely
[INFO] [stderr]    |
[INFO] [stderr]    = help: within `diesel::MysqlConnection`, the trait `std::marker::Sync` is not implemented for `std::ptr::NonNull<mysqlclient_sys::st_mysql>`
[INFO] [stderr]    = note: required because it appears within the type `diesel::mysql::connection::raw::RawConnection`
[INFO] [stderr]    = note: required because it appears within the type `diesel::MysqlConnection`
[INFO] [stderr]    = note: required because of the requirements on the impl of `std::marker::Send` for `&diesel::MysqlConnection`
[INFO] [stderr]    = note: required because it appears within the type `[closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::chain::Chain<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, futures::future::result_::FutureResult<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::and_then::AndThen<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, std::result::Result<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required for the cast to the object type `dyn futures::future::Future<Error = hyper::Error, Item = hyper::Response<hyper::Body>> + std::marker::Send`
[INFO] [stderr] 
[INFO] [stderr] error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely
[INFO] [stderr]   --> src/routes/book.rs:70:3
[INFO] [stderr]    |
[INFO] [stderr] 70 |   Box::new(response)
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^ `std::cell::Cell<i32>` cannot be shared between threads safely
[INFO] [stderr]    |
[INFO] [stderr]    = help: within `diesel::MysqlConnection`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
[INFO] [stderr]    = note: required because it appears within the type `diesel::connection::AnsiTransactionManager`
[INFO] [stderr]    = note: required because it appears within the type `diesel::MysqlConnection`
[INFO] [stderr]    = note: required because of the requirements on the impl of `std::marker::Send` for `&diesel::MysqlConnection`
[INFO] [stderr]    = note: required because it appears within the type `[closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::chain::Chain<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, futures::future::result_::FutureResult<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::and_then::AndThen<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, std::result::Result<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required for the cast to the object type `dyn futures::future::Future<Error = hyper::Error, Item = hyper::Response<hyper::Body>> + std::marker::Send`
[INFO] [stderr] 
[INFO] [stderr] error[E0277]: `std::cell::RefCell<std::collections::HashMap<diesel::connection::StatementCacheKey<diesel::mysql::Mysql>, diesel::mysql::connection::stmt::Statement>>` cannot be shared between threads safely
[INFO] [stderr]   --> src/routes/book.rs:70:3
[INFO] [stderr]    |
[INFO] [stderr] 70 |   Box::new(response)
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^ `std::cell::RefCell<std::collections::HashMap<diesel::connection::StatementCacheKey<diesel::mysql::Mysql>, diesel::mysql::connection::stmt::Statement>>` cannot be shared between threads safely
[INFO] [stderr]    |
[INFO] [stderr]    = help: within `diesel::MysqlConnection`, the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<std::collections::HashMap<diesel::connection::StatementCacheKey<diesel::mysql::Mysql>, diesel::mysql::connection::stmt::Statement>>`
[INFO] [stderr]    = note: required because it appears within the type `diesel::connection::StatementCache<diesel::mysql::Mysql, diesel::mysql::connection::stmt::Statement>`
[INFO] [stderr]    = note: required because it appears within the type `diesel::MysqlConnection`
[INFO] [stderr]    = note: required because of the requirements on the impl of `std::marker::Send` for `&diesel::MysqlConnection`
[INFO] [stderr]    = note: required because it appears within the type `[closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::chain::Chain<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, futures::future::result_::FutureResult<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::and_then::AndThen<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, std::result::Result<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required for the cast to the object type `dyn futures::future::Future<Error = hyper::Error, Item = hyper::Response<hyper::Body>> + std::marker::Send`
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 3 previous errors
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0277`.
[INFO] [stderr] error: could not compile `tokio_test_api`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error[E0277]: `std::ptr::NonNull<mysqlclient_sys::st_mysql>` cannot be shared between threads safely
[INFO] [stderr]   --> src/routes/book.rs:70:3
[INFO] [stderr]    |
[INFO] [stderr] 70 |   Box::new(response)
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^ `std::ptr::NonNull<mysqlclient_sys::st_mysql>` cannot be shared between threads safely
[INFO] [stderr]    |
[INFO] [stderr]    = help: within `diesel::MysqlConnection`, the trait `std::marker::Sync` is not implemented for `std::ptr::NonNull<mysqlclient_sys::st_mysql>`
[INFO] [stderr]    = note: required because it appears within the type `diesel::mysql::connection::raw::RawConnection`
[INFO] [stderr]    = note: required because it appears within the type `diesel::MysqlConnection`
[INFO] [stderr]    = note: required because of the requirements on the impl of `std::marker::Send` for `&diesel::MysqlConnection`
[INFO] [stderr]    = note: required because it appears within the type `[closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::chain::Chain<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, futures::future::result_::FutureResult<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::and_then::AndThen<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, std::result::Result<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required for the cast to the object type `dyn futures::future::Future<Error = hyper::Error, Item = hyper::Response<hyper::Body>> + std::marker::Send`
[INFO] [stderr] 
[INFO] [stderr] error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely
[INFO] [stderr]   --> src/routes/book.rs:70:3
[INFO] [stderr]    |
[INFO] [stderr] 70 |   Box::new(response)
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^ `std::cell::Cell<i32>` cannot be shared between threads safely
[INFO] [stderr]    |
[INFO] [stderr]    = help: within `diesel::MysqlConnection`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
[INFO] [stderr]    = note: required because it appears within the type `diesel::connection::AnsiTransactionManager`
[INFO] [stderr]    = note: required because it appears within the type `diesel::MysqlConnection`
[INFO] [stderr]    = note: required because of the requirements on the impl of `std::marker::Send` for `&diesel::MysqlConnection`
[INFO] [stderr]    = note: required because it appears within the type `[closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::chain::Chain<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, futures::future::result_::FutureResult<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::and_then::AndThen<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, std::result::Result<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required for the cast to the object type `dyn futures::future::Future<Error = hyper::Error, Item = hyper::Response<hyper::Body>> + std::marker::Send`
[INFO] [stderr] 
[INFO] [stderr] error[E0277]: `std::cell::RefCell<std::collections::HashMap<diesel::connection::StatementCacheKey<diesel::mysql::Mysql>, diesel::mysql::connection::stmt::Statement>>` cannot be shared between threads safely
[INFO] [stderr]   --> src/routes/book.rs:70:3
[INFO] [stderr]    |
[INFO] [stderr] 70 |   Box::new(response)
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^ `std::cell::RefCell<std::collections::HashMap<diesel::connection::StatementCacheKey<diesel::mysql::Mysql>, diesel::mysql::connection::stmt::Statement>>` cannot be shared between threads safely
[INFO] [stderr]    |
[INFO] [stderr]    = help: within `diesel::MysqlConnection`, the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<std::collections::HashMap<diesel::connection::StatementCacheKey<diesel::mysql::Mysql>, diesel::mysql::connection::stmt::Statement>>`
[INFO] [stderr]    = note: required because it appears within the type `diesel::connection::StatementCache<diesel::mysql::Mysql, diesel::mysql::connection::stmt::Statement>`
[INFO] [stderr]    = note: required because it appears within the type `diesel::MysqlConnection`
[INFO] [stderr]    = note: required because of the requirements on the impl of `std::marker::Send` for `&diesel::MysqlConnection`
[INFO] [stderr]    = note: required because it appears within the type `[closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::chain::Chain<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, futures::future::result_::FutureResult<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required because it appears within the type `futures::future::and_then::AndThen<futures::future::and_then::AndThen<futures::stream::concat::Concat2<hyper::Body>, futures::future::result_::FutureResult<std::result::Result<dto::NewBookDto, consts::ErrorCode>, hyper::Error>, [closure@src/routes/book.rs:52:19: 52:71]>, std::result::Result<hyper::Response<hyper::Body>, hyper::Error>, [closure@src/routes/book.rs:53:19: 68:10 db_conn:&diesel::MysqlConnection]>`
[INFO] [stderr]    = note: required for the cast to the object type `dyn futures::future::Future<Error = hyper::Error, Item = hyper::Response<hyper::Body>> + std::marker::Send`
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 3 previous errors
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0277`.
[INFO] [stderr] error: could not compile `tokio_test_api`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "af8fc024ef1a6b9b3bddb0ebdd8961a0f1dfd2d294be5c02970d6d8839769bed"`
[INFO] running `"docker" "rm" "-f" "af8fc024ef1a6b9b3bddb0ebdd8961a0f1dfd2d294be5c02970d6d8839769bed"`
[INFO] [stdout] af8fc024ef1a6b9b3bddb0ebdd8961a0f1dfd2d294be5c02970d6d8839769bed
