Skip to content

message-format=short output is unnecessarily hard to read #63835

Closed
@fintelia

Description

@fintelia

The --message-format=short option is a very convenient way to get a condensed error output from cargo when the same/similar errors occur at many places in a code base. Unfortunately, the current output with this option uses bold/color to place the emphasis on the wrong parts of each output line, making it harder to read.

For instance, consider the screenshot below. The same "trait objects without an explicit `dyn` are deprecated" is repeated constantly, yet is bold every single time. By contrast the unique parts of each line -- the filename and line/column numbers -- are the only things that aren't bold.

Screenshot from 2019-08-23 16-45-48

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