Closed BattyBoopers closed 1 year ago
This is probably a duplicate of https://github.com/rust-lang/rust/issues/97099 of which the fix was reverted recently
Yes, bisection points at the revert
searched nightlies: from nightly-2022-08-01 to nightly-2022-08-20 regressed nightly: nightly-2022-08-19 searched commit range: https://github.com/rust-lang/rust/compare/9c20b2a8cc7588decb6de25ac6a7912dcef24d65...0b79f758c9aa6646606662a6d623a0752286cd17 regressed commit: https://github.com/rust-lang/rust/commit/8064a495086c2e63c0ef77e8e82fe3b9b5dc535f
Triage: Fixed on the latest nightly, @rustbot labels: +E-needs-test
Code
This crashes with the very latest version (
cargo +nightly-2022-08-19 run
), but not with the previous version (cargo +nightly-2022-08-18 run
)Meta
rustc --version --verbose
:Error output
Backtrace
``` Compiling testing_stuff v0.1.0 (/tmp/testing_stuff) thread 'rustc' panicked at 'assertion failed: self.scc_universes[scc] == ty::UniverseIndex::ROOT', compiler/rustc_borrowck/src/region_infer/mod.rs:718:9 stack backtrace: 0: rust_begin_unwind at /rustc/e1b28cd2f16bd5b832183d7968cae3bb9213e78d/library/std/src/panicking.rs:584:5 1: core::panicking::panic_fmt at /rustc/e1b28cd2f16bd5b832183d7968cae3bb9213e78d/library/core/src/panicking.rs:142:14 2: core::panicking::panic at /rustc/e1b28cd2f16bd5b832183d7968cae3bb9213e78d/library/core/src/panicking.rs:48:5 3:::solve
4: rustc_borrowck::nll::compute_regions
5: rustc_borrowck::do_mir_borrowck
6: rustc_borrowck::mir_borrowck
7: >::call_once
8: >::with_task::
9: rustc_query_system::query::plumbing::try_execute_query::>
10: ::mir_borrowck
11: ::check
12: rustc_typeck::collect::type_of::find_opaque_ty_constraints_for_tait
13: rustc_typeck::collect::type_of::type_of
14: >::with_task::
15: rustc_query_system::query::plumbing::get_query::
16: rustc_typeck::check::check::check_item_type
17: rustc_typeck::check::check::check_mod_item_types
18: >::with_task::
19: rustc_query_system::query::plumbing::try_execute_query::>
20: rustc_query_system::query::plumbing::get_query::
21: ::for_each_module::
22: rustc_typeck::check_crate
23: rustc_interface::passes::analysis
24: >::with_task::>
25: rustc_query_system::query::plumbing::try_execute_query::>>
26: rustc_query_system::query::plumbing::get_query::
27: ::enter::>
28: ::enter::, rustc_errors::ErrorGuaranteed>>
29: rustc_span::with_source_map::, rustc_interface::interface::create_compiler_and_run, rustc_driver::run_compiler::{closure#1}>::{closure#1}>
30: rustc_interface::interface::create_compiler_and_run::, rustc_driver::run_compiler::{closure#1}>
31: >::set::, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
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.65.0-nightly (e1b28cd2f 2022-08-19) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `main`
#1 [type_of] computing type of `main::SomeFuture::{opaque#0}`
#2 [check_mod_item_types] checking item types in top-level module
#3 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `testing_stuff`
```