DWARF does not mention Self type
1b642f7
Opened by Tom Tromey at
I wrote a simple test program using the Self type:
struct Something(i32);
impl Something {
fn x(self: &Self) -> i32 { self.0 }
}
fn main() {
let y = Something(32);
let z = y.x();
()
}
When I examine the resulting DWARF, I don't see any mention of Self. I think it should be emitted as a typedef pointing to Something.
Triage: no changes I'm aware of
Steve Klabnik at 2019-12-25 16:36:19
Visited during wg-debugging triage. We validated that currently no information about a
Selftype is generated in debuginfo. Seems like a nice enhancement but not required for debugging to work well.Wesley Wiser at 2023-03-20 14:05:39