Closed rickardnorlander closed 2 years ago
Changing Self{field} to MyStruct{field} makes it build btw.
I haven't done a search for the exact commit, but on the playground this regressed between beta and nightly.
@rustbot label +regression-from-stable-to-nightly
This is due to the NLL stabilization PR #95565, since it manifests with #![feature(nll)]
on 1.61 (with env BOOTSTRAP_RUSTC=1
to allow feature flags). I'll be looking at it in a few hours when I get home!
Code
Meta
Error output
Backtrace
``` stack backtrace: 0: rust_begin_unwind at /rustc/b31f9cc22bcd720b37ddf927afe378108a5b9a54/library/std/src/panicking.rs:584:5 1: core::panicking::panic_fmt at /rustc/b31f9cc22bcd720b37ddf927afe378108a5b9a54/library/core/src/panicking.rs:142:14 2: core::panicking::panic at /rustc/b31f9cc22bcd720b37ddf927afe378108a5b9a54/library/core/src/panicking.rs:48:5 3:::report_general_error
4: rustc_borrowck::do_mir_borrowck
5: rustc_borrowck::mir_borrowck
6: >::call_once
7: >::with_task::
8: rustc_query_system::query::plumbing::try_execute_query::>
9: ::mir_borrowck
10: ::par_body_owners::
11: ::time::<(), rustc_interface::passes::analysis::{closure#2}>
12: rustc_interface::passes::analysis
13: >::with_task::>
14: rustc_query_system::query::plumbing::try_execute_query::>>
15: rustc_query_system::query::plumbing::get_query::
16: ::enter::>
17: ::enter::, rustc_errors::ErrorGuaranteed>>
18: rustc_span::with_source_map::, rustc_interface::interface::create_compiler_and_run, rustc_driver::run_compiler::{closure#1}>::{closure#1}>
19: >::set::, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
```