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

Compile panic on Rust nightly when compiling Rocket version 0.5.0-rc.1 #93972

Closed
Bernie opened this issue Feb 13, 2022 · 1 comment
Closed

Compile panic on Rust nightly when compiling Rocket version 0.5.0-rc.1 #93972

Bernie opened this issue Feb 13, 2022 · 1 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.

Comments

@Bernie
Copy link

Bernie commented Feb 13, 2022

Code

Compile panic occurred while compiling Rocket version 0.5.0-rc.1
(rocket = "0.5.0-rc.1")

Meta

rustc --version --verbose:

rustc 1.60.0-nightly (0c292c966 2022-02-08) running on x86_64-unknown-linux-gnu

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

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 (0c292c966 2022-02-08) running on x86_64-unknown-linux-gnu

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

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

``` 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/0c292c9667f1b202a9150d58bdd2e89e3e803996/library/std/src/panicking.rs:584:5 1: core::panicking::panic_fmt at /rustc/0c292c9667f1b202a9150d58bdd2e89e3e803996/library/core/src/panicking.rs:143:14 2: core::panicking::panic_display::<&str> 3: ::flush_delayed 4: ::drop 5: core::ptr::drop_in_place:: 6: as core::ops::drop::Drop>::drop 7: core::ptr::drop_in_place:: 8: rustc_span::with_source_map::, rustc_interface::interface::create_compiler_and_run, rustc_driver::run_compiler::{closure#1}>::{closure#1}> 9: rustc_interface::interface::create_compiler_and_run::, rustc_driver::run_compiler::{closure#1}> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. ```

@Bernie Bernie 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 13, 2022
@ehuss
Copy link
Contributor

ehuss commented Feb 13, 2022

Thanks for the report! Closing as a duplicate of #93831. This should be fixed on the latest nightly.

@ehuss ehuss closed this as completed Feb 13, 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

2 participants