Skip to content

Long error diagnostics should not show compiletest/highlighting metadata in text mode #33405

Closed
@Manishearth

Description

@Manishearth

e.g.

$ rustc --explain E0413
A declaration shadows an enum variant or unit-like struct in scope. Example of
erroneous code:

```compile_fail
struct Foo;
...

Stuff like ````compile_fail` shouldn't show, just the backticks.

cc @GuillaumeGomez @steveklabnik

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions