Skip to content

Some rustdoc diagnostic colors are missing #6045

@ehuss

Description

@ehuss

As of #5995, some error messages from rustdoc are no longer getting colored.

Example code:

/// [BadLink]
/// ```
/// \
/// ```
pub fn f() {}

The result I get on nightly:
image

The result of cargo just before #5995:
image

Notice that the warning emitted by rustdoc is still colored, but the error: unknown start of token line caused by the backslash is not! So strange!

Tested on Windows and Mac.

cc @kennytm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions