-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
debuginfo: Make DW_TAG_subroutine DIEs for inherent methods children of their self-type DIEs. #33358
Conversation
r? @jroesch (rust_highfive has picked a reviewer for you, use r? to override) |
index: cx.tcx() | ||
.def_key(instance.def) | ||
.parent | ||
.expect("get_namespace_and_span_for_item: missing parent?") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be get_containing_scope_and_span
instead.
☔ The latest upstream changes (presumably #33425) made this pull request unmergeable. Please resolve the merge conflicts. |
…of their self-type DIEs.
3127fc4
to
499605c
Compare
Rebased and fixed the error kindly pointed out by @sanxiyn. |
@bors r+ |
📌 Commit 499605c has been approved by |
debuginfo: Make DW_TAG_subroutine DIEs for inherent methods children of their self-type DIEs. Fixes #33192
Do not emit "class method" debuginfo for types that are not DICompositeType. Fixes #35991 by restricting the "class method" debuginfo sugar from #33358 to structs and enums only. r? @michaelwoerister
Fixes #33192