Emit ForbiddenBound fatally if meeting complex bounds by mu001999 · Pull Request #149728 · rust-lang/rust (original) (raw)
Bounds in binders are denied, hir items won't contain and index them. But nested items in the bounds will still be lowered to hir. And their parents, i.e., the block in bounds is not in hir. So that ICE happens when error handling requires visiting hir parents.
I think fixing this by aborting immediately when meeting complex bounds in binders is good enough.
Fixes #149695