[ICE]: `Type system constant with non valtree'able type evaluated but no error emitted`
``` warning: the feature `generic_const_args` is incomplete and may not be safe to use and/or cause compiler crashes --> /tmp/icemaker_global_tempdir.PoFXmbFIl8rP/rustc_testrunner_tmpdir_reporting.sr1C89I7U2Sl/mvce.rs:1:12 | 1 | #![feature(generic_const_args)] | ^^^^^^^^^^^^^^^^^^ | = note: see issue #151972 for more information = note: `#[warn(incomplete_features)]` on by default warning: the feature `min_generic_const_args` is incomplete and may not be safe to use and/or cause compiler crashes --> /tmp/icemaker_global_tempdir.PoFXmbFIl8rP/rustc_testrunner_tmpdir_reporting.sr1C89I7U2Sl/mvce.rs:2:12 | 2 | #![feature(min_generic_const_args)] | ^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #132980 for more information warning: trait `Trait` is never used --> /tmp/icemaker_global_tempdir.PoFXmbFIl8rP/rustc_testrunner_tmpdir_reporting.sr1C89I7U2Sl/mvce.rs:3:7 | 3 | trait Trait { | ^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: function `take` is never used --> /tmp/icemaker_global_tempdir.PoFXmbFIl8rP/rustc_testrunner_tmpdir_reporting.sr1C89I7U2Sl/mvce.rs:6:4 | 6 | fn take(_: impl Trait) {} | ^^^^ warning: 4 warnings emitted note: no errors encountered even though delayed bugs were created note: those delayed bugs will now be shown as internal compiler errors error: internal compiler error: Type system constant with non valtree'able type evaluated but no error emitted | = note: delayed at /rustc-dev/a9066b3a6e6a0956706c77c49f24a8d258c5ed3b/compiler/rustc_trait_selection/src/traits/mod.rs:767:39 0: ::emit_diagnostic 1: ::emit_diagnostic 2: ::emit_producing_guarantee 3: ::delayed_bug::<&str> 4: rustc_trait_selection::traits::try_evaluate_const 5: >::evaluate_const_and_instantiate_projection_term 6: , rustc_middle::ty::context::TyCtxt>>::evaluate_goal_in_task 7: , rustc_middle::ty::context::TyCtxt>>::evaluate_goal::{closure#0} 8: >::evaluate_goal_no_fast_paths 9: ::evaluate_root_goal::{closure#0} 10: >::{closure#0}>>::normalize_alias_term 11: >::{closure#0}> as rustc_type_ir::fold::FallibleTypeFolder>::try_fold_const::{closure#0} 12: >::try_fold_with::>::{closure#0}>>.cold 13: ::normalize::> 14: rustc_trait_selection::traits::do_normalize_clauses 15: rustc_trait_selection::traits::normalize_param_env_or_error 16: rustc_ty_utils::ty::param_env 17: rustc_query_impl::execution::try_execute_query::>, false> 18: rustc_query_impl::query_vtables::param_env::execute_query_non_incr::__rust_end_short_backtrace 19: rustc_hir_analysis::check::wfcheck::check_item_fn 20: rustc_hir_analysis::check::check::check_item_type 21: rustc_hir_analysis::check::wfcheck::check_well_formed 22: rustc_query_impl::query_vtables::check_well_formed::invoke_provider_fn::__rust_begin_short_backtrace 23: rustc_query_impl::execution::try_execute_query::, rustc_middle::dep_graph::graph::DepNodeIndex>, false> 24: rustc_query_impl::query_vtables::check_well_formed::execute_query_non_incr::__rust_end_short_backtrace 25: rustc_hir_analysis::check::wfcheck::check_type_wf 26: rustc_query_impl::query_vtables::check_type_wf::invoke_provider_fn::__rust_begin_short_backtrace 27: rustc_query_impl::execution::try_execute_query::>, false> 28: rustc_query_impl::query_vtables::check_type_wf::execute_query_non_incr::__rust_end_short_backtrace 29: rustc_hir_analysis::check_crate 30: rustc_interface::passes::analysis 31: rustc_query_impl::execution::try_execute_query::>, false> 32: rustc_query_impl::query_vtables::analysis::execute_query_non_incr::__rust_end_short_backtrace 33: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#2} 34: std::sys::backtrace::__rust_begin_short_backtrace::::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> 35: ::{closure#2}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 36: ::new::thread_start 37: 38: 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: please make sure that you have updated to the latest nightly note: rustc 1.99.0-nightly (a9066b3a6 2026-08-14) running on x86_64-unknown-linux-gnu note: compiler flags: -Z next-solver=globally -Z dump-mir-dir=dir query stack during panic: end of query stack ```
@rustbot label +F-generic_const_args +F-min_generic_const_argsSource: rust-lang/rust