-
Notifications
You must be signed in to change notification settings - Fork 389
Actually pass through the request for --color=always #2245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Basically create any test that emits a diagnostic. Then add |
I did this:
But what I get out of
|
Argh this PR doesn't cover doctests. I'll look into that tomorrow. |
The change is in cargo-miri, which is literally not called by the compiletest suite. So it is impossible to test this from the compiletest suite. |
46fe8b5
to
bc5b4b2
Compare
FWIW I'd be fine with landing this as-is (assuming you tested it locally), and figuring out a way to test this later. |
Yea, I have plans for testing cargo miri, just so that we have a reasonable way to test with dependencies |
So @saethlin could you resolve the last comment and mark this as ready? We can do the test part later. And rustdoc, too -- this is still clearly an improvement. |
That's not Miri/rustc output, that is output from the application running inside Miri.
|
Hunh. To get fully colored output from But for cargo-miri, |
Miri blocks the But anyway that seems orthogonal to this PR? |
🤷 perhaps it is. I'm just trying to get colored output from cargo-miri without lying to the process that it's connected to a TTY. I'll poke around this later. |
@bors r+ |
📌 Commit fed0e16 has been approved by |
☀️ Test successful - checks-actions |
FWIW these are not green even when running this on a tty. So that is a different problem. And it's probably due to Miri removing the |
#2243 actually doesn't work 😂
The suggestion to split on
,
was good butarg
is actually the whole--json=diagnostic-rendered-ansi,artifacts,future-incompat
, and of course I didn't test that change locally and we have no test for this in CI.Therefore, I would like some guidance on making a test for this because I'm going to rely on this working.