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

Rollup of 9 pull requests #101315

Closed
wants to merge 28 commits into from
Closed

Conversation

Dylan-DPC
Copy link
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

aliemjay and others added 28 commits July 27, 2022 23:21
`normalize_and_add_constraints` doesn't add entries in `universe_causes`
when creating new universes, causing an ICE. Remove it!

Add spans to track normalization constraints.

Fix couple places where `universe_causes` is not updated correctly to
track newly added universes.
There are times where computing a value may be cheap, or where
computing a reference may be expensive, so this fills out the
possibilities.
…ref_of}`

While the `provide_*` methods already short-circuit when a value has
been provided, there are times where an expensive computation is
needed to determine if the `provide_*` method can even be called.
Before, the MIR validator used RevealAll in its ParamEnv for type
checking. This could cause false negatives in some cases due to
RevealAll ParamEnvs not always use all predicates as expected here.

Since some MIR passes like inlining use RevealAll as well, keep using
it in the MIR validator too, but when it fails usign RevealAll, also
try the check without it, to stop false negatives.
Before, it called `normalize_erasing_regions` twice since
`equal_up_to_regions` called it as well for both types.
revealed by tests, manually add a panic to test for dead code
…ossible...

- ... when creating diagnostics in rustc_metadata
-  use the error_code! macro
- pass macro output to diag.code()
- use fluent from within manual implementation of SessionDiagnostic
- emit the untested errors in case they occur in the wild
- stop panicking in the probably-not-dead code, add fixme to write test
This avoid unnecessarily getting the full reparse data when all we need is the tag.
This rule was added (actually, it was called `#main > .since` back then) with
cdca084 and you can see an example of the
bug it's intended to fix in <https://doc.rust-lang.org/1.9.0/std/fmt/fn.write.html>
by looking at the `1.0.0` version marker.

However, a5a2f2b changed it so that
`<span class="since">` is always placed in an out-of-band wrapper, so it's
never nested directly below `#main` / `#main-content` any more.
This commit removes many cases of MIR opt tests emitting `.diff`s for more than one pass. These
tests cannot be `unit-test`s, and so they are easy to break, and they also provide little value due
to having excessively strong opinions over *how* a piece of code should be optimized.

Where reasonable, we instead add separate test files that only emit the `PreCodegen.after` MIR for
code where we want to track what the result of the net result of the optimization pipeline's output
is.
Add additional methods to the Demand type

This adds on to the original tracking issue rust-lang#96024

r? ```@yaahc```
…stebank

don't ICE when normalizing closure input tys

We were ICEing while rendering diagnostics because `universe_causes` is expected to track every universe created in the typeck's infcx.

`normalize_and_add_constraints` doesn't update `universe_causes`
when creating new universes, causing an ICE. Remove it!

Add spans to better track normalization constraints.

Fix couple places where `universe_causes` is not updated correctly to
track newly added universes.

Fixes rust-lang#99665
… r=oli-obk

Try normalizing types without RevealAll in ParamEnv in MIR validation

Before, the MIR validator used RevealAll in its ParamEnv for type
checking. This could cause false negatives in some cases due to
RevealAll ParamEnvs not always use all predicates as expected here.

Since some MIR passes like inlining use RevealAll as well, keep using
it in the MIR validator too, but when it fails usign RevealAll, also
try the check without it, to stop false negatives.

Fixes rust-lang#99866

cc ```@compiler-errors``` who nicely helped me on zulip
…imulacrum

Change implementation of `-Z gcc-ld` and `lld-wrapper` again

This PR partially reverts rust-lang#97375 and uses the strategy described in rust-lang#97402 (comment) instead, thus fixes rust-lang#97755.
…iser

Simplify MIR opt tests

This commit removes many cases of MIR opt tests emitting `.diff`s for more than one pass. These tests cannot be `unit-test`s, and so they are easy to break, and they also provide little value due to having excessively strong opinions over *how* a piece of code should be optimized.

Where reasonable, we instead add separate test files that only emit the `PreCodegen.after` MIR for code where we want to track what the end to end effect of the optimization pipeline on the example code is.

r? ```@wesleywiser```
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
… r=notriddle

Generate error index with mdbook instead of raw HTML pages

This is a follow-up of rust-lang#100922.

This comes from a remark from ``@estebank`` who said that the search was a nice thing on the previous version and that it wasn't possible anymore. An easy way to come around this limitation was to use `mdbook`, which is what I did here.

