Skip to content

Could we smartly elide some info from types in error messages? #43354

Closed
@nrc

Description

@nrc

If there is a type error where the outer types don't match (e.g., Foo<T> != Bar<U>) we could elide the un-important type info (e.g., report Foo<...> != Bar<...>. This would be effective where there are very long, complex types such as iterators or closures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions