-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Deflect does not currently have any special handling of collection types (e.g., HashMap, Vec, etc.), so its Debug renderings of these types is very poor. Implementing custom reflections for these types is daunting.
Instead, we should use the Debug impls of types when available, but how can we know the address of <T as Debug>::fmt? On zulip, @bjorn3 suggests:
If it is already codegened, it may be possibly to get the name of this function using the symbol mangling rules and then dlsym it.
Let's give this a shot. Some of the debug impl names are hidden and so aren't returned by dlsym. They are present in the ELF's symbol table though!
Metadata
Metadata
Assignees
Labels
No labels