-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add consts for AssocConst
w/ body & ignore regions in is_satisfied_from_param_env
#106965
Conversation
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