Skip to content

Get rid of redundancy in type errors #17823

Closed
@kmcallister

Description

@kmcallister
error: mismatched types: expected `uint`, found `int` (expected uint, found int)  

I guess the parenthetical tells you about the outermost type constructors of the mismatch, e.g. "expected uint, found &-ptr". But in many cases it's redundant. We should get rid of the parenthetical in cases where it's useless, and then add some explanatory text about what it's trying to tell you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions