Evaluate Unevaluated const inside Const::Ty in valtree conversion#156669
Evaluate Unevaluated const inside Const::Ty in valtree conversion#156669cijiugechu wants to merge 1 commit into
Const::Ty in valtree conversion#156669Conversation
|
r? @folkertdev rustbot has assigned @folkertdev. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
This looks OK to me given that it's only used for better diagnostics right now, but probably someone from wg-const-eval should look at it. r? wg-const-eval |
|
☔ The latest upstream changes (presumably #157094) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r? @BoxyUwU I feel like we vaguely shouldn't have unevaluated type system consts in the MIR body, but maybe Boxy has a better idea of what's going on |
|
|
|
we should in theory for have unevaluateds in MIR bodies but they should all be rigid (i.e. it should not be possible to further normalize/evaluate them). So I think it definitely makes sense to not be ICEing in rustc_mir_build here, but instead of calling The If it does turn out that it's expected to get unevaluated consts there then the same thing about |
|
@rustbot author |
Handle
ConstKind::UnevaluatedinsideConst::Ty.Closes #156410