Skip to content

Support having a generic writer instead of a termcolor StandardStream - #4178

Merged
bors merged 1 commit into
rust-lang:masterfrom
nrc:shell
Jun 17, 2017
Merged

bors merged 1 commit into
rust-lang:masterfrom
nrc:shell

Conversation

@nrc

@nrc nrc commented Jun 16, 2017

Copy link
Copy Markdown
Member

This is requied by the RLS (and presumably any other client who wants to use Cargo as a lib and redirect output)

r? @alexcrichton

@alexcrichton alexcrichton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Cargo will print to stdout (via println!) in a location or two but they're all relatively minor (like cargo install --list) that I think rls and other clients won't hit.

Comment thread src/cargo/core/shell.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This'll cause panics when used from the rls, right?

Comment thread src/cargo/core/shell.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(same as above)

This is requied by the RLS (and presumably any other client who wants to use Cargo as a lib and redirect output)
@nrc

nrc commented Jun 17, 2017

Copy link
Copy Markdown
Member Author

Whoops, sorry about that. Now with actual implementations.

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+

@bors

bors commented Jun 17, 2017

Copy link
Copy Markdown
Contributor

📌 Commit 6f45cb6 has been approved by alexcrichton

@bors

bors commented Jun 17, 2017

Copy link
Copy Markdown
Contributor

⌛ Testing commit 6f45cb6 with merge c339214...

bors added a commit that referenced this pull request Jun 17, 2017
Support having a generic writer instead of a termcolor StandardStream

This is requied by the RLS (and presumably any other client who wants to use Cargo as a lib and redirect output)

r? @alexcrichton
@bors

bors commented Jun 17, 2017

Copy link
Copy Markdown
Contributor

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing c339214 to master...

@bors
bors merged commit 6f45cb6 into rust-lang:master Jun 17, 2017
@ehuss ehuss added this to the 1.20.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants