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

Obscure compiler panic with async/await #56651

Open
thomhuds opened this Issue Dec 9, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@thomhuds
Copy link

thomhuds commented Dec 9, 2018

My code can be found here. While building, the compiler panics with
src/librustc/infer/region_constraints/mod.rs:683: cannot relate bound region: ReLateBound(DebruijnIndex(1), BrAnon(2)) <= '_#0r

I would give a short extract of the code but it's hard to isolate the problem, however I can say that it arises in acacia::je_net::handle_client only when calling await!(receive_msg(socket_read)), including after annotating the type of this expression.

Full error message:

error: internal compiler error: src/librustc/infer/region_constraints/mod.rs:683: cannot relate bound region: ReLateBound(DebruijnIndex(1), BrAnon(2)) <= '_#0r

thread 'main' panicked at 'Box<Any>', src/librustc_errors/lib.rs:538:9
note: Run with `RUST_BACKTRACE=1` for 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.32.0-nightly (4a45578bc 2018-12-07) running on x86_64-unknown-linux-gnu

note: compiler flags: -C debuginfo=2 -C incremental --crate-type bin

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

error: Could not compile `acacia`.
@jonas-schievink

This comment has been minimized.

Copy link
Member

jonas-schievink commented Dec 13, 2018

possibly a duplicate of #53989

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment