Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not compile rocket #93907

Closed
Dosan015 opened this issue Feb 11, 2022 · 3 comments
Closed

could not compile rocket #93907

Dosan015 opened this issue Feb 11, 2022 · 3 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Dosan015
Copy link

Code

#[macro_use] extern crate rocket;

#[get("/")]
fn index() -> &'static str {
    "Hello, world!"
}

#[launch]
fn rocket() -> _ {
    rocket::build().mount("/", routes![index])
}

Meta

rustc --version --verbose:

rustc 1.60.0-nightly (e646f3d2a 2022-02-10)
binary: rustc
commit-hash: e646f3d2a9541952310778288854943678738ea9
commit-date: 2022-02-10
host: x86_64-unknown-linux-gnu
release: 1.60.0-nightly
LLVM version: 13.0.0

Error output

error: internal compiler error: encountered ambiguity selecting `Binder(<response::stream::reader::ReaderStream<impl futures::Stream<Item = response::stream::raw_sse::RawLinedEvent>> as std::convert::From<impl futures::Stream<Item = response::stream::raw_sse::RawLinedEvent>>>, [])` during codegen, presuming due to overflow or prior type error
  |
  = note: delayed at compiler/rustc_trait_selection/src/traits/codegen.rs:54:32

thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler/rustc_errors/src/lib.rs:1176:13
stack backtrace:
   0:     0x7f91c62e7b7c - std::backtrace_rs::backtrace::libunwind::trace::hb4a65d880d51cc8a
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f91c62e7b7c - std::backtrace_rs::backtrace::trace_unsynchronized::h7869122ac9e9e614
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f91c62e7b7c - std::sys_common::backtrace::_print_fmt::h9fff32a009da8160
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x7f91c62e7b7c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h08e4d8f078954af6
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x7f91c634925c - core::fmt::write::he3a8c04c34cff473
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/core/src/fmt/mod.rs:1190:17
   5:     0x7f91c62d7ea8 - std::io::Write::write_fmt::h885fc3922042c55b
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/io/mod.rs:1657:15
   6:     0x7f91c62ebaf7 - std::sys_common::backtrace::_print::h491ea87d9bc93a80
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x7f91c62ebaf7 - std::sys_common::backtrace::print::h172aa49b889b9de8
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x7f91c62ebaf7 - std::panicking::default_hook::{{closure}}::h4b688a609ed3ca6c
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/panicking.rs:295:22
   9:     0x7f91c62eb7bf - std::panicking::default_hook::hcea89d8776676158
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/panicking.rs:314:9
  10:     0x7f91c6a79461 - rustc_driver[c1c4e25928df51ee]::DEFAULT_HOOK::{closure#0}::{closure#0}
  11:     0x7f91afe986c3 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf5ca22e53410b8e5
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/alloc/src/boxed.rs:1868:9
  12:     0x7f91aff75c5c - proc_macro::bridge::client::<impl proc_macro::bridge::Bridge>::enter::{{closure}}::{{closure}}::hd34938b0721e2f9e
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/proc_macro/src/bridge/client.rs:319:21
  13:     0x7f91afea0ef0 - std::panicking::update_hook::{{closure}}::h59b588e0872d5493
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/panicking.rs:258:41
  14:     0x7f91c62ec3d5 - std::panicking::rust_panic_with_hook::hca08b43f72502df8
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/panicking.rs:702:17
  15:     0x7f91c62ec087 - std::panicking::begin_panic_handler::{{closure}}::hdf2d4b6030b5dc90
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/panicking.rs:588:13
  16:     0x7f91c62e8024 - std::sys_common::backtrace::__rust_end_short_backtrace::hf3c1e0f8da5136c0
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/sys_common/backtrace.rs:138:18
  17:     0x7f91c62ebd89 - rust_begin_unwind
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/panicking.rs:584:5
  18:     0x7f91c62b3d13 - core::panicking::panic_fmt::hbb5a63c753f090ac
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/core/src/panicking.rs:143:14
  19:     0x7f91c7b5beac - core[fa794259d154aa11]::panicking::panic_display::<&str>
  20:     0x7f91c91d8d5d - <rustc_errors[855a887cc3ed9e2e]::HandlerInner>::flush_delayed
  21:     0x7f91c91d721d - <rustc_errors[855a887cc3ed9e2e]::HandlerInner as core[fa794259d154aa11]::ops::drop::Drop>::drop
  22:     0x7f91c88fe4c6 - core[fa794259d154aa11]::ptr::drop_in_place::<rustc_session[c7afb65815eaf95d]::parse::ParseSess>
  23:     0x7f91c8900cfa - <alloc[3e5e74730c8aadd3]::rc::Rc<rustc_session[c7afb65815eaf95d]::session::Session> as core[fa794259d154aa11]::ops::drop::Drop>::drop
  24:     0x7f91c88e598c - core[fa794259d154aa11]::ptr::drop_in_place::<rustc_interface[757d9d568b28c175]::interface::Compiler>
  25:     0x7f91c88eea6a - rustc_interface[757d9d568b28c175]::interface::create_compiler_and_run::<core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>, rustc_driver[c1c4e25928df51ee]::run_compiler::{closure#1}>
  26:     0x7f91c88d157b - <scoped_tls[28c23cd987957e09]::ScopedKey<rustc_span[19937ed525521566]::SessionGlobals>>::set::<rustc_interface[757d9d568b28c175]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[757d9d568b28c175]::interface::run_compiler<core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>, rustc_driver[c1c4e25928df51ee]::run_compiler::{closure#1}>::{closure#0}, core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>>::{closure#0}::{closure#0}, core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>>
  27:     0x7f91c8908675 - std[90db525a6f5ba74e]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[757d9d568b28c175]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[757d9d568b28c175]::interface::run_compiler<core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>, rustc_driver[c1c4e25928df51ee]::run_compiler::{closure#1}>::{closure#0}, core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>>::{closure#0}, core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>>
  28:     0x7f91c8906d79 - <<std[90db525a6f5ba74e]::thread::Builder>::spawn_unchecked_<rustc_interface[757d9d568b28c175]::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface[757d9d568b28c175]::interface::run_compiler<core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>, rustc_driver[c1c4e25928df51ee]::run_compiler::{closure#1}>::{closure#0}, core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>>::{closure#0}, core[fa794259d154aa11]::result::Result<(), rustc_errors[855a887cc3ed9e2e]::ErrorReported>>::{closure#1} as core[fa794259d154aa11]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  29:     0x7f91c62f7e23 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::haee003b45429b010
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/alloc/src/boxed.rs:1854:9
  30:     0x7f91c62f7e23 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h1ab610143d2ab06b
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/alloc/src/boxed.rs:1854:9
  31:     0x7f91c62f7e23 - std::sys::unix::thread::Thread::new::thread_start::h7a28367fea04484f
                               at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/sys/unix/thread.rs:108:17
  32:     0x7f91c5e346db - start_thread
  33:     0x7f91c595588f - __clone
  34:                0x0 - <unknown>

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.60.0-nightly (e646f3d2a 2022-02-10) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `rocket`
Backtrace

0: rust_begin_unwind
             at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/e646f3d2a9541952310778288854943678738ea9/library/core/src/panicking.rs:143:14
   2: core::panicking::panic_display::<&str>
   3: <rustc_errors::HandlerInner>::flush_delayed
   4: <rustc_errors::HandlerInner as core::ops::drop::Drop>::drop
   5: core::ptr::drop_in_place::<rustc_session::parse::ParseSess>
   6: <alloc::rc::Rc<rustc_session::session::Session> as core::ops::drop::Drop>::drop
   7: core::ptr::drop_in_place::<rustc_interface::interface::Compiler>
   8: rustc_interface::interface::create_compiler_and_run::<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>
   9: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

@Dosan015 Dosan015 added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 11, 2022
@Scarjit
Copy link

Scarjit commented Feb 11, 2022

Reproduceable on Windows

Code

#[macro_use] extern crate rocket;

#[get("/")]
fn index() -> &'static str {
    "Hello, world!"
}

#[rocket::main]
async fn main()  {
    rocket::build().mount("/", routes![index]);
}
[dependencies]
rocket = "0.5.0-rc.1"

Meta

rustc --version --verbose:

rustc 1.60.0-nightly (e646f3d2a 2022-02-10)
binary: rustc
commit-hash: e646f3d2a9541952310778288854943678738ea9
commit-date: 2022-02-10
host: x86_64-pc-windows-msvc
release: 1.60.0-nightly
LLVM version: 13.0.0

Error output

error: internal compiler error: encountered ambiguity selecting `Binder(<response::stream::reader::ReaderStream<impl futures::Stream<Item = response::stream::raw_sse::RawLinedEvent>> as std::convert::From<impl futures::Stream<Item = response::stream::raw_sse::RawLinedEvent>>>, [])` during codegen, presuming due to overflow or prior type error
  |
  = note: delayed at compiler\rustc_trait_selection\src\traits\codegen.rs:54:32

thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler\rustc_errors\src\lib.rs:1176:13
Backtrace

stack backtrace:
   0:     0x7ffded817d30 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he09221c2d444dfe1
   1:     0x7ffded84779a - core::fmt::write::h7c00eda1e723c654
   2:     0x7ffded809059 - <std::io::IoSlice as core::fmt::Debug>::fmt::h793e0aeaf1fec88d
   3:     0x7ffded81b4a2 - std::panicking::default_hook::h608d4dde448f0c29
   4:     0x7ffded81b063 - std::panicking::default_hook::h608d4dde448f0c29
   5:     0x7ffdd649ec09 - <rustc_driver[416e5eba3e41cb3]::args::Error as core[984dcdc6a6b66ef3]::fmt::Debug>::fmt
   6:     0x7ffded81bdd2 - std::panicking::rust_panic_with_hook::h1b80c96e85e80f64
   7:     0x7ffded81bb1d - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::hba826596c7be7c9e
   8:     0x7ffded818687 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he09221c2d444dfe1
   9:     0x7ffded81b799 - rust_begin_unwind
  10:     0x7ffded87a985 - core::panicking::panic_fmt::h987a325189bd1697
  11:     0x7ffddabfc7e7 - <rustc_errors[c29ebb7dd1d8d943]::ErrorReported as core[984dcdc6a6b66ef3]::fmt::Debug>::fmt
  12:     0x7ffddabf94b8 - <rustc_errors[c29ebb7dd1d8d943]::HandlerInner>::delay_as_bug
  13:     0x7ffddabf49c2 - <rustc_errors[c29ebb7dd1d8d943]::HandlerInner as core[984dcdc6a6b66ef3]::ops::drop::Drop>::drop
  14:     0x7ffdd6497224 - <rustc_driver[416e5eba3e41cb3]::args::Error as core[984dcdc6a6b66ef3]::fmt::Debug>::fmt
  15:     0x7ffdd649b427 - <rustc_driver[416e5eba3e41cb3]::args::Error as core[984dcdc6a6b66ef3]::fmt::Debug>::fmt
  16:     0x7ffdd64339dd - <rustc_middle[36d3a5273b30a1f]::ty::SymbolName as core[984dcdc6a6b66ef3]::fmt::Debug>::fmt
  17:     0x7ffdd6437ff0 - <rustc_driver[416e5eba3e41cb3]::args::Error as core[984dcdc6a6b66ef3]::fmt::Debug>::fmt
  18:     0x7ffdd642d53a - <rustc_codegen_ssa[71a279e59bdb6602]::back::linker::MsvcLinker as rustc_codegen_ssa[71a279e59bdb6602]::back::linker::Linker>::optimize
  19:     0x7ffdd640e383 - <rustc_codegen_ssa[71a279e59bdb6602]::back::linker::MsvcLinker as rustc_codegen_ssa[71a279e59bdb6602]::back::linker::Linker>::optimize
  20:     0x7ffdd64b5138 - rustc_driver[416e5eba3e41cb3]::pretty::print_after_hir_lowering
  21:     0x7ffded82c73c - std::sys::windows::thread::Thread::new::h5fb28379b94c9474
  22:     0x7ffe7f1854e0 - BaseThreadInitThunk
  23:     0x7ffe7fee485b - RtlUserThreadStart

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.60.0-nightly (e646f3d2a 2022-02-10) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type rlib -C embed-bitcode=no -C debuginfo=2

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `rocket`

@chris-morgan
Copy link
Member

I just hit this building Conduit (having just updated rustc nightly).

    Updating crates.io index
    Updating git repository `https://github.com/timokoesters/reqwest`
    Updating git repository `https://github.com/ruma/ruma`
  Downloaded futures-macro v0.3.19
  Downloaded inlinable_string v0.1.15
  Downloaded clang-sys v1.3.0
  Downloaded heck v0.4.0
  Downloaded ahash v0.7.6
  Downloaded bytemuck v1.7.3
  Downloaded crc32fast v1.3.1
  Downloaded cc v1.0.72
  Downloaded fastrand v1.6.0
  Downloaded ed25519 v1.3.0
  Downloaded libloading v0.7.3
  Downloaded futures-task v0.3.19
  Downloaded futures-executor v0.3.19
  Downloaded instant v0.1.12
  Downloaded minimal-lexical v0.2.1
  Downloaded cexpr v0.6.0
  Downloaded indexmap v1.8.0
  Downloaded pkg-config v0.3.24
  Downloaded http-body v0.4.4
  Downloaded http v0.2.6
  Downloaded futures-sink v0.3.19
  Downloaded clap_derive v3.0.6
  Downloaded proc-macro2 v1.0.36
  Downloaded ppv-lite86 v0.2.16
  Downloaded pin-project-lite v0.2.8
  Downloaded tokio-macros v1.7.0
  Downloaded version_check v0.9.4
  Downloaded peeking_take_while v0.1.2
  Downloaded zeroize v1.5.0
  Downloaded webpki-roots v0.22.2
  Downloaded rustc-hash v1.1.0
  Downloaded ryu v1.0.9
  Downloaded proc-macro-crate v1.1.0
  Downloaded typenum v1.15.0
  Downloaded pin-project-internal v1.0.10
  Downloaded tracing-core v0.1.21
  Downloaded tokio-util v0.6.9
  Downloaded sha2 v0.9.9
  Downloaded shlex v1.1.0
  Downloaded sha-1 v0.9.8
  Downloaded spki v0.4.1
  Downloaded textwrap v0.14.2
  Downloaded synstructure v0.12.6
  Downloaded uuid v0.8.2
  Downloaded tokio-stream v0.1.8
  Downloaded socket2 v0.4.3
  Downloaded zeroize_derive v1.3.1
  Downloaded signature v1.5.0
  Downloaded crossbeam-utils v0.8.6
  Downloaded thiserror v1.0.30
  Downloaded unicode-bidi v0.3.7
  Downloaded gif v0.11.3
  Downloaded serde_urlencoded v0.7.1
  Downloaded tempfile v3.3.0
  Downloaded multer v2.0.2
  Downloaded hyper v0.14.16
  Downloaded crypto-mac v0.11.1
  Downloaded tikv-jemallocator v0.4.1
  Downloaded serde_derive v1.0.134
  Downloaded h2 v0.3.10
  Downloaded itertools v0.10.3
  Downloaded tinyvec v1.5.1
  Downloaded tracing v0.1.29
  Downloaded futures v0.3.19
  Downloaded tikv-jemalloc-ctl v0.4.2
  Downloaded thiserror-impl v1.0.30
  Downloaded tokio v1.15.0
  Downloaded libc v0.2.113
  Downloaded paste v1.0.6
  Downloaded syn v1.0.86
  Downloaded hyper-rustls v0.23.0
  Downloaded httpdate v1.0.2
  Downloaded fs_extra v1.2.0
  Downloaded generic-array v0.14.5
  Downloaded tokio-rustls v0.23.2
  Downloaded proc-macro-error-attr v1.0.4
  Downloaded rustls-pemfile v0.2.1
  Downloaded sharded-slab v0.1.4
  Downloaded serde_json v1.0.75
  Downloaded slab v0.4.5
  Downloaded serde v1.0.134
  Downloaded encoding_rs v0.8.30
  Downloaded quote v1.0.14
  Downloaded num_cpus v1.13.1
  Downloaded smallvec v1.8.0
  Downloaded sct v0.7.0
  Downloaded pkcs8 v0.7.6
  Downloaded pin-project v1.0.10
  Downloaded itoa v1.0.1
  Downloaded proc-macro-error v1.0.4
  Downloaded tracing-attributes v0.1.18
  Downloaded rocksdb v0.17.0
  Downloaded serde_yaml v0.8.23
  Downloaded mio v0.7.14
  Downloaded os_str_bytes v6.0.0
  Downloaded nom v7.1.0
  Downloaded hmac v0.11.0
  Downloaded bindgen v0.59.2
  Downloaded tracing-subscriber v0.2.25
  Downloaded once_cell v1.9.0
  Downloaded futures-core v0.3.19
  Downloaded getrandom v0.2.4
  Downloaded futures-util v0.3.19
  Downloaded der v0.4.5
  Downloaded futures-channel v0.3.19
  Downloaded futures-io v0.3.19
  Downloaded crossbeam-channel v0.5.2
  Downloaded rustls v0.20.2
  Downloaded const_fn v0.4.9
  Downloaded const-oid v0.6.2
  Downloaded atomic v0.5.1
  Downloaded async-trait v0.1.52
  Downloaded clap v3.0.10
  Downloaded tikv-jemalloc-sys v0.4.2+5.2.1-patched.2
  Downloaded librocksdb-sys v6.20.3
  Downloaded rusqlite v0.25.4
  Downloaded 116 crates (16.3 MB) in 2.49s (largest was `librocksdb-sys` at 8.1 MB)
   Compiling proc-macro2 v1.0.36
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.86
   Compiling version_check v0.9.4
   Compiling libc v0.2.113
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.0.1
   Compiling memchr v2.4.1
   Compiling once_cell v1.9.0
   Compiling serde_derive v1.0.134
   Compiling serde v1.0.134
   Compiling pin-project-lite v0.2.8
   Compiling bytes v1.1.0
   Compiling lazy_static v1.4.0
   Compiling futures-core v0.3.19
   Compiling log v0.4.14
   Compiling itoa v1.0.1
   Compiling percent-encoding v2.1.0
   Compiling ppv-lite86 v0.2.16
   Compiling base64 v0.13.0
   Compiling ryu v1.0.9
   Compiling matches v0.1.9
   Compiling serde_json v1.0.75
   Compiling futures-channel v0.3.19
   Compiling itoa v0.4.8
   Compiling futures-sink v0.3.19
   Compiling futures-task v0.3.19
   Compiling futures-util v0.3.19
   Compiling pin-utils v0.1.0
   Compiling slab v0.4.5
   Compiling fnv v1.0.7
   Compiling futures-io v0.3.19
   Compiling spin v0.5.2
   Compiling untrusted v0.7.1
   Compiling yansi v0.5.0
   Compiling proc-macro-hack v0.5.19
   Compiling typenum v1.15.0
   Compiling httparse v1.5.1
   Compiling glob v0.3.0
   Compiling parking_lot_core v0.8.5
   Compiling const_fn v0.4.9
   Compiling bitflags v1.3.2
   Compiling wildmatch v2.1.0
   Compiling getrandom v0.1.16
   Compiling byteorder v1.4.3
   Compiling smallvec v1.8.0
   Compiling async-trait v0.1.52
   Compiling unindent v0.1.7
   Compiling minimal-lexical v0.2.1
   Compiling crossbeam-utils v0.8.6
   Compiling either v1.6.1
   Compiling ref-cast v1.0.6
   Compiling regex-syntax v0.6.25
   Compiling tinyvec_macros v0.1.0
   Compiling bindgen v0.59.2
   Compiling try-lock v0.2.3
   Compiling hashbrown v0.11.2
   Compiling subtle v2.4.1
   Compiling encoding_rs v0.8.30
   Compiling shlex v1.1.0
   Compiling unicode-bidi v0.3.7
   Compiling httpdate v1.0.2
   Compiling cpufeatures v0.2.1
   Compiling fs_extra v1.2.0
   Compiling scopeguard v1.1.0
   Compiling const-oid v0.6.2
   Compiling lazycell v1.3.0
   Compiling tower-service v0.3.1
   Compiling opaque-debug v0.3.0
   Compiling peeking_take_while v0.1.2
   Compiling rustc-hash v1.1.0
   Compiling unicode-segmentation v1.8.0
   Compiling crc32fast v1.3.1
   Compiling inlinable_string v0.1.15
   Compiling pkg-config v0.3.24
   Compiling signature v1.5.0
   Compiling linked-hash-map v0.5.4
   Compiling mime v0.3.16
   Compiling adler32 v1.2.0
   Compiling state v0.5.2
   Compiling ipnet v2.3.1
   Compiling match_cfg v0.1.0
   Compiling remove_dir_all v0.5.3
   Compiling arrayref v0.3.6
   Compiling weezl v0.1.5
   Compiling fastrand v1.6.0
   Compiling constant_time_eq v0.1.5
   Compiling data-encoding v2.3.2
   Compiling maplit v1.0.2
   Compiling integer-encoding v1.1.7
   Compiling ansi_term v0.12.1
   Compiling arrayvec v0.5.2
   Compiling assign v1.1.1
   Compiling spin v0.9.2
   Compiling heck v0.4.0
   Compiling quick-error v1.2.3
   Compiling color_quant v1.1.0
   Compiling base64 v0.12.3
   Compiling binascii v0.1.4
   Compiling fallible-streaming-iterator v0.1.9
   Compiling paste v1.0.6
   Compiling fallible-iterator v0.2.0
   Compiling jpeg-decoder v0.1.22
   Compiling textwrap v0.14.2
   Compiling bytemuck v1.7.3
   Compiling ahash v0.7.6
   Compiling standback v0.2.17
   Compiling proc-macro2-diagnostics v0.9.1
   Compiling generic-array v0.14.5
   Compiling time v0.2.27
   Compiling nom v7.1.0
   Compiling cookie v0.15.1
   Compiling uncased v0.9.6
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling figment v0.10.6
   Compiling multer v2.0.2
   Compiling instant v0.1.12
   Compiling indexmap v1.8.0
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling num-bigint v0.2.6
   Compiling num-iter v0.1.42
   Compiling atomic v0.5.1
   Compiling num-rational v0.3.2
   Compiling thread_local v1.1.3
   Compiling tracing-core v0.1.21
   Compiling sharded-slab v0.1.4
   Compiling rustls-pemfile v0.2.1
   Compiling libloading v0.7.3
   Compiling form_urlencoded v1.0.1
   Compiling http v0.2.6
   Compiling rocket v0.5.0-rc.1
   Compiling clang-sys v1.3.0
   Compiling indoc v1.0.3
   Compiling itertools v0.10.3
   Compiling regex-automata v0.1.10
   Compiling tinyvec v1.5.1
   Compiling regex v1.5.4
   Compiling lock_api v0.4.5
   Compiling der v0.4.5
   Compiling heck v0.3.3
   Compiling ed25519 v1.3.0
   Compiling yaml-rust v0.4.5
   Compiling lru-cache v0.1.2
   Compiling deflate v0.8.6
   Compiling miniz_oxide v0.3.7
   Compiling blake2b_simd v0.5.11
   Compiling gif v0.11.3
   Compiling http-body v0.4.4
   Compiling tracing v0.1.29
   Compiling matchers v0.0.1
   Compiling unicode-normalization v0.1.19
   Compiling spki v0.4.1
   Compiling quote v1.0.14
   Compiling getrandom v0.2.4
   Compiling num_cpus v1.13.1
   Compiling signal-hook-registry v1.4.0
   Compiling time v0.1.43
   Compiling socket2 v0.4.3
   Compiling hostname v0.3.1
   Compiling dirs-sys v0.3.6
   Compiling atty v0.2.14
   Compiling tempfile v3.3.0
   Compiling aho-corasick v0.7.18
   Compiling stable-pattern v0.1.0
   Compiling os_str_bytes v6.0.0
   Compiling jobserver v0.1.24
   Compiling mio v0.7.14
   Compiling want v0.3.0
   Compiling tracing-log v0.1.2
   Compiling toml v0.5.8
   Compiling crossbeam-channel v0.5.2
   Compiling rust-argon2 v0.8.3
   Compiling idna v0.2.3
   Compiling png v0.16.8
   Compiling rand_core v0.6.3
   Compiling uuid v0.8.2
   Compiling threadpool v1.8.1
   Compiling rand_core v0.5.1
   Compiling parking_lot v0.11.2
   Compiling resolv-conf v0.7.0
   Compiling directories v3.0.2
   Compiling ordered-float v1.1.1
   Compiling cexpr v0.6.0
   Compiling cc v1.0.72
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling crypto-mac v0.11.1
   Compiling tokio v1.15.0
   Compiling url v2.2.2
   Compiling synstructure v0.12.6
   Compiling thiserror-impl v1.0.30
   Compiling tracing-attributes v0.1.18
   Compiling tokio-macros v1.7.0
   Compiling futures-macro v0.3.19
   Compiling time-macros-impl v0.1.2
   Compiling ref-cast-impl v1.0.6
   Compiling pin-project-internal v1.0.10
   Compiling async-stream-impl v0.3.2
   Compiling enum-as-inner v0.3.3
   Compiling rand_chacha v0.3.1
   Compiling rand_chacha v0.2.2
   Compiling chrono v0.4.19
   Compiling thrift v0.13.0
   Compiling pem v0.8.3
   Compiling ring v0.16.20
   Compiling tikv-jemalloc-sys v0.4.2+5.2.1-patched.2
   Compiling libsqlite3-sys v0.22.2
   Compiling sha2 v0.9.9
   Compiling sha-1 v0.9.8
   Compiling hmac v0.11.0
   Compiling tokio-util v0.6.9
   Compiling devise_core v0.3.1
   Compiling pear_codegen v0.2.3
   Compiling zeroize_derive v1.3.1
   Compiling thiserror v1.0.30
   Compiling time-macros v0.1.1
   Compiling pin-project v1.0.10
   Compiling async-stream v0.3.2
   Compiling clap_derive v3.0.6
   Compiling hashlink v0.7.0
   Compiling rand v0.8.4
   Compiling rand v0.7.3
   Compiling simple_asn1 v0.4.1
   Compiling image v0.23.14
   Compiling librocksdb-sys v6.20.3
   Compiling h2 v0.3.10
   Compiling devise_codegen v0.3.1
   Compiling pear v0.2.3
   Compiling zeroize v1.5.0
   Compiling js_int v0.2.1
   Compiling tracing-serde v0.1.2
   Compiling ubyte v0.10.1
   Compiling serde_urlencoded v0.7.1
   Compiling ruma-identifiers-validation v0.5.0 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling proc-macro-crate v1.1.0
   Compiling tokio-stream v0.1.8
   Compiling futures-executor v0.3.19
   Compiling tokio-socks v0.5.1
   Compiling trust-dns-proto v0.20.3
   Compiling hyper v0.14.16
   Compiling devise v0.3.1
   Compiling curve25519-dalek v3.2.0
   Compiling pkcs8 v0.7.6
   Compiling serde_yaml v0.8.23
   Compiling clap v3.0.10
   Compiling tracing-subscriber v0.2.25
   Compiling ruma-serde-macros v0.5.0 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling ruma-api-macros v0.18.5 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling ruma-events-macros v0.24.6 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling ruma-identifiers-macros v0.20.0 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling futures v0.3.19
   Compiling trust-dns-resolver v0.20.3
   Compiling webpki v0.22.0
   Compiling sct v0.7.0
   Compiling sct v0.6.1
   Compiling webpki v0.21.4
   Compiling jsonwebtoken v7.2.0
   Compiling tikv-jemallocator v0.4.1
   Compiling tikv-jemalloc-ctl v0.4.2
   Compiling ed25519-dalek v1.0.1
   Compiling tracing-flame v0.1.0
   Compiling ruma-serde v0.5.0 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling opentelemetry v0.16.0
   Compiling rocket_http v0.5.0-rc.1
   Compiling webpki-roots v0.22.2
   Compiling rustls v0.20.2
   Compiling rustls v0.19.1
   Compiling ruma-identifiers v0.20.0 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling opentelemetry-semantic-conventions v0.8.0
   Compiling rocket_codegen v0.5.0-rc.1
   Compiling tokio-rustls v0.23.2
   Compiling tokio-rustls v0.22.0
   Compiling ruma-common v0.6.0 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling ruma-api v0.18.5 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling ruma-signatures v0.9.0 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling opentelemetry-jaeger v0.15.0
   Compiling hyper-rustls v0.23.0
   Compiling ruma-events v0.24.6 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling ruma-identity-service-api v0.3.0 (https://github.com/ruma/ruma?rev=f7a10a7e471b59d3096be2695c2a05d407d80df1#f7a10a7e)
   Compiling reqwest v0.11.9 (https://github.com/timokoesters/reqwest?rev=57b7cf4feb921573dfafad7d34b9ac6e44ead0bd#57b7cf4f)
error: internal compiler error: encountered ambiguity selecting `Binder(<response::stream::reader::ReaderStream<impl futures::Stream<Item = response::stream::raw_sse::RawLinedEvent>> as std::convert::From<impl futures::Stream<Item = response::stream::raw_sse::RawLinedEvent>>>, [])` during codegen, presuming due to overflow or prior type error
  |
  = note: delayed at compiler/rustc_trait_selection/src/traits/codegen.rs:54:32

thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler/rustc_errors/src/lib.rs:1176:13
stack backtrace:
   0: rust_begin_unwind
             at /rustc/e646f3d2a9541952310778288854943678738ea9/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/e646f3d2a9541952310778288854943678738ea9/library/core/src/panicking.rs:143:14
   2: core::panicking::panic_display::<&str>
   3: <rustc_errors::HandlerInner>::flush_delayed
   4: <rustc_errors::HandlerInner as core::ops::drop::Drop>::drop
   5: core::ptr::drop_in_place::<rustc_session::parse::ParseSess>
   6: <alloc::rc::Rc<rustc_session::session::Session> as core::ops::drop::Drop>::drop
   7: core::ptr::drop_in_place::<rustc_interface::interface::Compiler>
   8: rustc_interface::interface::create_compiler_and_run::<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>
   9: <scoped_tls::ScopedKey<rustc_span::SessionGlobals>>::set::<rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<core::result::Result<(), rustc_errors::ErrorReported>, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.60.0-nightly (e646f3d2a 2022-02-10) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C opt-level=3 -C linker-plugin-lto -C codegen-units=32

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `rocket`
warning: build failed, waiting for other jobs to finish...
error: build failed

@ehuss
Copy link
Contributor

ehuss commented Feb 11, 2022

Thanks for the reports, closing as a duplicate of #93831.

@ehuss ehuss closed this as completed Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants