Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 15.65 KB | None | 0 0
  1. error[E0275]: overflow evaluating the requirement `std::ptr::Unique<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>: std::marker::Send`
  2.   --> src/main.rs:58:34
  3.    |
  4. 58 |     Ok(block_on(tokio::run(run().boxed())))
  5.    |                                  ^^^^^
  6.    |
  7.    = help: consider adding a `#![recursion_limit="128"]` attribute to your crate
  8.    = note: required because it appears within the type `alloc::raw_vec::RawVec<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>`
  9.    = note: required because it appears within the type `std::vec::Vec<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>`
  10.    = note: required because it appears within the type `slab::Slab<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>`
  11.    = note: required because it appears within the type `h2::proto::streams::buffer::Buffer<h2::proto::streams::recv::Event>`
  12.    = note: required because it appears within the type `h2::proto::streams::recv::Recv`
  13.    = note: required because it appears within the type `h2::proto::streams::streams::Actions`
  14.    = note: required because it appears within the type `h2::proto::streams::streams::Inner`
  15.    = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Mutex<h2::proto::streams::streams::Inner>`
  16.    = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<std::sync::Mutex<h2::proto::streams::streams::Inner>>`
  17.    = note: required because it appears within the type `h2::proto::streams::streams::OpaqueStreamRef`
  18.    = note: required because it appears within the type `h2::share::ReleaseCapacity`
  19.    = note: required because it appears within the type `h2::share::RecvStream`
  20.    = note: required because it appears within the type `hyper::body::body::Kind`
  21.    = note: required because it appears within the type `hyper::body::body::Body`
  22.    = note: required because it appears within the type `http::request::Request<hyper::body::body::Body>`
  23.    = note: required because it appears within the type `(http::request::Request<hyper::body::body::Body>, hyper::client::dispatch::Callback<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>)`
  24.    = note: required because it appears within the type `std::option::Option<(http::request::Request<hyper::body::body::Body>, hyper::client::dispatch::Callback<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>)>`
  25.    = note: required because it appears within the type `hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>`
  26.    = note: required because of the requirements on the impl of `std::marker::Send` for `futures::sync::mpsc::Inner<hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>>`
  27.    = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<futures::sync::mpsc::Inner<hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>>>`
  28.    = note: required because it appears within the type `futures::sync::mpsc::Sender<hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>>`
  29.    = note: required because it appears within the type `futures::sync::mpsc::UnboundedSender<hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>>`
  30.    = note: required because it appears within the type `hyper::client::dispatch::Sender<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>`
  31.    = note: required because it appears within the type `hyper::client::conn::SendRequest<hyper::body::body::Body>`
  32.    = note: required because it appears within the type `hyper::client::PoolTx<hyper::body::body::Body>`
  33.    = note: required because it appears within the type `hyper::client::PoolClient<hyper::body::body::Body>`
  34.    = note: required because it appears within the type `hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>`
  35.    = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>`
  36.    = note: required because it appears within the type `alloc::raw_vec::RawVec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>`
  37.    = note: required because it appears within the type `std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>`
  38.    = note: required because it appears within the type `(std::sync::Arc<std::string::String>, std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>)`
  39.    = note: required because of the requirements on the impl of `std::marker::Send` for `hashbrown::raw::RawTable<(std::sync::Arc<std::string::String>, std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>)>`
  40.    = note: required because it appears within the type `hashbrown::map::HashMap<std::sync::Arc<std::string::String>, std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>, std::collections::hash_map::RandomState>`
  41.    = note: required because it appears within the type `std::collections::HashMap<std::sync::Arc<std::string::String>, std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>>`
  42.    = note: required because it appears within the type `hyper::client::pool::PoolInner<hyper::client::PoolClient<hyper::body::body::Body>>`
  43.    = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Mutex<hyper::client::pool::PoolInner<hyper::client::PoolClient<hyper::body::body::Body>>>`
  44.    = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<std::sync::Mutex<hyper::client::pool::PoolInner<hyper::client::PoolClient<hyper::body::body::Body>>>>`
  45.    = note: required because it appears within the type `std::option::Option<std::sync::Arc<std::sync::Mutex<hyper::client::pool::PoolInner<hyper::client::PoolClient<hyper::body::body::Body>>>>>`
  46.    = note: required because it appears within the type `hyper::client::pool::Pool<hyper::client::PoolClient<hyper::body::body::Body>>`
  47.    = note: required because it appears within the type `hyper::client::Client<reqwest::connect::Connector>`
  48.    = note: required because it appears within the type `reqwest::async_impl::client::ClientRef`
  49.    = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<reqwest::async_impl::client::ClientRef>`
  50.    = note: required because it appears within the type `reqwest::async_impl::client::PendingRequest`
  51.    = note: required because it appears within the type `reqwest::async_impl::client::PendingInner`
  52.    = note: required because it appears within the type `reqwest::async_impl::client::Pending`
  53.    = note: required because it appears within the type `impl futures::future::Future`
  54.    = note: required because it appears within the type `futures::task_impl::Spawn<impl futures::future::Future>`
  55.    = note: required because it appears within the type `futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>`
  56.    = note: required because it appears within the type `for<'r> {url::Url, fn(reqwest::async_impl::response::Response) -> std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>> {std::result::Result::<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>>::Ok}, fn(std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::into_result}, futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>, ()}`
  57.   = note: required because it appears within the type `[static generator@src/util.rs:11:59: 13:2 url:url::Url for<'r> {url::Url, fn(reqwest::async_impl::response::Response) -> std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>> {std::result::Result::<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>>::Ok}, fn(std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::into_result}, futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>, ()}]`
  58.    = note: required because it appears within the type `std::future::GenFuture<[static generator@src/util.rs:11:59: 13:2 url:url::Url for<'r> {url::Url, fn(reqwest::async_impl::response::Response) -> std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>> {std::result::Result::<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>>::Ok}, fn(std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::into_result}, futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>, ()}]>`
  59.   = note: required because it appears within the type `impl core::future::future::Future`
  60.   = note: required because it appears within the type `impl core::future::future::Future`
  61.   = note: required because it appears within the type `for<'r, 's, 't0> {&'r str, fn(std::collections::HashSet<util::Language>) -> std::result::Result<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>> {std::result::Result::<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>>::Ok}, fn(std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error>) -> std::result::Result<<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::into_result}, fn(std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::into_result}, impl core::future::future::Future, (), futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>}`
  62.   = note: required because it appears within the type `[static generator@src/main.rs:67:65: 71:2 address:&str for<'r, 's, 't0> {&'r str, fn(std::collections::HashSet<util::Language>) -> std::result::Result<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>> {std::result::Result::<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>>::Ok}, fn(std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error>) -> std::result::Result<<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::into_result}, fn(std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::into_result}, impl core::future::future::Future, (), futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>}]`
  63.   = note: required because it appears within the type `std::future::GenFuture<[static generator@src/main.rs:67:65: 71:2 address:&str for<'r, 's, 't0> {&'r str, fn(std::collections::HashSet<util::Language>) -> std::result::Result<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>> {std::result::Result::<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>>::Ok}, fn(std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error>) -> std::result::Result<<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::into_result}, fn(std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::into_result}, impl core::future::future::Future, (), futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>}]>`
  64.   = note: required because it appears within the type `impl core::future::future::Future`
  65.   = note: required because it appears within the type `impl core::future::future::Future`
  66.   = note: required because it appears within the type `for<'r> {impl core::future::future::Future, ()}`
  67.    = note: required because it appears within the type `[static generator@src/main.rs:61:31: 65:2 for<'r> {impl core::future::future::Future, ()}]`
  68.   = note: required because it appears within the type `std::future::GenFuture<[static generator@src/main.rs:61:31: 65:2 for<'r> {impl core::future::future::Future, ()}]>`
  69.    = note: required because it appears within the type `impl core::future::future::Future`
  70.    = note: required because it appears within the type `impl core::future::future::Future`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement