-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
"cannot specify the --color
option with --json
" without --color being passed
#65558
Labels
A-driver
Area: rustc_driver that ties everything together into the `rustc` compiler
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
SimonSapin
added
A-driver
Area: rustc_driver that ties everything together into the `rustc` compiler
C-bug
Category: This is a bug.
labels
Oct 18, 2019
jonas-schievink
added
the
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
label
Oct 18, 2019
Sorry for the noise! I managed to reproduce in a local docker container (in order to copy CI’s config exactly), the problem turned out to be using an old version of sccache: mozilla/sccache#488 |
SimonSapin
added a commit
to servo/servo
that referenced
this issue
Oct 18, 2019
This picks up mozilla/sccache#488, which fixes running Servo’s unit tests with Rust nightly-2019-10-17: rust-lang/rust#65558 https://tools.taskcluster.net/groups/Mh6AMaNkTj-dw0hfmekTYw/tasks/AO0ydhMpTZyBa5HesI1ldw/runs/0/logs/public%2Flogs%2Flive.log#L1443
bors-servo
pushed a commit
to servo/servo
that referenced
this issue
Oct 18, 2019
Upgrade sccache to 0.2.12 This picks up mozilla/sccache#488, which fixes running Servo’s unit tests with Rust nightly-2019-10-17: rust-lang/rust#65558 https://tools.taskcluster.net/groups/Mh6AMaNkTj-dw0hfmekTYw/tasks/AO0ydhMpTZyBa5HesI1ldw/runs/0/logs/public%2Flogs%2Flive.log#L1443
SimonSapin
added a commit
to servo/servo
that referenced
this issue
Oct 21, 2019
This picks up mozilla/sccache#488, which fixes running Servo’s unit tests with Rust nightly-2019-10-17: rust-lang/rust#65558 https://tools.taskcluster.net/groups/Mh6AMaNkTj-dw0hfmekTYw/tasks/AO0ydhMpTZyBa5HesI1ldw/runs/0/logs/public%2Flogs%2Flive.log#L1443
bors-servo
pushed a commit
to servo/servo
that referenced
this issue
Oct 21, 2019
Upgrade sccache to 0.2.12 This picks up mozilla/sccache#488, which fixes running Servo’s unit tests with Rust nightly-2019-10-17: rust-lang/rust#65558 https://tools.taskcluster.net/groups/Mh6AMaNkTj-dw0hfmekTYw/tasks/AO0ydhMpTZyBa5HesI1ldw/runs/0/logs/public%2Flogs%2Flive.log#L1443
SimonSapin
added a commit
to servo/servo
that referenced
this issue
Oct 21, 2019
This picks up mozilla/sccache#488, which fixes running Servo’s unit tests with Rust nightly-2019-10-17: rust-lang/rust#65558 https://tools.taskcluster.net/groups/Mh6AMaNkTj-dw0hfmekTYw/tasks/AO0ydhMpTZyBa5HesI1ldw/runs/0/logs/public%2Flogs%2Flive.log#L1443
bors-servo
pushed a commit
to servo/servo
that referenced
this issue
Oct 21, 2019
Upgrade sccache to 0.2.12 This picks up mozilla/sccache#488, which fixes running Servo’s unit tests with Rust nightly-2019-10-17: rust-lang/rust#65558 https://tools.taskcluster.net/groups/Mh6AMaNkTj-dw0hfmekTYw/tasks/AO0ydhMpTZyBa5HesI1ldw/runs/0/logs/public%2Flogs%2Flive.log#L1443
bors-servo
pushed a commit
to servo/servo
that referenced
this issue
Oct 22, 2019
Upgrade sccache to 0.2.12 This picks up mozilla/sccache#488, which fixes running Servo’s unit tests with Rust nightly-2019-10-17: rust-lang/rust#65558 https://tools.taskcluster.net/groups/Mh6AMaNkTj-dw0hfmekTYw/tasks/AO0ydhMpTZyBa5HesI1ldw/runs/0/logs/public%2Flogs%2Flive.log#L1443
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-driver
Area: rustc_driver that ties everything together into the `rustc` compiler
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Running Servo’s unit tests started failing on CI a couple nightlies ago. A customized CI task to add
-j1
shows:https://tools.taskcluster.net/groups/Pl5QK7YnS3eldtQ6EwR09A/tasks/Pl5QK7YnS3eldtQ6EwR09A/runs/0/logs/public%2Flogs%2Flive.log
The error message appears to come from here:
rust/src/librustc/session/config.rs
Lines 1966 to 1971 in da59656
Reading through the call sites of this function I quickly reach
env::args_os()
inrustc_driver::main
, so I don’t understand how this message could be emitted while--color
is not actually present in the command-line arguments given to rustc by Cargo.I have also not managed to reproduce this outside of the CI environment.
I don’t have an exact regression range, but this started happening a couple days ago which is close to when #65445 landed. This PR updated Cargo, including rust-lang/cargo#7450 whose description mentions using rustc’s JSON output more. I suspect this is what caused the issue to be uncovered, but it looks like the root cause is in rustc’s argument parsing.
The text was updated successfully, but these errors were encountered: