Don't use item name to look up associated item from trait item by compiler-errors · Pull Request #140278 · rust-lang/rust (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note on item ordering: RPITITs are typically last in this list, so we typically do not encounter RPITITs here (and thus, it's harder to reproduce this ICE).
However, when we have a macro, the identifier of the macro wasn't being adjusted, so although it had the same Symbol
, it has a different span and thus identifier equality works a bit differently. So we fall through the assoc item list to the RPITITs, and try to compute their item names and ICE.