Now some explanations on the code. I'll explain how I developed this and why I reached this solution. First I did it very basically by simply setting the source directory and the output directory, generated a `SUMMARY.md` manually which listed all error codes and that was it. Two problems arose from this:
 1. A lot of new HTML files were generated at the top level
 2. An `index.html` file was generated at the top-level (the summary in short).

So for `1.`, it's not great to have too many files at the top-level as it could create file conflicts more easily. And for `2.`, this is actually a huge issue because <doc.rust-lang.org> generates an `index.html` file with a links to a few different resources, so it should never be overwritten. <s>Unfortunately, `mdbook` **always** generates an `index.html` file so the only solution I could see (except for sending them a contribution, I'll maybe do that later) was to temporaly move a potentially existing `index.html` file and then puts it back once done. For this last part, to ensure that we don't return *before* it has been put back, I wrapped the `mdbook` generation code inside `render_html_inner` which is called from `render_html` which in turn handle the "save" of `index.html`.</s>

EDIT: `mdbook` completely deletes ALL the content in the target directory so I instead generate into a sub directory and then I move the files to the real target directory.

To keep compatibility with the old version, I also put the `<script>` ``@notriddle`` nicely provided in the previous PR only into the `error-index.html` file to prevent unneeded repetition. I didn't use `mdbook` `additional-js` option because the JS is included at the end of all HTML files, which we don't want for two reasons:
 1. It's slow.
 2. We only want it to be run in `error-index.html` (even if we also ensure in the JS itself too!).

<s>Now the last part: why we generate the summary twice. We actually generate it once to tell `mdbook` what the book will look like and a second time because a create a new chapter content which will actually list all the error codes (with the updated paths).</s>

EDIT: I removed the need for two summaries.

You can test it [here](https://rustdoc.crud.net/imperio/error-index-mdbook/error-index.html).

r? ``@notriddle``
Use `FILE_ATTRIBUTE_TAG_INFO` to get reparse tag

I've been looking at this code recently and it just occurred to me we don't actually use the full reparse data at this point, only the tag. [`GetFileInformationByHandleEx`](https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getfileinformationbyhandleex) can do exactly that by filling a [`FILE_ATTRIBUTE_TAG_INFO`](https://docs.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-file_attribute_tag_info) struct.

r? ``@thomcc`` since you've made changes here recently (which is why I have this code on my mind atm)
…ince, r=GuillaumeGomez

rustdoc: remove unused CSS `#main-content > .since`

This rule was added (actually, it was called `#main > .since` back then) with cdca084 and you can see an example of the bug it's intended to fix in <https://doc.rust-lang.org/1.9.0/std/fmt/fn.write.html> by looking at the `1.0.0` version marker.

However, a5a2f2b changed it so that `<span class="since">` is always placed in an out-of-band wrapper, so it's never nested directly below `#main` / `#main-content` any more.
@rustbot rustbot added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic labels Sep 2, 2022
@rustbot rustbot added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Sep 2, 2022
@Dylan-DPC
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Contributor

bors commented Sep 2, 2022

📌 Commit 3b44a86 has been approved by Dylan-DPC

It is now in the queue for this repository.

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Sep 2, 2022
@GuillaumeGomez
Copy link
Member

Closing as it failed CI.

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-llvm-13 failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
  python3-oauthlib python3-pyparsing python3-secretstorage python3-six
  python3-software-properties python3-wadllib python3-zipp systemd
  systemd-sysv systemd-timesyncd unattended-upgrades
Suggested packages:
  default-dbus-session-bus | dbus-session-bus dbus-user-session
  pinentry-gnome3 tor parcimonie xloadimage scdaemon isoquery
  gstreamer1.0-tools iw | wireless-tools appstream pinentry-doc
  python3-apt-dbg python-apt-doc python-blinker-doc python-cryptography-doc
  python3-cryptography-vectors python-dbus-doc python3-crypto gir1.2-secret-1
  gnome-keyring libkf5wallet-bin python3-keyrings.alt python3-testresources
  python-pyparsing-doc python-secretstorage-doc systemd-container libfido2-1
  libtss2-esys-3.0.2-0 libtss2-mu0 libtss2-rc0 bsd-mailx default-mta
  | mail-transport-agent needrestart powermgmt-base
  apt-transport-https dbus dirmngr distro-info-data dmsetup gir1.2-glib-2.0
  gir1.2-packagekitglib-1.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent
  gpg-wks-client gpg-wks-server gpgconf gpgsm iso-codes libapparmor1
  libappstream4 libargon2-1 libassuan0 libcap2-bin libcryptsetup12 libdbus-1-3
---
Successfully built 1b5ba0b23e2c
Successfully tagged rust-ci:latest
Built container sha256:1b5ba0b23e2c7b7fb2d34c8ae279489f8061139e7da3f35b5e5b94d2016cfb82
Uploading finished image to https://ci-caches.rust-lang.org/docker/c5b89d39ad489cccff774ea7e5f2ba4bac05c17cec4e3fc9bc723a692a9f276f24875116b84f5c924781dbf77a3fb5eb823154191e0d213687b94a5b21600b78
upload failed: - to s3://rust-lang-ci-sccache2/docker/c5b89d39ad489cccff774ea7e5f2ba4bac05c17cec4e3fc9bc723a692a9f276f24875116b84f5c924781dbf77a3fb5eb823154191e0d213687b94a5b21600b78 Unable to locate credentials
[CI_JOB_NAME=x86_64-gnu-llvm-13]
---
.......................................................iii.............................. 13376/13450
..........................................................................
failures:

---- [ui] src/test/ui/nll/closure-malformed-projection-input-issue-99665.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/nll/closure-malformed-projection-input-issue-99665.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/closure-malformed-projection-input-issue-99665" "-A" "unused" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/closure-malformed-projection-input-issue-99665/auxiliary"
stdout: none
--- stderr -------------------------------
error: internal compiler error: compiler/rustc_borrowck/src/universal_regions.rs:809:36: cannot convert `RePlaceholder(Placeholder { universe: U1, name: BrNamed(DefId(0:26 ~ closure_malformed_projection_input_issue_99665[9dd7]::fail::'_), '_) })` to a region vid
thread 'rustc' panicked at 'Box<dyn Any>', /checkout/compiler/rustc_errors/src/lib.rs:1465:9
stack backtrace:
stack backtrace:
   0:     0x7f52723cf12c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbcfcef02ebd4ef5f
   1:     0x7f5272437c68 - core::fmt::write::heb777e1f8e8d5428
   2:     0x7f52723bf9a1 - std::io::Write::write_fmt::h581f1449f8b0a279
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
   3:     0x7f52723d211e - std::panicking::default_hook::{{closure}}::h1c499c0cbaac4018
   4:     0x7f52723d1de7 - std::panicking::default_hook::h2fc073321f2cb032
   5:     0x7f5272d85724 - rustc_driver[afe8487019944c47]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f52723d28d1 - std::panicking::rust_panic_with_hook::hb6cede1d780318d4
   7:     0x7f5275862b33 - std[6bfb6720db0ddf9e]::panicking::begin_panic::<rustc_errors[4884e65d37508f9c]::ExplicitBug>::{closure#0}
   8:     0x7f5275861d86 - std[6bfb6720db0ddf9e]::sys_common::backtrace::__rust_end_short_backtrace::<std[6bfb6720db0ddf9e]::panicking::begin_panic<rustc_errors[4884e65d37508f9c]::ExplicitBug>::{closure#0}, !>
   9:     0x7f5272d1d656 - std[6bfb6720db0ddf9e]::panicking::begin_panic::<rustc_errors[4884e65d37508f9c]::ExplicitBug>
  10:     0x7f527585ddc6 - std[6bfb6720db0ddf9e]::panic::panic_any::<rustc_errors[4884e65d37508f9c]::ExplicitBug>
  11:     0x7f527585c1f6 - <rustc_errors[4884e65d37508f9c]::HandlerInner>::bug::<&alloc[11de014b21c49521]::string::String>
  12:     0x7f527585bcc0 - <rustc_errors[4884e65d37508f9c]::Handler>::bug::<&alloc[11de014b21c49521]::string::String>
  13:     0x7f5275978b5e - rustc_middle[f5877c76cb27ddbd]::ty::context::tls::with_context_opt::<rustc_middle[f5877c76cb27ddbd]::ty::context::tls::with_opt<rustc_middle[f5877c76cb27ddbd]::util::bug::opt_span_bug_fmt<rustc_span[efe392017a826f2c]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
  14:     0x7f52759798d9 - rustc_middle[f5877c76cb27ddbd]::util::bug::opt_span_bug_fmt::<rustc_span[efe392017a826f2c]::span_encoding::Span>
  15:     0x7f5272d2c698 - rustc_middle[f5877c76cb27ddbd]::util::bug::bug_fmt
  16:     0x7f5273eda86f - <rustc_borrowck[75b5bf5e0778e576]::universal_regions::UniversalRegionIndices>::to_region_vid
  17:     0x7f5273edc692 - <rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::UniversalRegionRelationsBuilder>::add_implied_bounds
  18:     0x7f5273ec76c4 - <&mut <rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::UniversalRegionRelationsBuilder>::create::{closure#0} as core[f125530c738b2a6b]::ops::function::FnOnce<(rustc_middle[f5877c76cb27ddbd]::ty::Ty,)>>::call_once
  19:     0x7f5273faff62 - <core[f125530c738b2a6b]::iter::adapters::flatten::FlatMap<core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::iter::adapters::cloned::Cloned<core[f125530c738b2a6b]::slice::iter::Iter<rustc_middle[f5877c76cb27ddbd]::ty::Ty>>, core[f125530c738b2a6b]::option::IntoIter<rustc_middle[f5877c76cb27ddbd]::ty::Ty>>, core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>, core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>>, core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>>, <rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::UniversalRegionRelationsBuilder>::create::{closure#0}> as core[f125530c738b2a6b]::iter::traits::iterator::Iterator>::next
  20:     0x7f5273faa6f2 - <alloc[11de014b21c49521]::vec::Vec<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints> as alloc[11de014b21c49521]::vec::spec_from_iter::SpecFromIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints, core[f125530c738b2a6b]::iter::adapters::flatten::FlatMap<core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::iter::adapters::cloned::Cloned<core[f125530c738b2a6b]::slice::iter::Iter<rustc_middle[f5877c76cb27ddbd]::ty::Ty>>, core[f125530c738b2a6b]::option::IntoIter<rustc_middle[f5877c76cb27ddbd]::ty::Ty>>, core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>, core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>>, core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>>, <rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::UniversalRegionRelationsBuilder>::create::{closure#0}>>>::from_iter
  21:     0x7f5273ed3d77 - rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::create
  22:     0x7f5273fd5994 - rustc_borrowck[75b5bf5e0778e576]::type_check::type_check
  23:     0x7f5273e77be8 - rustc_borrowck[75b5bf5e0778e576]::nll::compute_regions
  24:     0x7f527403a6b7 - rustc_borrowck[75b5bf5e0778e576]::do_mir_borrowck
  25:     0x7f5273e0829f - <rustc_infer[129bb8f47bdeed8c]::infer::InferCtxtBuilder>::enter::<rustc_middle[f5877c76cb27ddbd]::mir::query::BorrowCheckResult, rustc_borrowck[75b5bf5e0778e576]::mir_borrowck::{closure#0}>
  26:     0x7f527402bc77 - rustc_borrowck[75b5bf5e0778e576]::mir_borrowck
  27:     0x7f5273ffb26e - <rustc_borrowck[75b5bf5e0778e576]::provide::{closure#0} as core[f125530c738b2a6b]::ops::function::FnOnce<(rustc_middle[f5877c76cb27ddbd]::ty::context::TyCtxt, rustc_span[efe392017a826f2c]::def_id::LocalDefId)>>::call_once
  28:     0x7f52748fd2a4 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::try_execute_query::<rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt, rustc_query_system[9a871e1179eccdb3]::query::caches::DefaultCache<rustc_span[efe392017a826f2c]::def_id::LocalDefId, &rustc_middle[f5877c76cb27ddbd]::mir::query::BorrowCheckResult>>
  29:     0x7f52749cd3d3 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::get_query::<rustc_query_impl[97fd2279b5932006]::queries::mir_borrowck, rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt>
  30:     0x7f52748467f0 - <rustc_query_impl[97fd2279b5932006]::Queries as rustc_middle[f5877c76cb27ddbd]::ty::query::QueryEngine>::mir_borrowck
  31:     0x7f5273fdfa04 - <rustc_borrowck[75b5bf5e0778e576]::type_check::TypeChecker>::prove_closure_bounds
  32:     0x7f5273fed183 - <rustc_borrowck[75b5bf5e0778e576]::type_check::TypeChecker>::check_rvalue
  33:     0x7f5273ff2941 - <rustc_borrowck[75b5bf5e0778e576]::type_check::TypeChecker>::typeck_mir
  34:     0x7f5273fd6a8f - rustc_borrowck[75b5bf5e0778e576]::type_check::type_check
  35:     0x7f5273e77be8 - rustc_borrowck[75b5bf5e0778e576]::nll::compute_regions
  36:     0x7f527403a6b7 - rustc_borrowck[75b5bf5e0778e576]::do_mir_borrowck
  37:     0x7f5273e0829f - <rustc_infer[129bb8f47bdeed8c]::infer::InferCtxtBuilder>::enter::<rustc_middle[f5877c76cb27ddbd]::mir::query::BorrowCheckResult, rustc_borrowck[75b5bf5e0778e576]::mir_borrowck::{closure#0}>
  38:     0x7f527402bc77 - rustc_borrowck[75b5bf5e0778e576]::mir_borrowck
  39:     0x7f5273ffb26e - <rustc_borrowck[75b5bf5e0778e576]::provide::{closure#0} as core[f125530c738b2a6b]::ops::function::FnOnce<(rustc_middle[f5877c76cb27ddbd]::ty::context::TyCtxt, rustc_span[efe392017a826f2c]::def_id::LocalDefId)>>::call_once
  40:     0x7f52748fd2a4 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::try_execute_query::<rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt, rustc_query_system[9a871e1179eccdb3]::query::caches::DefaultCache<rustc_span[efe392017a826f2c]::def_id::LocalDefId, &rustc_middle[f5877c76cb27ddbd]::mir::query::BorrowCheckResult>>
  41:     0x7f52749cd3d3 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::get_query::<rustc_query_impl[97fd2279b5932006]::queries::mir_borrowck, rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt>
  42:     0x7f52748467f0 - <rustc_query_impl[97fd2279b5932006]::Queries as rustc_middle[f5877c76cb27ddbd]::ty::query::QueryEngine>::mir_borrowck
  43:     0x7f5272f2fe76 - <core[f125530c738b2a6b]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[e1dfaf379a0b60fe]::sync::par_for_each_in<&[rustc_span[efe392017a826f2c]::def_id::LocalDefId], <rustc_middle[f5877c76cb27ddbd]::hir::map::Map>::par_body_owners<rustc_interface[fc4d63bdd67dffa1]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[f125530c738b2a6b]::ops::function::FnOnce<()>>::call_once
  44:     0x7f5272ea2a09 - std[6bfb6720db0ddf9e]::panicking::try::<(), core[f125530c738b2a6b]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[e1dfaf379a0b60fe]::sync::par_for_each_in<&[rustc_span[efe392017a826f2c]::def_id::LocalDefId], <rustc_middle[f5877c76cb27ddbd]::hir::map::Map>::par_body_owners<rustc_interface[fc4d63bdd67dffa1]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  45:     0x7f5272e855ad - rustc_data_structures[e1dfaf379a0b60fe]::sync::par_for_each_in::<&[rustc_span[efe392017a826f2c]::def_id::LocalDefId], <rustc_middle[f5877c76cb27ddbd]::hir::map::Map>::par_body_owners<rustc_interface[fc4d63bdd67dffa1]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>
  46:     0x7f5272f17115 - <rustc_session[bfe4a924967f2530]::session::Session>::time::<(), rustc_interface[fc4d63bdd67dffa1]::passes::analysis::{closure#2}>
  47:     0x7f5272ede7bb - rustc_interface[fc4d63bdd67dffa1]::passes::analysis
  48:     0x7f527493e504 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::try_execute_query::<rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt, rustc_query_system[9a871e1179eccdb3]::query::caches::DefaultCache<(), core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>>
  49:     0x7f5274a1f514 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::get_query::<rustc_query_impl[97fd2279b5932006]::queries::analysis, rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt>
  50:     0x7f527481c1fa - <rustc_query_impl[97fd2279b5932006]::Queries as rustc_middle[f5877c76cb27ddbd]::ty::query::QueryEngine>::analysis
  51:     0x7f5272de47a6 - <rustc_interface[fc4d63bdd67dffa1]::passes::QueryContext>::enter::<rustc_driver[afe8487019944c47]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  52:     0x7f5272d8db1c - <rustc_interface[fc4d63bdd67dffa1]::interface::Compiler>::enter::<rustc_driver[afe8487019944c47]::run_compiler::{closure#1}::{closure#2}, core[f125530c738b2a6b]::result::Result<core[f125530c738b2a6b]::option::Option<rustc_interface[fc4d63bdd67dffa1]::queries::Linker>, rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  53:     0x7f5272d743e1 - rustc_span[efe392017a826f2c]::with_source_map::<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_interface[fc4d63bdd67dffa1]::interface::create_compiler_and_run<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#1}>
  54:     0x7f5272da9381 - rustc_interface[fc4d63bdd67dffa1]::interface::create_compiler_and_run::<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>
  55:     0x7f5272d706f2 - <scoped_tls[a00437b9557953e4]::ScopedKey<rustc_span[efe392017a826f2c]::SessionGlobals>>::set::<rustc_interface[fc4d63bdd67dffa1]::interface::run_compiler<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  56:     0x7f5272de7bdf - std[6bfb6720db0ddf9e]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[fc4d63bdd67dffa1]::util::run_in_thread_pool_with_globals<rustc_interface[fc4d63bdd67dffa1]::interface::run_compiler<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  57:     0x7f5272d7548e - std[6bfb6720db0ddf9e]::panic::catch_unwind::<core[f125530c738b2a6b]::panic::unwind_safe::AssertUnwindSafe<<std[6bfb6720db0ddf9e]::thread::Builder>::spawn_unchecked_<rustc_interface[fc4d63bdd67dffa1]::util::run_in_thread_pool_with_globals<rustc_interface[fc4d63bdd67dffa1]::interface::run_compiler<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  58:     0x7f5272dea420 - <<std[6bfb6720db0ddf9e]::thread::Builder>::spawn_unchecked_<rustc_interface[fc4d63bdd67dffa1]::util::run_in_thread_pool_with_globals<rustc_interface[fc4d63bdd67dffa1]::interface::run_compiler<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#1} as core[f125530c738b2a6b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  59:     0x7f52723df645 - std::sys::unix::thread::Thread::new::thread_start::h0584c11e97c1742b
  60:     0x7f527217bb43 - <unknown>
  61:     0x7f527220da00 - <unknown>
  62:                0x0 - <unknown>
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 (c2ffbba64 2022-09-02) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `fail::{closure#0}`
#1 [mir_borrowck] borrow-checking `fail`
#2 [analysis] running analysis passes on this crate
end of query stack
error: internal compiler error: compiler/rustc_borrowck/src/universal_regions.rs:809:36: cannot convert `RePlaceholder(Placeholder { universe: U1, name: BrNamed(DefId(0:27 ~ closure_malformed_projection_input_issue_99665[9dd7]::fail::'_#1), '_) })` to a region vid
thread 'rustc' panicked at 'Box<dyn Any>', /checkout/compiler/rustc_errors/src/lib.rs:1465:9
stack backtrace:
stack backtrace:
   0:     0x7f52723cf12c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbcfcef02ebd4ef5f
   1:     0x7f5272437c68 - core::fmt::write::heb777e1f8e8d5428
   2:     0x7f52723bf9a1 - std::io::Write::write_fmt::h581f1449f8b0a279
   3:     0x7f52723d211e - std::panicking::default_hook::{{closure}}::h1c499c0cbaac4018
   4:     0x7f52723d1de7 - std::panicking::default_hook::h2fc073321f2cb032
   5:     0x7f5272d85724 - rustc_driver[afe8487019944c47]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:     0x7f52723d28d1 - std::panicking::rust_panic_with_hook::hb6cede1d780318d4
   7:     0x7f5275862b33 - std[6bfb6720db0ddf9e]::panicking::begin_panic::<rustc_errors[4884e65d37508f9c]::ExplicitBug>::{closure#0}
   8:     0x7f5275861d86 - std[6bfb6720db0ddf9e]::sys_common::backtrace::__rust_end_short_backtrace::<std[6bfb6720db0ddf9e]::panicking::begin_panic<rustc_errors[4884e65d37508f9c]::ExplicitBug>::{closure#0}, !>
   9:     0x7f5272d1d656 - std[6bfb6720db0ddf9e]::panicking::begin_panic::<rustc_errors[4884e65d37508f9c]::ExplicitBug>
  10:     0x7f527585ddc6 - std[6bfb6720db0ddf9e]::panic::panic_any::<rustc_errors[4884e65d37508f9c]::ExplicitBug>
  11:     0x7f527585c1f6 - <rustc_errors[4884e65d37508f9c]::HandlerInner>::bug::<&alloc[11de014b21c49521]::string::String>
  12:     0x7f527585bcc0 - <rustc_errors[4884e65d37508f9c]::Handler>::bug::<&alloc[11de014b21c49521]::string::String>
  13:     0x7f5275978b5e - rustc_middle[f5877c76cb27ddbd]::ty::context::tls::with_context_opt::<rustc_middle[f5877c76cb27ddbd]::ty::context::tls::with_opt<rustc_middle[f5877c76cb27ddbd]::util::bug::opt_span_bug_fmt<rustc_span[efe392017a826f2c]::span_encoding::Span>::{closure#0}, ()>::{closure#0}, ()>
  14:     0x7f52759798d9 - rustc_middle[f5877c76cb27ddbd]::util::bug::opt_span_bug_fmt::<rustc_span[efe392017a826f2c]::span_encoding::Span>
  15:     0x7f5272d2c698 - rustc_middle[f5877c76cb27ddbd]::util::bug::bug_fmt
  16:     0x7f5273eda86f - <rustc_borrowck[75b5bf5e0778e576]::universal_regions::UniversalRegionIndices>::to_region_vid
  17:     0x7f5273edc692 - <rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::UniversalRegionRelationsBuilder>::add_implied_bounds
  18:     0x7f5273ec76c4 - <&mut <rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::UniversalRegionRelationsBuilder>::create::{closure#0} as core[f125530c738b2a6b]::ops::function::FnOnce<(rustc_middle[f5877c76cb27ddbd]::ty::Ty,)>>::call_once
  19:     0x7f5273faff62 - <core[f125530c738b2a6b]::iter::adapters::flatten::FlatMap<core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::iter::adapters::cloned::Cloned<core[f125530c738b2a6b]::slice::iter::Iter<rustc_middle[f5877c76cb27ddbd]::ty::Ty>>, core[f125530c738b2a6b]::option::IntoIter<rustc_middle[f5877c76cb27ddbd]::ty::Ty>>, core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>, core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>>, core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>>, <rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::UniversalRegionRelationsBuilder>::create::{closure#0}> as core[f125530c738b2a6b]::iter::traits::iterator::Iterator>::next
  20:     0x7f5273faa6f2 - <alloc[11de014b21c49521]::vec::Vec<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints> as alloc[11de014b21c49521]::vec::spec_from_iter::SpecFromIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints, core[f125530c738b2a6b]::iter::adapters::flatten::FlatMap<core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::iter::adapters::cloned::Cloned<core[f125530c738b2a6b]::slice::iter::Iter<rustc_middle[f5877c76cb27ddbd]::ty::Ty>>, core[f125530c738b2a6b]::option::IntoIter<rustc_middle[f5877c76cb27ddbd]::ty::Ty>>, core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::iter::adapters::chain::Chain<core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>, core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>>, core[f125530c738b2a6b]::option::IntoIter<&rustc_middle[f5877c76cb27ddbd]::infer::canonical::QueryRegionConstraints>>, <rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::UniversalRegionRelationsBuilder>::create::{closure#0}>>>::from_iter
  21:     0x7f5273ed3d77 - rustc_borrowck[75b5bf5e0778e576]::type_check::free_region_relations::create
  22:     0x7f5273fd5994 - rustc_borrowck[75b5bf5e0778e576]::type_check::type_check
  23:     0x7f5273e77be8 - rustc_borrowck[75b5bf5e0778e576]::nll::compute_regions
  24:     0x7f527403a6b7 - rustc_borrowck[75b5bf5e0778e576]::do_mir_borrowck
  25:     0x7f5273e0829f - <rustc_infer[129bb8f47bdeed8c]::infer::InferCtxtBuilder>::enter::<rustc_middle[f5877c76cb27ddbd]::mir::query::BorrowCheckResult, rustc_borrowck[75b5bf5e0778e576]::mir_borrowck::{closure#0}>
  26:     0x7f527402bc77 - rustc_borrowck[75b5bf5e0778e576]::mir_borrowck
  27:     0x7f5273ffb26e - <rustc_borrowck[75b5bf5e0778e576]::provide::{closure#0} as core[f125530c738b2a6b]::ops::function::FnOnce<(rustc_middle[f5877c76cb27ddbd]::ty::context::TyCtxt, rustc_span[efe392017a826f2c]::def_id::LocalDefId)>>::call_once
  28:     0x7f52748fd2a4 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::try_execute_query::<rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt, rustc_query_system[9a871e1179eccdb3]::query::caches::DefaultCache<rustc_span[efe392017a826f2c]::def_id::LocalDefId, &rustc_middle[f5877c76cb27ddbd]::mir::query::BorrowCheckResult>>
  29:     0x7f52749cd3d3 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::get_query::<rustc_query_impl[97fd2279b5932006]::queries::mir_borrowck, rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt>
  30:     0x7f52748467f0 - <rustc_query_impl[97fd2279b5932006]::Queries as rustc_middle[f5877c76cb27ddbd]::ty::query::QueryEngine>::mir_borrowck
  31:     0x7f5272f2fe76 - <core[f125530c738b2a6b]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[e1dfaf379a0b60fe]::sync::par_for_each_in<&[rustc_span[efe392017a826f2c]::def_id::LocalDefId], <rustc_middle[f5877c76cb27ddbd]::hir::map::Map>::par_body_owners<rustc_interface[fc4d63bdd67dffa1]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}> as core[f125530c738b2a6b]::ops::function::FnOnce<()>>::call_once
  32:     0x7f5272ea2a09 - std[6bfb6720db0ddf9e]::panicking::try::<(), core[f125530c738b2a6b]::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures[e1dfaf379a0b60fe]::sync::par_for_each_in<&[rustc_span[efe392017a826f2c]::def_id::LocalDefId], <rustc_middle[f5877c76cb27ddbd]::hir::map::Map>::par_body_owners<rustc_interface[fc4d63bdd67dffa1]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>::{closure#0}::{closure#0}>>
  33:     0x7f5272e855ad - rustc_data_structures[e1dfaf379a0b60fe]::sync::par_for_each_in::<&[rustc_span[efe392017a826f2c]::def_id::LocalDefId], <rustc_middle[f5877c76cb27ddbd]::hir::map::Map>::par_body_owners<rustc_interface[fc4d63bdd67dffa1]::passes::analysis::{closure#2}::{closure#0}>::{closure#0}>
  34:     0x7f5272f17115 - <rustc_session[bfe4a924967f2530]::session::Session>::time::<(), rustc_interface[fc4d63bdd67dffa1]::passes::analysis::{closure#2}>
  35:     0x7f5272ede7bb - rustc_interface[fc4d63bdd67dffa1]::passes::analysis
  36:     0x7f527493e504 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::try_execute_query::<rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt, rustc_query_system[9a871e1179eccdb3]::query::caches::DefaultCache<(), core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>>
  37:     0x7f5274a1f514 - rustc_query_system[9a871e1179eccdb3]::query::plumbing::get_query::<rustc_query_impl[97fd2279b5932006]::queries::analysis, rustc_query_impl[97fd2279b5932006]::plumbing::QueryCtxt>
  38:     0x7f527481c1fa - <rustc_query_impl[97fd2279b5932006]::Queries as rustc_middle[f5877c76cb27ddbd]::ty::query::QueryEngine>::analysis
  39:     0x7f5272de47a6 - <rustc_interface[fc4d63bdd67dffa1]::passes::QueryContext>::enter::<rustc_driver[afe8487019944c47]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  40:     0x7f5272d8db1c - <rustc_interface[fc4d63bdd67dffa1]::interface::Compiler>::enter::<rustc_driver[afe8487019944c47]::run_compiler::{closure#1}::{closure#2}, core[f125530c738b2a6b]::result::Result<core[f125530c738b2a6b]::option::Option<rustc_interface[fc4d63bdd67dffa1]::queries::Linker>, rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  41:     0x7f5272d743e1 - rustc_span[efe392017a826f2c]::with_source_map::<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_interface[fc4d63bdd67dffa1]::interface::create_compiler_and_run<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#1}>
  42:     0x7f5272da9381 - rustc_interface[fc4d63bdd67dffa1]::interface::create_compiler_and_run::<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>
  43:     0x7f5272d706f2 - <scoped_tls[a00437b9557953e4]::ScopedKey<rustc_span[efe392017a826f2c]::SessionGlobals>>::set::<rustc_interface[fc4d63bdd67dffa1]::interface::run_compiler<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  44:     0x7f5272de7bdf - std[6bfb6720db0ddf9e]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[fc4d63bdd67dffa1]::util::run_in_thread_pool_with_globals<rustc_interface[fc4d63bdd67dffa1]::interface::run_compiler<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  45:     0x7f5272d7548e - std[6bfb6720db0ddf9e]::panic::catch_unwind::<core[f125530c738b2a6b]::panic::unwind_safe::AssertUnwindSafe<<std[6bfb6720db0ddf9e]::thread::Builder>::spawn_unchecked_<rustc_interface[fc4d63bdd67dffa1]::util::run_in_thread_pool_with_globals<rustc_interface[fc4d63bdd67dffa1]::interface::run_compiler<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>
  46:     0x7f5272dea420 - <<std[6bfb6720db0ddf9e]::thread::Builder>::spawn_unchecked_<rustc_interface[fc4d63bdd67dffa1]::util::run_in_thread_pool_with_globals<rustc_interface[fc4d63bdd67dffa1]::interface::run_compiler<core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>, rustc_driver[afe8487019944c47]::run_compiler::{closure#1}>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#0}, core[f125530c738b2a6b]::result::Result<(), rustc_errors[4884e65d37508f9c]::ErrorGuaranteed>>::{closure#1} as core[f125530c738b2a6b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  47:     0x7f52723df645 - std::sys::unix::thread::Thread::new::thread_start::h0584c11e97c1742b
  48:     0x7f527217bb43 - <unknown>
  49:     0x7f527220da00 - <unknown>
  50:                0x0 - <unknown>
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 (c2ffbba64 2022-09-02) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [mir_borrowck] borrow-checking `fail::{closure#1}`
#1 [analysis] running analysis passes on this crate
error: aborting due to 2 previous errors
------------------------------------------


@davidtwco davidtwco removed the A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.