]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #96806 - cjgillot:codegen-fulfill-nice, r=oli-obk
authorbors <bors@rust-lang.org>
Wed, 11 May 2022 21:39:02 +0000 (21:39 +0000)
committerbors <bors@rust-lang.org>
Wed, 11 May 2022 21:39:02 +0000 (21:39 +0000)
commitcb9cb4d4e10366ea2ce13813fff26b90ab3fec1d
tree00f1c9cb1913239c0490df4422d1dfa4c38f37df
parent6dd68402c5d7da168f87d8551dd9aed1d8a21893
parentdacf1185cb9c6aa9bc9770c5202dce6c35d6604e
Auto merge of #96806 - cjgillot:codegen-fulfill-nice, r=oli-obk

Gracefully fail to resolve associated items instead of `delay_span_bug`.

`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 https://github.com/rust-lang/rust/pull/91743
Closes #69121
Closes #73021
Closes #88599
Closes #93008
Closes #93248
Closes #94680
Closes #96170
r? `@oli-obk`