Skip to content

cargo miri: can't disable colors #2277

@matthiaskrgr

Description

@matthiaskrgr

It seems that since the last miri sync, stdout/stderr is printed with colors unconditionally?

This broke a bunch of icemaker regexes which fetch UB/ICEs from miri stdout and produced a couple of funny diffs:

-    "error_reason": "error: Undefined Behavior: type validation failed at .value: encountered uninitialized raw pointer",
+    "error_reason": "\u001b[0m   \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m= \u001b[0m\u001b[0m\u001b[1mhelp\u001b[0m\u001b[0m: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior\u001b[0m",

I tried to disable colors but not even cargo --color=never miri run --color=never does work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions