rust icon indicating copy to clipboard operation
rust copied to clipboard

Fix type resolution of associated const equality bounds (take 2)

Open fmease opened this issue 1 year ago • 17 comments

Instead of trying to re-resolve the type of assoc const bindings inside the type_of query impl in an incomplete manner, transfer the already (correctly) resolved type from add_predicates_for_ast_type_binding to type_of/anon_type_of through query feeding.


Together with #118668 (merged) and #121258, this supersedes #118360. Fixes #118040.

r? @ghost

fmease avatar Dec 28 '23 17:12 fmease

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

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_4bdb2d11-7a99-4f26-8563-291a1a6ad8c0
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=assoc-const-eq-fixes-2
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_4bdb2d11-7a99-4f26-8563-291a1a6ad8c0
GITHUB_REF=refs/pull/119385/merge
GITHUB_REF_NAME=119385/merge
GITHUB_REF_PROTECTED=false
---
Built container sha256:9c3c93a371e5aed5c18185b24f130d95d5140dbd72a9b325e7b6b49e521a4faa
Looks like docker image is the same as before, not uploading
https://ci-caches.rust-lang.org/docker/7ebc15c01a233894034d277c8cce4e949f4e7791f66b4727c8fb6e058a0b8171d6152e1441d677cef0653843ceeee469c097b8699b2bb74249e674f6aa1a8813
sha256:9c3c93a371e5aed5c18185b24f130d95d5140dbd72a9b325e7b6b49e521a4faa
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-16]
##[group]Clock drift check
  local time: Thu Dec 28 17:56:33 UTC 2023
  network time: Thu, 28 Dec 2023 17:56:33 GMT
  network time: Thu, 28 Dec 2023 17:56:33 GMT
##[endgroup]
sccache: Starting the server...
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-16', '--enable-llvm-link-shared', '--set', 'rust.thin-lto-import-instr-limit=10', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--enable-missing-tools', '--enable-new-symbol-mangling']
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-16/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.thin-lto-import-instr-limit := 10
configure: rust.codegen-units-std := 1
---
........................................................................................  2376/16011
.......................................................................................i  2464/16011
........................................................................................  2552/16011
........................................................................................  2640/16011
.......................F...................................F............................  2728/16011
........................................................................................  2904/16011
........................................................................................  2992/16011
........................................................................................  3080/16011
..............i.........................................................................  3168/16011
---
failures:

---- [ui] tests/ui/associated-consts/assoc-const-eq-ambiguity.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/associated-consts/assoc-const-eq-ambiguity.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/assoc-const-eq-ambiguity" "-A" "unused" "-A" "internal_features" "-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/associated-consts/assoc-const-eq-ambiguity/auxiliary"
stdout: none
--- stderr -------------------------------
--- stderr -------------------------------
##[error]error: internal compiler error: compiler/rustc_middle/src/query/mod.rs:2211:1: `tcx.type_of_assoc_const_binding(HirId(DefId(0:7 ~ assoc_const_eq_ambiguity[5083]::take0).10))` is not supported for this key;
                                hint: Queries can be either made to the local crate, or the external crate. This error means you tried to use it for one that's not supported.
                                If that's not the case, type_of_assoc_const_binding was likely never assigned to a provider function.
thread 'rustc' panicked at /checkout/compiler/rustc_errors/src/lib.rs:1068:30:
Box<dyn Any>
stack backtrace:
stack backtrace:
   0:     0x7f70405a3889 - <std[42c637bcc36b3adc]::sys_common::backtrace::_print::DisplayBacktrace as core[3cdb0195637f8cef]::fmt::Display>::fmt
   1:     0x7f70405fe2ef - core[3cdb0195637f8cef]::fmt::write
   2:     0x7f7040598135 - <std[42c637bcc36b3adc]::sys::unix::stdio::Stderr as std[42c637bcc36b3adc]::io::Write>::write_fmt
   3:     0x7f70405a3665 - std[42c637bcc36b3adc]::sys_common::backtrace::print
   4:     0x7f70405a69ea - std[42c637bcc36b3adc]::panicking::default_hook::{closure#1}
   5:     0x7f70405a66ed - std[42c637bcc36b3adc]::panicking::default_hook
   5:     0x7f70405a66ed - std[42c637bcc36b3adc]::panicking::default_hook
   6:     0x7f7041276337 - <alloc[f79553009e5d7c90]::boxed::Box<rustc_driver_impl[dd25f5cdf3b88d33]::install_ice_hook::{closure#0}> as core[3cdb0195637f8cef]::ops::function::Fn<(&dyn for<'a, 'b> core[3cdb0195637f8cef]::ops::function::Fn<(&'a core[3cdb0195637f8cef]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[3cdb0195637f8cef]::marker::Sync + core[3cdb0195637f8cef]::marker::Send, &core[3cdb0195637f8cef]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f70405a70a4 - std[42c637bcc36b3adc]::panicking::rust_panic_with_hook
   8:     0x7f704436a976 - std[42c637bcc36b3adc]::panicking::begin_panic::<rustc_errors[937ad45f18b738b3]::ExplicitBug>::{closure#0}
   9:     0x7f70443696e6 - std[42c637bcc36b3adc]::sys_common::backtrace::__rust_end_short_backtrace::<std[42c637bcc36b3adc]::panicking::begin_panic<rustc_errors[937ad45f18b738b3]::ExplicitBug>::{closure#0}, !>
  10:     0x7f70411c8e86 - std[42c637bcc36b3adc]::panicking::begin_panic::<rustc_errors[937ad45f18b738b3]::ExplicitBug>
  11:     0x7f7044386221 - <rustc_errors[937ad45f18b738b3]::diagnostic_builder::BugAbort as rustc_errors[937ad45f18b738b3]::diagnostic_builder::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f704412b65d - <rustc_errors[937ad45f18b738b3]::DiagCtxt>::bug::<alloc[f79553009e5d7c90]::string::String>
  13:     0x7f7044042f15 - rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt::<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}
  14:     0x7f7044036e2a - rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_opt::<rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f7044036dd8 - rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_context_opt::<rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_opt<rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f7041166f62 - rustc_middle[e64d5e43c57d031f]::util::bug::bug_fmt
  17:     0x7f7044028822 - <<rustc_middle[e64d5e43c57d031f]::query::Providers as core[3cdb0195637f8cef]::default::Default>::default::{closure#17} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_hir[e4f6acc2bb406260]::hir_id::HirId)>>::call_once
  18:     0x7f7042d5399a - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  19:     0x7f7042e747c9 - <rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_hir[e4f6acc2bb406260]::hir_id::HirId)>>::call_once
  20:     0x7f70430f2512 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_hir[e4f6acc2bb406260]::hir_id::HirId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  21:     0x7f7042ef88c7 - rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::get_query_non_incr::__rust_end_short_backtrace
  22:     0x7f7041bab635 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::type_of::type_of
  23:     0x7f7042d578e7 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  24:     0x7f7042eb8929 - <rustc_query_impl[91ab7089996eb428]::query_impl::type_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  25:     0x7f70430eab1a - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  26:     0x7f7042f22337 - rustc_query_impl[91ab7089996eb428]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  27:     0x7f704409a47d - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>>
  28:     0x7f704409b0db - <rustc_middle[e64d5e43c57d031f]::ty::consts::Const>::from_anon_const
  29:     0x7f7041d65b26 - <dyn rustc_hir_analysis[1b29e1d8b28547c7]::astconv::AstConv>::instantiate_poly_trait_ref
  30:     0x7f7041d5cbf0 - <dyn rustc_hir_analysis[1b29e1d8b28547c7]::astconv::AstConv>::add_bounds::<core[3cdb0195637f8cef]::slice::iter::Iter<rustc_hir[e4f6acc2bb406260]::hir::GenericBound>>
  31:     0x7f7041cd5cd8 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::gather_explicit_predicates_of
  32:     0x7f7041cc6b73 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::explicit_predicates_of
  33:     0x7f7042d4ae31 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  34:     0x7f70430074e1 - <rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  35:     0x7f70430db74b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  36:     0x7f7042e58907 - rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::get_query_non_incr::__rust_end_short_backtrace
  37:     0x7f7041bd2095 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>>
  38:     0x7f7041bfc3c1 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_defined_on
  39:     0x7f7042d4984c - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  40:     0x7f70430071d1 - <rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  41:     0x7f70430db74b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  42:     0x7f7042e587e7 - rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::get_query_non_incr::__rust_end_short_backtrace
  43:     0x7f7041cbbe95 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>>
  44:     0x7f7041cc5420 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::predicates_of
  45:     0x7f7042d3750c - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  46:     0x7f7043000f41 - <rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  47:     0x7f70430db74b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  48:     0x7f7042e57f97 - rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::get_query_non_incr::__rust_end_short_backtrace
  49:     0x7f7041beb691 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::convert_item
  50:     0x7f7041be4092 - <rustc_hir_analysis[1b29e1d8b28547c7]::collect::CollectItemTypesVisitor as rustc_hir[e4f6acc2bb406260]::intravisit::Visitor>::visit_item
  51:     0x7f7041cb9080 - <rustc_middle[e64d5e43c57d031f]::hir::map::Map>::visit_item_likes_in_module::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::CollectItemTypesVisitor>
  52:     0x7f7041be373d - rustc_hir_analysis[1b29e1d8b28547c7]::collect::collect_mod_item_types
  53:     0x7f7042d4a425 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 0usize]>>
  54:     0x7f7042eb4035 - <rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::LocalModDefId)>>::call_once
  55:     0x7f70430ccb53 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::LocalModDefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  56:     0x7f7042e59137 - rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::get_query_non_incr::__rust_end_short_backtrace
  57:     0x7f7041cd2ace - rustc_hir_analysis[1b29e1d8b28547c7]::check_crate
  58:     0x7f70414a37b0 - rustc_interface[b189da69e65174ab]::passes::analysis
  59:     0x7f7042d57ad3 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 1usize]>>
  60:     0x7f7042e56841 - <rustc_query_impl[91ab7089996eb428]::query_impl::analysis::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, ())>>::call_once
  61:     0x7f7043086c70 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::SingleCache<rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  62:     0x7f7042ded43d - rustc_query_impl[91ab7089996eb428]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  63:     0x7f704125e8da - <rustc_middle[e64d5e43c57d031f]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}::{closure#0}::{closure#3}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  64:     0x7f70412a206a - <rustc_interface[b189da69e65174ab]::interface::Compiler>::enter::<rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<core[3cdb0195637f8cef]::option::Option<rustc_interface[b189da69e65174ab]::queries::Linker>, rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  65:     0x7f7041211073 - rustc_span[60e4ee2d4f6f71ba]::set_source_map::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  66:     0x7f704126af3e - <scoped_tls[944e96bd67e691c0]::ScopedKey<rustc_span[60e4ee2d4f6f71ba]::SessionGlobals>>::set::<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  67:     0x7f704121154c - rustc_span[60e4ee2d4f6f71ba]::create_session_globals_then::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}>
  68:     0x7f704124474e - std[42c637bcc36b3adc]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  69:     0x7f70412135e4 - std[42c637bcc36b3adc]::panicking::try::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, core[3cdb0195637f8cef]::panic::unwind_safe::AssertUnwindSafe<<std[42c637bcc36b3adc]::thread::Builder>::spawn_unchecked_<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  70:     0x7f7041245c7a - <<std[42c637bcc36b3adc]::thread::Builder>::spawn_unchecked_<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#1} as core[3cdb0195637f8cef]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  71:     0x7f70405b2c2e - <std[42c637bcc36b3adc]::sys::unix::thread::Thread>::new::thread_start
  73:     0x7f704042c0d0 - <unknown>
  74:                0x0 - <unknown>

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: 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.77.0-nightly (c7fc42e1c 2023-12-28) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [type_of_assoc_const_binding] computing type of associated constant binding `HirId(DefId(0:7 ~ assoc_const_eq_ambiguity[5083]::take0).10)`
#1 [type_of] computing type of `take0::{constant#0}`
#2 [explicit_predicates_of] computing explicit predicates of `take0`
#3 [predicates_defined_on] computing predicates of `take0`
#4 [predicates_of] computing predicates of `take0`
#5 [collect_mod_item_types] collecting item types in top-level module
end of query stack
error: aborting due to 1 previous error
------------------------------------------



---- [ui] tests/ui/associated-consts/issue-93835.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/associated-consts/issue-93835.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/issue-93835" "-A" "unused" "-A" "internal_features" "-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/associated-consts/issue-93835/auxiliary"
--- stderr -------------------------------
error[E0425]: cannot find value `p` in this scope
##[error]  --> /checkout/tests/ui/associated-consts/issue-93835.rs:4:19
   |
   |
LL |     type_ascribe!(p, a<p:p<e=6>>);

error[E0412]: cannot find type `a` in this scope
##[error]  --> /checkout/tests/ui/associated-consts/issue-93835.rs:4:22
   |
   |
LL |     type_ascribe!(p, a<p:p<e=6>>);

error[E0405]: cannot find trait `p` in this scope
##[error]  --> /checkout/tests/ui/associated-consts/issue-93835.rs:4:26
   |
   |
LL |     type_ascribe!(p, a<p:p<e=6>>);

error[E0658]: associated const equality is incomplete
##[error]  --> /checkout/tests/ui/associated-consts/issue-93835.rs:4:28
   |
   |
LL |     type_ascribe!(p, a<p:p<e=6>>);
   |
   = note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
   = help: add `#![feature(associated_const_equality)]` to the crate attributes to enable


error[E0658]: associated type bounds are unstable
##[error]  --> /checkout/tests/ui/associated-consts/issue-93835.rs:4:24
   |
LL |     type_ascribe!(p, a<p:p<e=6>>);
   |
   = note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information
   = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable


##[error]error: internal compiler error: compiler/rustc_middle/src/query/mod.rs:2211:1: `tcx.type_of_assoc_const_binding(HirId(DefId(0:3 ~ issue_93835[858f]::e).7))` is not supported for this key;
                                hint: Queries can be either made to the local crate, or the external crate. This error means you tried to use it for one that's not supported.
                                If that's not the case, type_of_assoc_const_binding was likely never assigned to a provider function.
thread 'rustc' panicked at /checkout/compiler/rustc_errors/src/lib.rs:1068:30:
Box<dyn Any>
stack backtrace:
stack backtrace:
   0:     0x7f5a94ddd889 - <std[42c637bcc36b3adc]::sys_common::backtrace::_print::DisplayBacktrace as core[3cdb0195637f8cef]::fmt::Display>::fmt
   1:     0x7f5a94e382ef - core[3cdb0195637f8cef]::fmt::write
   2:     0x7f5a94dd2135 - <std[42c637bcc36b3adc]::sys::unix::stdio::Stderr as std[42c637bcc36b3adc]::io::Write>::write_fmt
   3:     0x7f5a94ddd665 - std[42c637bcc36b3adc]::sys_common::backtrace::print
   4:     0x7f5a94de09ea - std[42c637bcc36b3adc]::panicking::default_hook::{closure#1}
   5:     0x7f5a94de06ed - std[42c637bcc36b3adc]::panicking::default_hook
   6:     0x7f5a95ab0337 - <alloc[f79553009e5d7c90]::boxed::Box<rustc_driver_impl[dd25f5cdf3b88d33]::install_ice_hook::{closure#0}> as core[3cdb0195637f8cef]::ops::function::Fn<(&dyn for<'a, 'b> core[3cdb0195637f8cef]::ops::function::Fn<(&'a core[3cdb0195637f8cef]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[3cdb0195637f8cef]::marker::Sync + core[3cdb0195637f8cef]::marker::Send, &core[3cdb0195637f8cef]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f5a94de10a4 - std[42c637bcc36b3adc]::panicking::rust_panic_with_hook
   8:     0x7f5a98ba4976 - std[42c637bcc36b3adc]::panicking::begin_panic::<rustc_errors[937ad45f18b738b3]::ExplicitBug>::{closure#0}
   9:     0x7f5a98ba36e6 - std[42c637bcc36b3adc]::sys_common::backtrace::__rust_end_short_backtrace::<std[42c637bcc36b3adc]::panicking::begin_panic<rustc_errors[937ad45f18b738b3]::ExplicitBug>::{closure#0}, !>
  10:     0x7f5a95a02e86 - std[42c637bcc36b3adc]::panicking::begin_panic::<rustc_errors[937ad45f18b738b3]::ExplicitBug>
  11:     0x7f5a98bc0221 - <rustc_errors[937ad45f18b738b3]::diagnostic_builder::BugAbort as rustc_errors[937ad45f18b738b3]::diagnostic_builder::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f5a9896565d - <rustc_errors[937ad45f18b738b3]::DiagCtxt>::bug::<alloc[f79553009e5d7c90]::string::String>
  13:     0x7f5a9887cf15 - rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt::<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}
  14:     0x7f5a98870e2a - rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_opt::<rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f5a98870dd8 - rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_context_opt::<rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_opt<rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f5a959a0f62 - rustc_middle[e64d5e43c57d031f]::util::bug::bug_fmt
  17:     0x7f5a98862822 - <<rustc_middle[e64d5e43c57d031f]::query::Providers as core[3cdb0195637f8cef]::default::Default>::default::{closure#17} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_hir[e4f6acc2bb406260]::hir_id::HirId)>>::call_once
  18:     0x7f5a9758d99a - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  19:     0x7f5a976ae7c9 - <rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_hir[e4f6acc2bb406260]::hir_id::HirId)>>::call_once
  20:     0x7f5a9792c512 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_hir[e4f6acc2bb406260]::hir_id::HirId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  21:     0x7f5a977328c7 - rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::get_query_non_incr::__rust_end_short_backtrace
  22:     0x7f5a963e5635 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::type_of::type_of
  23:     0x7f5a975918e7 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  24:     0x7f5a976f2929 - <rustc_query_impl[91ab7089996eb428]::query_impl::type_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  25:     0x7f5a97924b1a - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  26:     0x7f5a9775c337 - rustc_query_impl[91ab7089996eb428]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  27:     0x7f5a962d9d70 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>>
  28:     0x7f5a962e9ff3 - rustc_hir_typeck[14ddff52c27d3933]::typeck
  29:     0x7f5a975914f5 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  30:     0x7f5a976f24f5 - <rustc_query_impl[91ab7089996eb428]::query_impl::typeck::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::LocalDefId)>>::call_once
  31:     0x7f5a97987a3d - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::VecCache<rustc_span[60e4ee2d4f6f71ba]::def_id::LocalDefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  32:     0x7f5a97742695 - rustc_query_impl[91ab7089996eb428]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
  33:     0x7f5a962da1c0 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::VecCache<rustc_span[60e4ee2d4f6f71ba]::def_id::LocalDefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>>
  34:     0x7f5a962e9886 - rustc_hir_typeck[14ddff52c27d3933]::used_trait_imports
  35:     0x7f5a9757e5c5 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::used_trait_imports::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  36:     0x7f5a9768ac05 - <rustc_query_impl[91ab7089996eb428]::query_impl::used_trait_imports::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::LocalDefId)>>::call_once
  37:     0x7f5a97987a3d - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::VecCache<rustc_span[60e4ee2d4f6f71ba]::def_id::LocalDefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  38:     0x7f5a97742875 - rustc_query_impl[91ab7089996eb428]::query_impl::used_trait_imports::get_query_non_incr::__rust_end_short_backtrace
  39:     0x7f5a964f68b0 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::VecCache<rustc_span[60e4ee2d4f6f71ba]::def_id::LocalDefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>>
  40:     0x7f5a964fc120 - rustc_hir_analysis[1b29e1d8b28547c7]::check_unused::check_unused_traits
  41:     0x7f5a9757eea3 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::check_unused_traits::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 0usize]>>
  42:     0x7f5a97623561 - <rustc_query_impl[91ab7089996eb428]::query_impl::check_unused_traits::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, ())>>::call_once
  43:     0x7f5a978ba8b3 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::SingleCache<rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  44:     0x7f5a97732acd - rustc_query_impl[91ab7089996eb428]::query_impl::check_unused_traits::get_query_non_incr::__rust_end_short_backtrace
  45:     0x7f5a9650e30a - rustc_hir_analysis[1b29e1d8b28547c7]::check_crate
  46:     0x7f5a95cdd7b0 - rustc_interface[b189da69e65174ab]::passes::analysis
  47:     0x7f5a97591ad3 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 1usize]>>
  48:     0x7f5a97690841 - <rustc_query_impl[91ab7089996eb428]::query_impl::analysis::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, ())>>::call_once
  49:     0x7f5a978c0c70 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::SingleCache<rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  50:     0x7f5a9762743d - rustc_query_impl[91ab7089996eb428]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  51:     0x7f5a95a988da - <rustc_middle[e64d5e43c57d031f]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}::{closure#0}::{closure#3}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  52:     0x7f5a95adc06a - <rustc_interface[b189da69e65174ab]::interface::Compiler>::enter::<rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<core[3cdb0195637f8cef]::option::Option<rustc_interface[b189da69e65174ab]::queries::Linker>, rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  53:     0x7f5a95a4b073 - rustc_span[60e4ee2d4f6f71ba]::set_source_map::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  54:     0x7f5a95aa4f3e - <scoped_tls[944e96bd67e691c0]::ScopedKey<rustc_span[60e4ee2d4f6f71ba]::SessionGlobals>>::set::<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  55:     0x7f5a95a4b54c - rustc_span[60e4ee2d4f6f71ba]::create_session_globals_then::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}>
  56:     0x7f5a95a7e74e - std[42c637bcc36b3adc]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  57:     0x7f5a95a4d5e4 - std[42c637bcc36b3adc]::panicking::try::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, core[3cdb0195637f8cef]::panic::unwind_safe::AssertUnwindSafe<<std[42c637bcc36b3adc]::thread::Builder>::spawn_unchecked_<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  58:     0x7f5a95a7fc7a - <<std[42c637bcc36b3adc]::thread::Builder>::spawn_unchecked_<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#1} as core[3cdb0195637f8cef]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  59:     0x7f5a94decc2e - <std[42c637bcc36b3adc]::sys::unix::thread::Thread>::new::thread_start
  61:     0x7f5a94c660d0 - <unknown>
  62:                0x0 - <unknown>

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: 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.77.0-nightly (c7fc42e1c 2023-12-28) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [type_of_assoc_const_binding] computing type of associated constant binding `HirId(DefId(0:3 ~ issue_93835[858f]::e).7)`
#1 [type_of] computing type of `e::{constant#0}`
#2 [typeck] type-checking `e::{constant#0}`
#3 [used_trait_imports] finding used_trait_imports `e::{constant#0}`
#4 [check_unused_traits] checking unused trait imports in crate
end of query stack
error: aborting due to 6 previous errors

Some errors have detailed explanations: E0405, E0412, E0425, E0658.
Some errors have detailed explanations: E0405, E0412, E0425, E0658.
For more information about an error, try `rustc --explain E0405`.
------------------------------------------


---- [ui] tests/ui/const-generics/generic_const_exprs/issue-102768.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/const-generics/generic_const_exprs/issue-102768.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/generic_const_exprs/issue-102768" "-A" "unused" "-A" "internal_features" "-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/const-generics/generic_const_exprs/issue-102768/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
##[error]error: internal compiler error: compiler/rustc_middle/src/query/mod.rs:2211:1: `tcx.type_of_assoc_const_binding(HirId(DefId(0:7 ~ issue_102768[fe8e]::_::f2).12))` is not supported for this key;
                                hint: Queries can be either made to the local crate, or the external crate. This error means you tried to use it for one that's not supported.
                                If that's not the case, type_of_assoc_const_binding was likely never assigned to a provider function.
thread 'rustc' panicked at /checkout/compiler/rustc_errors/src/lib.rs:1068:30:
Box<dyn Any>
stack backtrace:
stack backtrace:
   0:     0x7feae4ffe889 - <std[42c637bcc36b3adc]::sys_common::backtrace::_print::DisplayBacktrace as core[3cdb0195637f8cef]::fmt::Display>::fmt
   1:     0x7feae50592ef - core[3cdb0195637f8cef]::fmt::write
   2:     0x7feae4ff3135 - <std[42c637bcc36b3adc]::sys::unix::stdio::Stderr as std[42c637bcc36b3adc]::io::Write>::write_fmt
   3:     0x7feae4ffe665 - std[42c637bcc36b3adc]::sys_common::backtrace::print
   4:     0x7feae50019ea - std[42c637bcc36b3adc]::panicking::default_hook::{closure#1}
   5:     0x7feae50016ed - std[42c637bcc36b3adc]::panicking::default_hook
   6:     0x7feae5cd1337 - <alloc[f79553009e5d7c90]::boxed::Box<rustc_driver_impl[dd25f5cdf3b88d33]::install_ice_hook::{closure#0}> as core[3cdb0195637f8cef]::ops::function::Fn<(&dyn for<'a, 'b> core[3cdb0195637f8cef]::ops::function::Fn<(&'a core[3cdb0195637f8cef]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[3cdb0195637f8cef]::marker::Sync + core[3cdb0195637f8cef]::marker::Send, &core[3cdb0195637f8cef]::panic::panic_info::PanicInfo)>>::call
   7:     0x7feae50020a4 - std[42c637bcc36b3adc]::panicking::rust_panic_with_hook
   8:     0x7feae8dc5976 - std[42c637bcc36b3adc]::panicking::begin_panic::<rustc_errors[937ad45f18b738b3]::ExplicitBug>::{closure#0}
   9:     0x7feae8dc46e6 - std[42c637bcc36b3adc]::sys_common::backtrace::__rust_end_short_backtrace::<std[42c637bcc36b3adc]::panicking::begin_panic<rustc_errors[937ad45f18b738b3]::ExplicitBug>::{closure#0}, !>
  10:     0x7feae5c23e86 - std[42c637bcc36b3adc]::panicking::begin_panic::<rustc_errors[937ad45f18b738b3]::ExplicitBug>
  11:     0x7feae8de1221 - <rustc_errors[937ad45f18b738b3]::diagnostic_builder::BugAbort as rustc_errors[937ad45f18b738b3]::diagnostic_builder::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7feae8b8665d - <rustc_errors[937ad45f18b738b3]::DiagCtxt>::bug::<alloc[f79553009e5d7c90]::string::String>
  13:     0x7feae8a9df15 - rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt::<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}
  14:     0x7feae8a91e2a - rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_opt::<rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7feae8a91dd8 - rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_context_opt::<rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_opt<rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7feae5bc1f62 - rustc_middle[e64d5e43c57d031f]::util::bug::bug_fmt
  17:     0x7feae8a83822 - <<rustc_middle[e64d5e43c57d031f]::query::Providers as core[3cdb0195637f8cef]::default::Default>::default::{closure#17} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_hir[e4f6acc2bb406260]::hir_id::HirId)>>::call_once
  18:     0x7feae77ae99a - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  19:     0x7feae78cf7c9 - <rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_hir[e4f6acc2bb406260]::hir_id::HirId)>>::call_once
  20:     0x7feae7b4d512 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_hir[e4f6acc2bb406260]::hir_id::HirId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  21:     0x7feae79538c7 - rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::get_query_non_incr::__rust_end_short_backtrace
  22:     0x7feae6606635 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::type_of::type_of
  23:     0x7feae77b28e7 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  24:     0x7feae7913929 - <rustc_query_impl[91ab7089996eb428]::query_impl::type_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  25:     0x7feae7b45b1a - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  26:     0x7feae797d337 - rustc_query_impl[91ab7089996eb428]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  27:     0x7feae8af547d - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>>
  28:     0x7feae8af60db - <rustc_middle[e64d5e43c57d031f]::ty::consts::Const>::from_anon_const
  29:     0x7feae6721301 - <rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector as rustc_hir[e4f6acc2bb406260]::intravisit::Visitor>::visit_anon_const
  30:     0x7feae668a829 - rustc_hir[e4f6acc2bb406260]::intravisit::walk_assoc_type_binding::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector>
  31:     0x7feae668e80c - rustc_hir[e4f6acc2bb406260]::intravisit::walk_ty::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector>
  32:     0x7feae668e95e - rustc_hir[e4f6acc2bb406260]::intravisit::walk_ty::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector>
  33:     0x7feae668016c - rustc_hir[e4f6acc2bb406260]::intravisit::walk_fn_decl::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector>
  34:     0x7feae67318c8 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::gather_explicit_predicates_of
  35:     0x7feae6721b73 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::explicit_predicates_of
  36:     0x7feae77a5e31 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  37:     0x7feae7a624e1 - <rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  38:     0x7feae7b3674b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  39:     0x7feae78b3907 - rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::get_query_non_incr::__rust_end_short_backtrace
  40:     0x7feae662d095 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>>
  41:     0x7feae66573c1 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_defined_on
  42:     0x7feae77a484c - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  43:     0x7feae7a621d1 - <rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  44:     0x7feae7b3674b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  45:     0x7feae78b37e7 - rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::get_query_non_incr::__rust_end_short_backtrace
  46:     0x7feae6716e95 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>>
  47:     0x7feae6720420 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::predicates_of
  48:     0x7feae779250c - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  49:     0x7feae7a5bf41 - <rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  50:     0x7feae7b3674b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  51:     0x7feae78b2f97 - rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::get_query_non_incr::__rust_end_short_backtrace
  52:     0x7feae6646691 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::convert_item
  53:     0x7feae663f092 - <rustc_hir_analysis[1b29e1d8b28547c7]::collect::CollectItemTypesVisitor as rustc_hir[e4f6acc2bb406260]::intravisit::Visitor>::visit_item
  54:     0x7feae6714080 - <rustc_middle[e64d5e43c57d031f]::hir::map::Map>::visit_item_likes_in_module::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::CollectItemTypesVisitor>
  55:     0x7feae663e73d - rustc_hir_analysis[1b29e1d8b28547c7]::collect::collect_mod_item_types
  56:     0x7feae77a5425 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 0usize]>>
  57:     0x7feae790f035 - <rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::LocalModDefId)>>::call_once
  58:     0x7feae7b27b53 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::LocalModDefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  59:     0x7feae78b4137 - rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::get_query_non_incr::__rust_end_short_backtrace
  60:     0x7feae672dace - rustc_hir_analysis[1b29e1d8b28547c7]::check_crate
  61:     0x7feae5efe7b0 - rustc_interface[b189da69e65174ab]::passes::analysis
  62:     0x7feae77b2ad3 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 1usize]>>
  63:     0x7feae78b1841 - <rustc_query_impl[91ab7089996eb428]::query_impl::analysis::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, ())>>::call_once
  64:     0x7feae7ae1c70 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::SingleCache<rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  65:     0x7feae784843d - rustc_query_impl[91ab7089996eb428]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  66:     0x7feae5cb98da - <rustc_middle[e64d5e43c57d031f]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}::{closure#0}::{closure#3}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  67:     0x7feae5cfd06a - <rustc_interface[b189da69e65174ab]::interface::Compiler>::enter::<rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<core[3cdb0195637f8cef]::option::Option<rustc_interface[b189da69e65174ab]::queries::Linker>, rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  68:     0x7feae5c6c073 - rustc_span[60e4ee2d4f6f71ba]::set_source_map::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  69:     0x7feae5cc5f3e - <scoped_tls[944e96bd67e691c0]::ScopedKey<rustc_span[60e4ee2d4f6f71ba]::SessionGlobals>>::set::<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  70:     0x7feae5c6c54c - rustc_span[60e4ee2d4f6f71ba]::create_session_globals_then::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}>
  71:     0x7feae5c9f74e - std[42c637bcc36b3adc]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  72:     0x7feae5c6e5e4 - std[42c637bcc36b3adc]::panicking::try::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, core[3cdb0195637f8cef]::panic::unwind_safe::AssertUnwindSafe<<std[42c637bcc36b3adc]::thread::Builder>::spawn_unchecked_<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  73:     0x7feae5ca0c7a - <<std[42c637bcc36b3adc]::thread::Builder>::spawn_unchecked_<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#1} as core[3cdb0195637f8cef]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  74:     0x7feae500dc2e - <std[42c637bcc36b3adc]::sys::unix::thread::Thread>::new::thread_start
  76:     0x7feae4e870d0 - <unknown>
  77:                0x0 - <unknown>

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: 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.77.0-nightly (c7fc42e1c 2023-12-28) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [type_of_assoc_const_binding] computing type of associated constant binding `HirId(DefId(0:7 ~ issue_102768[fe8e]::_::f2).12)`
#1 [type_of] computing type of `_::f2::{constant#0}`
#2 [explicit_predicates_of] computing explicit predicates of `_::f2`
#3 [predicates_defined_on] computing predicates of `_::f2`
#4 [predicates_of] computing predicates of `_::f2`
#5 [collect_mod_item_types] collecting item types in top-level module
end of query stack
error: aborting due to 1 previous error
------------------------------------------



---- [ui] tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind" "-A" "unused" "-A" "internal_features" "-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/const-generics/generic_const_exprs/mismatched-gat-subst-kind/auxiliary"
stdout: none
--- stderr -------------------------------
--- stderr -------------------------------
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
   |
LL | #![feature(generic_const_exprs)]
   |            ^^^^^^^^^^^^^^^^^^^
   |
   |
   = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
   = note: `#[warn(incomplete_features)]` on by default

error[E0747]: constant provided when a type was expected
##[error]  --> /checkout/tests/ui/const-generics/generic_const_exprs/mismatched-gat-subst-kind.rs:8:13
   |
LL | fn f<T: B<U<1i32> = ()>>() {}


##[error]error: internal compiler error: compiler/rustc_middle/src/query/mod.rs:2211:1: `tcx.type_of_assoc_const_binding(HirId(DefId(0:6 ~ mismatched_gat_subst_kind[5810]::f).6))` is not supported for this key;
                                hint: Queries can be either made to the local crate, or the external crate. This error means you tried to use it for one that's not supported.
                                If that's not the case, type_of_assoc_const_binding was likely never assigned to a provider function.
thread 'rustc' panicked at /checkout/compiler/rustc_errors/src/lib.rs:1068:30:
Box<dyn Any>
stack backtrace:
stack backtrace:
   0:     0x7f30ea254889 - <std[42c637bcc36b3adc]::sys_common::backtrace::_print::DisplayBacktrace as core[3cdb0195637f8cef]::fmt::Display>::fmt
   1:     0x7f30ea2af2ef - core[3cdb0195637f8cef]::fmt::write
   2:     0x7f30ea249135 - <std[42c637bcc36b3adc]::sys::unix::stdio::Stderr as std[42c637bcc36b3adc]::io::Write>::write_fmt
   3:     0x7f30ea254665 - std[42c637bcc36b3adc]::sys_common::backtrace::print
   4:     0x7f30ea2579ea - std[42c637bcc36b3adc]::panicking::default_hook::{closure#1}
   5:     0x7f30ea2576ed - std[42c637bcc36b3adc]::panicking::default_hook
   6:     0x7f30eaf27337 - <alloc[f79553009e5d7c90]::boxed::Box<rustc_driver_impl[dd25f5cdf3b88d33]::install_ice_hook::{closure#0}> as core[3cdb0195637f8cef]::ops::function::Fn<(&dyn for<'a, 'b> core[3cdb0195637f8cef]::ops::function::Fn<(&'a core[3cdb0195637f8cef]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[3cdb0195637f8cef]::marker::Sync + core[3cdb0195637f8cef]::marker::Send, &core[3cdb0195637f8cef]::panic::panic_info::PanicInfo)>>::call
   7:     0x7f30ea2580a4 - std[42c637bcc36b3adc]::panicking::rust_panic_with_hook
   8:     0x7f30ee01b976 - std[42c637bcc36b3adc]::panicking::begin_panic::<rustc_errors[937ad45f18b738b3]::ExplicitBug>::{closure#0}
   9:     0x7f30ee01a6e6 - std[42c637bcc36b3adc]::sys_common::backtrace::__rust_end_short_backtrace::<std[42c637bcc36b3adc]::panicking::begin_panic<rustc_errors[937ad45f18b738b3]::ExplicitBug>::{closure#0}, !>
  10:     0x7f30eae79e86 - std[42c637bcc36b3adc]::panicking::begin_panic::<rustc_errors[937ad45f18b738b3]::ExplicitBug>
  11:     0x7f30ee037221 - <rustc_errors[937ad45f18b738b3]::diagnostic_builder::BugAbort as rustc_errors[937ad45f18b738b3]::diagnostic_builder::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f30edddc65d - <rustc_errors[937ad45f18b738b3]::DiagCtxt>::bug::<alloc[f79553009e5d7c90]::string::String>
  13:     0x7f30edcf3f15 - rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt::<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}
  14:     0x7f30edce7e2a - rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_opt::<rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  15:     0x7f30edce7dd8 - rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_context_opt::<rustc_middle[e64d5e43c57d031f]::ty::context::tls::with_opt<rustc_middle[e64d5e43c57d031f]::util::bug::opt_span_bug_fmt<rustc_span[60e4ee2d4f6f71ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  16:     0x7f30eae17f62 - rustc_middle[e64d5e43c57d031f]::util::bug::bug_fmt
  17:     0x7f30edcd9822 - <<rustc_middle[e64d5e43c57d031f]::query::Providers as core[3cdb0195637f8cef]::default::Default>::default::{closure#17} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_hir[e4f6acc2bb406260]::hir_id::HirId)>>::call_once
  18:     0x7f30eca0499a - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  19:     0x7f30ecb257c9 - <rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_hir[e4f6acc2bb406260]::hir_id::HirId)>>::call_once
  20:     0x7f30ecda3512 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_hir[e4f6acc2bb406260]::hir_id::HirId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  21:     0x7f30ecba98c7 - rustc_query_impl[91ab7089996eb428]::query_impl::type_of_assoc_const_binding::get_query_non_incr::__rust_end_short_backtrace
  22:     0x7f30eb85c635 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::type_of::type_of
  23:     0x7f30eca088e7 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::type_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>
  24:     0x7f30ecb69929 - <rustc_query_impl[91ab7089996eb428]::query_impl::type_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  25:     0x7f30ecd9bb1a - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  26:     0x7f30ecbd3337 - rustc_query_impl[91ab7089996eb428]::query_impl::type_of::get_query_non_incr::__rust_end_short_backtrace
  27:     0x7f30edd4b47d - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 8usize]>>>
  28:     0x7f30edd4c0db - <rustc_middle[e64d5e43c57d031f]::ty::consts::Const>::from_anon_const
  29:     0x7f30eb977301 - <rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector as rustc_hir[e4f6acc2bb406260]::intravisit::Visitor>::visit_anon_const
  30:     0x7f30eb8e0829 - rustc_hir[e4f6acc2bb406260]::intravisit::walk_assoc_type_binding::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector>
  31:     0x7f30eb8db4dc - rustc_hir[e4f6acc2bb406260]::intravisit::walk_generic_args::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector>
  32:     0x7f30eb8de02f - rustc_hir[e4f6acc2bb406260]::intravisit::walk_where_predicate::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector>
  33:     0x7f30eb8d6d2c - rustc_hir[e4f6acc2bb406260]::intravisit::walk_generics::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::const_evaluatable_predicates_of::ConstCollector>
  34:     0x7f30eb9876e2 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::gather_explicit_predicates_of
  35:     0x7f30eb977b73 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::explicit_predicates_of
  36:     0x7f30ec9fbe31 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  37:     0x7f30eccb84e1 - <rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  38:     0x7f30ecd8c74b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  39:     0x7f30ecb09907 - rustc_query_impl[91ab7089996eb428]::query_impl::explicit_predicates_of::get_query_non_incr::__rust_end_short_backtrace
  40:     0x7f30eb883095 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>>
  41:     0x7f30eb8ad3c1 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_defined_on
  42:     0x7f30ec9fa84c - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  43:     0x7f30eccb81d1 - <rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  44:     0x7f30ecd8c74b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  45:     0x7f30ecb097e7 - rustc_query_impl[91ab7089996eb428]::query_impl::predicates_defined_on::get_query_non_incr::__rust_end_short_backtrace
  46:     0x7f30eb96ce95 - rustc_middle[e64d5e43c57d031f]::query::plumbing::query_get_at::<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>>
  47:     0x7f30eb976420 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::predicates_of::predicates_of
  48:     0x7f30ec9e850c - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>
  49:     0x7f30eccb1f41 - <rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::DefId)>>::call_once
  50:     0x7f30ecd8c74b - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::DefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  51:     0x7f30ecb08f97 - rustc_query_impl[91ab7089996eb428]::query_impl::predicates_of::get_query_non_incr::__rust_end_short_backtrace
  52:     0x7f30eb89c691 - rustc_hir_analysis[1b29e1d8b28547c7]::collect::convert_item
  53:     0x7f30eb895092 - <rustc_hir_analysis[1b29e1d8b28547c7]::collect::CollectItemTypesVisitor as rustc_hir[e4f6acc2bb406260]::intravisit::Visitor>::visit_item
  54:     0x7f30eb96a080 - <rustc_middle[e64d5e43c57d031f]::hir::map::Map>::visit_item_likes_in_module::<rustc_hir_analysis[1b29e1d8b28547c7]::collect::CollectItemTypesVisitor>
  55:     0x7f30eb89473d - rustc_hir_analysis[1b29e1d8b28547c7]::collect::collect_mod_item_types
  56:     0x7f30ec9fb425 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 0usize]>>
  57:     0x7f30ecb65035 - <rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, rustc_span[60e4ee2d4f6f71ba]::def_id::LocalModDefId)>>::call_once
  58:     0x7f30ecd7db53 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::DefaultCache<rustc_span[60e4ee2d4f6f71ba]::def_id::LocalModDefId, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 0usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  59:     0x7f30ecb0a137 - rustc_query_impl[91ab7089996eb428]::query_impl::collect_mod_item_types::get_query_non_incr::__rust_end_short_backtrace
  60:     0x7f30eb983ace - rustc_hir_analysis[1b29e1d8b28547c7]::check_crate
  61:     0x7f30eb1547b0 - rustc_interface[b189da69e65174ab]::passes::analysis
  62:     0x7f30eca08ad3 - rustc_query_impl[91ab7089996eb428]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[91ab7089996eb428]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 1usize]>>
  63:     0x7f30ecb07841 - <rustc_query_impl[91ab7089996eb428]::query_impl::analysis::dynamic_query::{closure#2} as core[3cdb0195637f8cef]::ops::function::FnOnce<(rustc_middle[e64d5e43c57d031f]::ty::context::TyCtxt, ())>>::call_once
  64:     0x7f30ecd37c70 - rustc_query_system[2ad56fb797c3ffa6]::query::plumbing::try_execute_query::<rustc_query_impl[91ab7089996eb428]::DynamicConfig<rustc_query_system[2ad56fb797c3ffa6]::query::caches::SingleCache<rustc_middle[e64d5e43c57d031f]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[91ab7089996eb428]::plumbing::QueryCtxt, false>
  65:     0x7f30eca9e43d - rustc_query_impl[91ab7089996eb428]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  66:     0x7f30eaf0f8da - <rustc_middle[e64d5e43c57d031f]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}::{closure#0}::{closure#3}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  67:     0x7f30eaf5306a - <rustc_interface[b189da69e65174ab]::interface::Compiler>::enter::<rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<core[3cdb0195637f8cef]::option::Option<rustc_interface[b189da69e65174ab]::queries::Linker>, rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  68:     0x7f30eaec2073 - rustc_span[60e4ee2d4f6f71ba]::set_source_map::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
  69:     0x7f30eaf1bf3e - <scoped_tls[944e96bd67e691c0]::ScopedKey<rustc_span[60e4ee2d4f6f71ba]::SessionGlobals>>::set::<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  70:     0x7f30eaec254c - rustc_span[60e4ee2d4f6f71ba]::create_session_globals_then::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}>
  71:     0x7f30eaef574e - std[42c637bcc36b3adc]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>
  72:     0x7f30eaec45e4 - std[42c637bcc36b3adc]::panicking::try::<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, core[3cdb0195637f8cef]::panic::unwind_safe::AssertUnwindSafe<<std[42c637bcc36b3adc]::thread::Builder>::spawn_unchecked_<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
  73:     0x7f30eaef6c7a - <<std[42c637bcc36b3adc]::thread::Builder>::spawn_unchecked_<rustc_interface[b189da69e65174ab]::util::run_in_thread_with_globals<rustc_interface[b189da69e65174ab]::util::run_in_thread_pool_with_globals<rustc_interface[b189da69e65174ab]::interface::run_compiler<core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>, rustc_driver_impl[dd25f5cdf3b88d33]::run_compiler::{closure#0}>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3cdb0195637f8cef]::result::Result<(), rustc_span[60e4ee2d4f6f71ba]::ErrorGuaranteed>>::{closure#1} as core[3cdb0195637f8cef]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  74:     0x7f30ea263c2e - <std[42c637bcc36b3adc]::sys::unix::thread::Thread>::new::thread_start
  76:     0x7f30ea0dd0d0 - <unknown>
  77:                0x0 - <unknown>

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: 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.77.0-nightly (c7fc42e1c 2023-12-28) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/cargo -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0
query stack during panic:
query stack during panic:
#0 [type_of_assoc_const_binding] computing type of associated constant binding `HirId(DefId(0:6 ~ mismatched_gat_subst_kind[5810]::f).6)`
#1 [type_of] computing type of `f::{constant#0}`
#2 [explicit_predicates_of] computing explicit predicates of `f`
#3 [predicates_defined_on] computing predicates of `f`
#4 [predicates_of] computing predicates of `f`
#5 [collect_mod_item_types] collecting item types in top-level module
end of query stack
error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0747`.
For more information about this error, try `rustc --explain E0747`.
------------------------------------------


---- [ui] tests/ui/typeck/issue-91267.rs stdout ----

error: Error: expected failure status (Some(1)) but received status Some(101).
status: exit status: 101
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/typeck/issue-91267.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/typeck/issue-91267" "-A" "unused" "-A" "internal_features" "-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/typeck/issue-91267/auxiliary"
--- stderr -------------------------------
error[E0412]: cannot find type `e` in this scope
##[error]  --> /checkout/tests/ui/typeck/issue-91267.rs:4:30
   |
   |
LL |     type_ascribe!(0, u8<e<5>=e>)

rust-log-analyzer avatar Dec 28 '23 18:12 rust-log-analyzer

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

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_6f87cfc7-e089-4363-ad28-ea934f5ca02a
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=assoc-const-eq-fixes-2
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6f87cfc7-e089-4363-ad28-ea934f5ca02a
GITHUB_REF=refs/pull/119385/merge
GITHUB_REF_NAME=119385/merge
GITHUB_REF_PROTECTED=false
---
Built container sha256:9c3c93a371e5aed5c18185b24f130d95d5140dbd72a9b325e7b6b49e521a4faa
Looks like docker image is the same as before, not uploading
https://ci-caches.rust-lang.org/docker/7ebc15c01a233894034d277c8cce4e949f4e7791f66b4727c8fb6e058a0b8171d6152e1441d677cef0653843ceeee469c097b8699b2bb74249e674f6aa1a8813
sha256:9c3c93a371e5aed5c18185b24f130d95d5140dbd72a9b325e7b6b49e521a4faa
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-16]
##[group]Clock drift check
  local time: Wed Jan 10 02:12:29 UTC 2024
  network time: Wed, 10 Jan 2024 02:12:29 GMT
  network time: Wed, 10 Jan 2024 02:12:29 GMT
##[endgroup]
sccache: Starting the server...
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-16', '--enable-llvm-link-shared', '--set', 'rust.thin-lto-import-instr-limit=10', '--set', 'change-id=99999999', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'build.optimized-compiler-builtins', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--enable-new-symbol-mangling']
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-16/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.thin-lto-import-instr-limit := 10
configure: change-id            := 99999999
---
- error: aborting due to 5 previous errors
+ error[E0309]: the parameter type `T` may not live long enough
+   --> $DIR/assoc-const-eq-param-in-ty.rs:6:5
+    |
+ LL | trait Trait<'a, T, const N: usize> {
+    |             -- the parameter type `T` must be valid for the lifetime `'a` as defined here...
+ LL |     const K: &'a [T; N];
+    |     ^^^^^^^^^^^^^^^^^^^^ ...so that the reference type `&'a [T; N]` does not outlive the data it points at
+ help: consider adding an explicit lifetime bound
+    |
+    |
+ LL | trait Trait<'a, T: 'a, const N: usize> {
47 
+ error: aborting due to 6 previous errors
+ 
+ For more information about this error, try `rustc --explain E0309`.
+ For more information about this error, try `rustc --explain E0309`.
48 


The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/assoc-const-eq-param-in-ty/assoc-const-eq-param-in-ty.stderr
To only update this specific test, also pass `--test-args associated-consts/assoc-const-eq-param-in-ty.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
status: exit status: 1
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/associated-consts/assoc-const-eq-param-in-ty.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/assoc-const-eq-param-in-ty" "-A" "unused" "-A" "internal_features" "-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/associated-consts/assoc-const-eq-param-in-ty/auxiliary"
--- stderr -------------------------------
--- stderr -------------------------------
error: the type of the associated constant `K` must not depend on generic parameters
##[error]  --> /checkout/tests/ui/associated-consts/assoc-const-eq-param-in-ty.rs:9:57
   |
LL | fn take0<'r, A, const Q: usize>(_: impl Trait<'r, A, Q, K = { loop {} }>) {}
   |          -- the lifetime parameter `'r` is defined here ^ its type must not depend on the lifetime parameter `'r`
   |
   = note: `K` has type `&'r [A; Q]`

error: the type of the associated constant `K` must not depend on generic parameters
##[error]  --> /checkout/tests/ui/associated-consts/assoc-const-eq-param-in-ty.rs:9:57
   |
LL | fn take0<'r, A, const Q: usize>(_: impl Trait<'r, A, Q, K = { loop {} }>) {}
   |              - the type parameter `A` is defined here   ^ its type must not depend on the type parameter `A`
   |
   = note: `K` has type `&'r [A; Q]`

error: the type of the associated constant `K` must not depend on generic parameters
##[error]  --> /checkout/tests/ui/associated-consts/assoc-const-eq-param-in-ty.rs:9:57
   |
LL | fn take0<'r, A, const Q: usize>(_: impl Trait<'r, A, Q, K = { loop {} }>) {}
   |                       -                                 ^ its type must not depend on the const parameter `Q`
   |                       |
   |                       the const parameter `Q` is defined here
   |
   = note: `K` has type `&'r [A; Q]`
error: the type of the associated constant `SELF` must not depend on `impl Trait`
##[error]  --> /checkout/tests/ui/associated-consts/assoc-const-eq-param-in-ty.rs:27:26
   |
   |
LL | fn take1(_: impl Project<SELF = {}>) {}
   |             |            |
   |             |            its type must not depend on `impl Trait`
   |             the `impl Trait` is specified here


error: the type of the associated constant `SELF` must not depend on generic parameters
##[error]  --> /checkout/tests/ui/associated-consts/assoc-const-eq-param-in-ty.rs:32:21
   |
LL | fn take2<P: Project<SELF = {}>>(_: P) {}
   |          -          ^^^^ its type must not depend on the type parameter `P`
   |          the type parameter `P` is defined here
   |
   = note: `SELF` has type `P`


error[E0309]: the parameter type `T` may not live long enough
##[error]  --> /checkout/tests/ui/associated-consts/assoc-const-eq-param-in-ty.rs:6:5
   |
LL | trait Trait<'a, T, const N: usize> {
   |             -- the parameter type `T` must be valid for the lifetime `'a` as defined here...
LL |     const K: &'a [T; N];
   |     ^^^^^^^^^^^^^^^^^^^^ ...so that the reference type `&'a [T; N]` does not outlive the data it points at
