-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE with assoc const equality & closure: Type system constant with non valtree'able type evaluated but no error emitted
#119783
Comments
I'm probably going to add a fix for this to my pre-existing PR #119385. |
Stacktrace looks similar to #119299 |
Right, the symptom is identical (a non-valtree-compatible type was encountered during const eval while it should've been rejected earlier in the “pipeline”) but for
F-associated_const_equality
Edit: However, since I will probably try to re-use the existing |
auto-reduced (treereduce-rust): #![feature(associated_const_equality)]
trait Trait {
const F: fn();
}
fn take(_: impl Trait<F = { || {} }>) {}
fn main() {} original: #![feature(associated_const_equality)]
trait Trait { const F: fn(); }
fn take(_: impl Trait<F = { || {} }>) {}
fn main() {} Version information
Command: Program output
@rustbot label +F-associated_const_equality |
ty::Const::eval
called on a non-valtree-compatible typeType system constant with non valtree'able type evaluated but no error emitted
We don't employ any checks à la
check_param_wf
for assoc const equality constraints / we don't ensure that the type implsstd::marker::ConstParamTy
.full stderr & backtrace
rustc -Vv
(old nightly but whatever):The text was updated successfully, but these errors were encountered: