-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: interpret const eval failure of Unevaluated(UnevaluatedConst ... which is not in required_consts
#124348
Comments
interpret const eval failure of Unevaluated(UnevaluatedConst
interpret const eval failure of Unevaluated(UnevaluatedConst ... which is not in required_consts
Caused by running the interpreter on code that doesn't even pass name resolution. Not sure where to fix this, but probably not in the interpreter.^^ Cc @oli-obk |
this is a promoted failing to compile because it gets the layout of this broken type, which gives us back an |
The issue is that in the sanity check here we only know it's an If this is a The only option I see right now is to add another variant to |
We already got the |
Rollup merge of rust-lang#124516 - oli-obk:taint_const_eval, r=RalfJung Allow monomorphization time const eval failures if the cause is a type layout issue r? `@RalfJung` fixes rust-lang#124348
auto-reduced (treereduce-rust):
original code
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: