Closed
Description
Largely this is here for a tracking bug of the issue within the rustc - see rust-lang/rust#61579
but it affects building master currently.
Bug Report
Building the master branch of Tide with a nightly newer than 2019-06-01 results in the following error:
error: internal compiler error: src/librustc_mir/transform/generator.rs:540: Broken MIR: generator contains type std::option::Option<data::CookieData> in MIR, but typeck only knows about for<'r> {data::CookieData, std::sync::Arc<std::sync::RwLock<cookie::jar::CookieJar>>, std::pin::Pin<std::boxed::Box<(dyn core::future::future::Future<Output = http::response::Response<http_service::Body>> + std::marker::Send + 'r)>>, ()}
--> tide-cookies/src/middleware.rs:39:37
|
39 | FutureExt::boxed(async move {
| _____________________________________^
40 | | let cookie_data = cx
41 | | .extensions_mut()
42 | | .remove()
... |
63 | | res
64 | | })
| |_________^
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:572:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
error: aborting due to previous error
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.37.0-nightly (400b409ef 2019-06-09) running on x86_64-unknown-linux-gnu
note: compiler flags: -C debuginfo=2 -C incremental --crate-type lib
note: some of the compiler flags provided by cargo are hidden
error: Could not compile `tide-cookies`
Environment
- Rust toolchain version(s): [e.g. nightly-]
- OS: Linux 4.19.0-5-amd64 SMP Debian 4.19.37-3 (2019-05-15) x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels