Do not ICE when failing to fulfill known obligations due to normalization#92943
Do not ICE when failing to fulfill known obligations due to normalization#92943cjgillot wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
Isn't this potentially unsound, if the errors produced were legitimate? |
|
Overzealous normalization may "lose" some bounds. In the test, Normally, all the bounds would have been proven by trait inference, hence this is a @Aaron1011, I agree. This PR can be reframed into the following question: how to separate legitimate from illegitimate errors, to make all this sound? |
|
This doesn't seem correct - especially not in isolation. The test passes on current nightly; is this expected? If there are in fact errors that pop up in #91743 for this test, then that's curious. I'd like to know exactly what the errors are. |
|
The test only ICEs with MIR inlining. See godbolt for the error: |
|
That looks like a bug in fulfillment (maybe something with normalization?) - maybe inlining isnt updating the ParamEnv correctly? |
|
I...think...this could be a variation of #91985. We have |
|
☔ The latest upstream changes (presumably #93498) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I'm going to go ahead an close this. This isn't really the right approach for this. I have a branch that might fix this, but has some other things wrong that needs to be thought about. Might be worth checking out. jackh726@18042d9 |
Part of #91743
r? @jackh726