-
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
Gracefully fail to resolve associated items instead of delay_span_bug
.
#96806
Conversation
This should affect the ICEs in https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Aopen+Encountered+errors+resolving+bounds+outside+of+type+inference Please add tests for them. This also likely affects all tests in https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Aopen+Encountered+error+%60Unimplemented%60+selecting+during+codegen That's a lot of ICE issues (21 right now). While in theory we could just merge this PR and let glacier handle the follow up, it seems like some of them may actually end up passing compilation with this PR, and we should be careful and check if that is intended. |
@bors r+ |
📌 Commit 931e7d61395b40f63ff5b617af97f0362ae36a1c has been approved by |
⌛ Testing commit 931e7d61395b40f63ff5b617af97f0362ae36a1c with merge b202fd73bd2be73dc84df779c173596bd365d936... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
r=me with rebase+bless |
931e7d6
to
dacf118
Compare
@bors r=oli-obk |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 931e7d61395b40f63ff5b617af97f0362ae36a1c has been approved by |
@bors r- |
@bors r=oli-obk |
📌 Commit dacf118 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (cb9cb4d): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
…i-obk Add tests for rust-lang#96806 I messed up the rebase in rust-lang#96806. I took the opportunity to add an extra mir-opt test from rust-lang#91743. r? `@oli-obk`
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#95896 (Note the contacts for the nvptx64 target(s)) - rust-lang#96860 (openbsd: convert futex timeout managment to Timespec usage) - rust-lang#96939 (Fix settings page CSS) - rust-lang#96941 (update graphviz links) - rust-lang#96968 (Add tests for rust-lang#96806) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
From glacier: they all now compile without errors, in addition to the ones already closed by the PR the following no longer ICE |
codegen_fulfill_obligation
is used during instance resolution for trait items.In case of insufficient normalization issues during MIR inlining, it caused ICEs.
It's better to gracefully refuse to resolve the associated item, and let the caller decide what to do with this.
Split from #91743
Closes #69121
Closes #73021
Closes #88599
Closes #93008
Closes #93248
Closes #94680
Closes #96170
r? @oli-obk