Skip to content
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

Changing RUSTFLAGS to use JSON errors causes whole rebuild of a project #3095

Closed
White-Oak opened this issue Sep 15, 2016 · 2 comments
Closed

Comments

@White-Oak
Copy link

I beleive it's intended, but we use RUSTFLAGS to provide --error-format=json to rustc to use JSON errors in a linter (issue AtomLinter/linter-rust#77), so whenever I switch between terminal and editor, cargo rebuilds the whole project, which can take a long time.

I've heard that JSON errors are to be in stable soon -- will there be some kind of cargo switch to avoid changing RUSTFLAGS to avoid the rebuilding of a project?

@matklad
Copy link
Member

matklad commented Sep 15, 2016

  • will there be some kind of cargo switch to avoid changing RUSTFLAGS to avoid the rebuilding of a project?

Yes it will: #3000!

@alexcrichton
Copy link
Member

This is indeed a problem! And intended to be solved with #3000, so closing in favor of that.

(in the sense that this is intended behavior today but the intended implementation strategy is #3000)

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

No branches or pull requests

3 participants