Fix ICE of getting item name from RPITIT - #162071
Conversation
|
r? @BoxyUwU rustbot has assigned @BoxyUwU. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| match (alias1.kind, alias2.kind) { | ||
| (ty::Projection { def_id: def_id1 }, ty::Projection { def_id: def_id2 }) => { | ||
| (ty::Projection { def_id: def_id1 }, ty::Projection { def_id: def_id2 }) | ||
| if !self.tcx.is_impl_trait_in_trait(def_id1) |
There was a problem hiding this comment.
can you add a comment about why this codepath doesn't work for RPITITs
ab1eb7f to
2da3240
Compare
|
@bors r+ |
| LL | | true => T::create(), | ||
| | | ----------- this is found to be of type `impl Form` |
There was a problem hiding this comment.
(Thinking out loud) This is a tiny papercut, where we use the name of the opaque type that <T as Parameter>::create() returns, which happens to coincide with the return type of forms_at_phase, obscuring what's happening slightly.
…uwer Rollup of 11 pull requests Successful merges: - #151618 (rustdoc: add `--print` option) - #161287 (Update `icu_list` dependency to 2.3) - #161767 (change DEFAULT_STACK_SIZE to be 32MB on s390x) - #161968 (Diverse offload fixes) - #161971 (Remove -Zsaturating-float-casts flag) - #162071 (Fix ICE of getting item name from RPITIT) - #161209 (Rework `next_power_of_two` to always be `1 << …`) - #162073 (Change some `Infallible` to `!` in std) - #162086 (Remove `gate_check` from `AttributeStability::Unstable`) - #162102 (`alloc` crate: shrink undocumented `unsafe` blocks) - #162110 (make it clear that Range cannot represent arbitrary ranges)
|
beta backport approved as per compiler team on Zulip. A backport PR will be authored by the release team at the end of the current development cycle. Backport labels are handled by them. |
[beta] backports - Avoid arming the Windows TLS destructor guard in fibers #161451 - (partial) stdarch subtree update #161558 - Check to ensure we're running against the correct LLVM version #161788 - Make the LLVM version mismatch ICE a fatal error #162034 - Revert "Add `rustc_test_entrypoint_marker`" #161931 - Fix ICE of getting name from RPITIT #162071 - Update LLVM submodule #162133 - Revert "Implement Debug for C-like enums with a concatenated string" #162164 r? me
Fixes #161915
RPITIT projections use anonymous associated type and have no item name.