Open
Description
Refiling...
For any highly generic library (
futures
is the one that I hit this issue with a lot) it's easy for types to become unreadable very fast. Evenimpl Trait
only helps so much (we're usingBox<Trait>
a lot in our code soimpl Trait
won't get us better error messages). A good solution would be torustfmt
-style pretty-print types in the error messages so that it's possible for humans to parse them. It might be useful to make this optional or otherwise limit the maximum size because I can imagine this causingdiesel
's types to take hundreds of lines to print. Probably some kind of overrideable heuristic would be useful to implement here.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Compiler frontend (errors, parsing and HIR)Category: An issue proposing an enhancement or a PR with one.Diagnostics: Issues that affect all diagnostics, or relate to the diagnostic machinery itself.Relevant to the compiler team, which will review and decide on the PR/issue.Working group: Diagnostics