help: consider adding an explicit lifetime bound
   |
   |
LL | trait Trait<'a, T: 'a, const N: usize> {

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0309`.

rust-log-analyzer avatar Jan 10 '24 02:01 rust-log-analyzer

Best reviewed commit by commit. r? compiler-errors (no rush though)

fmease avatar Jan 10 '24 15:01 fmease

:umbrella: The latest upstream changes (presumably #119751) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Jan 10 '24 20:01 bors

:umbrella: The latest upstream changes (presumably #120100) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Jan 21 '24 03:01 bors

:umbrella: The latest upstream changes (presumably #120951) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Feb 12 '24 03:02 bors

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

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_529d938d-6856-44e0-9786-20cb97d4a57b
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=assoc-const-eq-fixes-2
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_529d938d-6856-44e0-9786-20cb97d4a57b
GITHUB_REF=refs/pull/119385/merge
GITHUB_REF_NAME=119385/merge
GITHUB_REF_PROTECTED=false
---
#12 writing image sha256:23d82b43dff2c398cb35bccc96ad9cbecfafd290352b0a4b634a2cfac6594ed1 done
#12 naming to docker.io/library/rust-ci done
#12 DONE 10.0s
##[endgroup]
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-16]
##[group]Clock drift check
  local time: Sat Feb 17 04:58:51 UTC 2024
  network time: Sat, 17 Feb 2024 04:58:51 GMT
  network time: Sat, 17 Feb 2024 04:58:51 GMT
##[endgroup]
sccache: Starting the server...
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-16', '--enable-llvm-link-shared', '--set', 'rust.thin-lto-import-instr-limit=10', '--set', 'change-id=99999999', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'build.optimized-compiler-builtins', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--enable-new-symbol-mangling']
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-16/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.thin-lto-import-instr-limit := 10
configure: change-id            := 99999999
---
running 16176 tests
i......................................................ii.ii..............ii............    88/16176
........................................................................................   176/16176
............................iiiiiiiiiiiiii......i..............i........................   264/16176
....................F...F...............................................................   352/16176
........................................................................................   528/16176
........................................................................................   616/16176
........................................................................................   704/16176
........................................................................................   792/16176
---
---- [ui] tests/ui/associated-consts/assoc-const-eq-bound-var-in-ty.rs stdout ----

error: ui test compiled successfully!
status: exit status: 0
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/associated-consts/assoc-const-eq-bound-var-in-ty.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/assoc-const-eq-bound-var-in-ty" "-A" "unused" "-A" "internal_features" "-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/associated-consts/assoc-const-eq-bound-var-in-ty/auxiliary"
stderr: none


---- [ui] tests/ui/associated-consts/assoc-const-eq-supertraits.rs stdout ----
---- [ui] tests/ui/associated-consts/assoc-const-eq-supertraits.rs stdout ----

error: ui test compiled successfully!
status: exit status: 0
command: RUSTC_ICE="0" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/associated-consts/assoc-const-eq-supertraits.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/assoc-const-eq-supertraits" "-A" "unused" "-A" "internal_features" "-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/associated-consts/assoc-const-eq-supertraits/auxiliary"
stderr: none



rust-log-analyzer avatar Feb 17 '24 05:02 rust-log-analyzer

:umbrella: The latest upstream changes (presumably #121252) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Feb 18 '24 08:02 bors

We can directly feed the AnonConst's type instead of adding another indirection.

Ideally we'd only create the AnonConst's DefId right here, but since that can't be done for the other uses of AnonConsts yet, we still have to wait a bit before cleaning this up.

oli-obk avatar Feb 21 '24 10:02 oli-obk

We can directly feed the AnonConst's type instead of adding another indirection.

Oh, that makes perfect sense, thanks! Apart from eliminating indirection, does your change affect incremental query evaluation? Just out of curiosity I'd like to ask if the previous approach was unsound?

As for next steps, is this change ready to be merged? Who should review it lol?

fmease avatar Feb 23 '24 05:02 fmease

The job mingw-check-tidy failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11)
Download action repository 'actions/upload-artifact@v3' (SHA:a8a3f3ad30e3422c9c7b888a15615d19a852ae32)
Complete job name: PR - mingw-check-tidy
git config --global core.autocrlf false
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
---
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_eab6dec7-e32f-4152-910d-f4d56eaeebfe
GITHUB_EVENT_NAME=pull_request
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=assoc-const-eq-fixes-2
GITHUB_JOB=pr
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_eab6dec7-e32f-4152-910d-f4d56eaeebfe
GITHUB_REF=refs/pull/119385/merge
GITHUB_REF_NAME=119385/merge
GITHUB_REF_PROTECTED=false
---
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh

COPY host-x86_64/mingw-check/reuse-requirements.txt /tmp/
RUN pip3 install --no-deps --no-cache-dir --require-hashes -r /tmp/reuse-requirements.txt \
    && pip3 install virtualenv
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/

# NOTE: intentionally uses python2 for x.py so we can test it still works.
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
           --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
#    pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---

#10 [5/8] COPY host-x86_64/mingw-check/reuse-requirements.txt /tmp/
#10 DONE 0.0s

#11 [6/8] RUN pip3 install --no-deps --no-cache-dir --require-hashes -r /tmp/reuse-requirements.txt     && pip3 install virtualenv
#11 0.622   Downloading binaryornot-0.4.4-py2.py3-none-any.whl (9.0 kB)
#11 0.635 Collecting boolean-py==4.0
#11 0.640   Downloading boolean.py-4.0-py3-none-any.whl (25 kB)
#11 0.663 Collecting chardet==5.1.0
---
#11 4.689 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#11 5.196 Collecting virtualenv
#11 5.235   Downloading virtualenv-20.25.1-py3-none-any.whl (3.8 MB)
#11 5.298      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 61.6 MB/s eta 0:00:00
#11 5.345 Collecting platformdirs<5,>=3.9.1
#11 5.349   Downloading platformdirs-4.2.0-py3-none-any.whl (17 kB)
#11 5.378 Collecting filelock<4,>=3.12.2
#11 5.381   Downloading filelock-3.13.1-py3-none-any.whl (11 kB)
#11 5.401 Collecting distlib<1,>=0.3.7
#11 5.406   Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#11 5.412      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 124.1 MB/s eta 0:00:00
#11 5.496 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#11 5.659 Successfully installed distlib-0.3.8 filelock-3.13.1 platformdirs-4.2.0 virtualenv-20.25.1
#11 DONE 5.7s

#12 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#12 DONE 0.0s
---
DirectMap4k:      174016 kB
DirectMap2M:     6117376 kB
DirectMap1G:    12582912 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test            --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint
    Finished dev [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/71ff1c62469cc733855a8914976ee9e26f9fe7cc/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-71ff1c62469cc733855a8914976ee9e26f9fe7cc-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
   Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
    Finished release [optimized] target(s) in 28.33s
##[endgroup]
fmt check
##[error]Diff in /checkout/compiler/rustc_hir_analysis/src/astconv/bounds.rs at line 434:
 
             // Provide the resolved type of the associated constant to `type_of(AnonConst)`.
             if !speculative
-                && let hir::TypeBindingKind::Equality {
-                    term: hir::Term::Const(anon_const),
-                } = binding.kind
+                && let hir::TypeBindingKind::Equality { term: hir::Term::Const(anon_const) } =
+                    binding.kind
             {
                 let ty = alias_ty.map_bound(|ty| tcx.type_of(ty.def_id).instantiate(tcx, ty.args));
                 // Since the arguments passed to the alias type above may contain early-bound
Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/compiler/rustc_hir_analysis/src/coherence/builtin.rs" "/checkout/compiler/rustc_hir_analysis/src/coherence/inherent_impls_overlap.rs" "/checkout/compiler/rustc_hir_analysis/src/astconv/generics.rs" "/checkout/compiler/rustc_hir_analysis/src/astconv/mod.rs" "/checkout/compiler/rustc_hir_analysis/src/astconv/bounds.rs" "/checkout/compiler/rustc_hir_analysis/src/astconv/object_safety.rs" "/checkout/compiler/rustc_hir_analysis/src/astconv/lint.rs" "/checkout/compiler/rustc_hir_analysis/src/coherence/mod.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
  local time: Fri Feb 23 05:51:20 UTC 2024
  network time: Fri, 23 Feb 2024 05:51:21 GMT
##[error]Process completed with exit code 1.
Post job cleanup.

rust-log-analyzer avatar Feb 23 '24 05:02 rust-log-analyzer

https://github.com/rust-lang/rust/pull/119385#issuecomment-1960766802

I guess I shouldn't commit review comments from the GH web interface >.< Will fix that later.

fmease avatar Feb 23 '24 05:02 fmease

Just out of curiosity I'd to ask if the previous approach was unsound?

It fed a hir id query, which we haven't considered yet at all. We could have marked whichever query did that as depending on the forever red node, meaning it would get rerun always. That would have been sound, but horrible for perf.

Then again, it's not really worse than what I did with the other query, just fewer moving parts. Also DefIds are a bit more stable than hir ids, due to their tree style relative nature.

I did not think about hir id query feeding soundness too much, so it may have been fine

oli-obk avatar Feb 23 '24 07:02 oli-obk

Just out of curiosity I'd to ask if the previous approach was unsound?

It fed a hir id query, which we haven't considered yet at all. We could have marked whichever query did that as depending on the forever red node, meaning it would get rerun always. That would have been sound, but horrible for perf.

Then again, it's not really worse than what I did with the other query, just fewer moving parts. Also DefIds are a bit more stable than hir ids, due to their tree style relative nature.

I did not think about hir id query feeding soundness too much, so it may have been fine

As for next steps, is this change ready to be merged? Who should review it lol?

We can cross review each other's changes 😅 or get cjgillot to chime in

oli-obk avatar Feb 23 '24 07:02 oli-obk

Hey, @cjgillot. If you have time and energy, could you skim this PR and double-check if the query feeding performed here roughly makes sense from a soundness perspective wrt. incr comp? Thanks a lot in advance!

We can cross review each other's changes

Otherwise the changes look good to me!

fmease avatar Feb 27 '24 08:02 fmease

LGTM. Sorry for the delay. @bors r=oli-obk,cjgillot

cjgillot avatar Mar 10 '24 12:03 cjgillot

:pushpin: Commit 858d3362095851bde4f9cc3c132542f2ce9e9a15 has been approved by oli-obk,cjgillot

It is now in the queue for this repository.

bors avatar Mar 10 '24 12:03 bors