Skip to content

Deduplicate compiler messages. #9104

Closed
@ehuss

Description

@ehuss

Describe the problem you are trying to solve

In some cases, Cargo builds the same code in parallel. For example, cargo test will build the library as a test, and concurrently as an rlib to link for doctests or integration tests. This can cause confusion when compiler messages appear twice.

Describe the solution you'd like

Cargo should track which messages have been generated, and remove duplicates.

Notes

There are some challenges with how this will be implemented. For example, rustc emits some summary messages that can be difficult to deduplicate correctly, particularly the warning count warning: 1 warning emitted. The implementation will need to carefully consider these edge cases.

This may also need to consider displaying a summary of deduplicated (hidden) messages, although I am less certain about that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-console-outputArea: Terminal output, colors, progress bar, etc.A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions