Add consts for AssocConst w/ body & ignore regions in is_satisfied_from_param_env#106965
Add consts for AssocConst w/ body & ignore regions in is_satisfied_from_param_env#106965JulianKnodt wants to merge 2 commits intorust-lang:masterfrom
AssocConst w/ body & ignore regions in is_satisfied_from_param_env#106965Conversation
|
I don't think these changes actually fix the problem. There's no infer var in the linked issue, we're just unable to evaluate a |
|
Yes, but I'm not sure whether this was ever intended for this to compile or not. I went back through a few nightly builds over the past 2 years, and it seems it's intermixed with ICE-ing, compiling, and not compiling. Do we intend to handle |
|
I am not sure what you mean by treating an assoc const as an |
|
Right, but I was wondering whether we should always treat Overall, I think I'm just not sure what the intended output behavior is. Should this compile at all? |
|
☔ The latest upstream changes (presumably #108340) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I think this is best owned by T-types rater than T-compiler @rustbot label: +T-types -T-compiler |
|
@rustbot author Once you sort the conflicts, type in |
|
I'm probably just going to close this, as I think how I thought this should be resolved is different from what the maintainers expected, and I don't really know how to proceed further. Thanks for the reminder! |
Add in the ability to unify associated consts and ignore regions when unifying consts.
Attempting to only ignore regions lead to an ice, so I had to add that the associated const would be unified with it.
Handles one of the minimized test cases in #105821, but not sure if it fixes everything.
Fixes #106423 (but I think it may break the compilation of some crates, as I'm not sure if we were previously permitting that behavior?)
r? @BoxyUwU