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

some benefit from "cargo check"? #51

Closed
ghost opened this issue Mar 16, 2017 · 7 comments
Closed

some benefit from "cargo check"? #51

ghost opened this issue Mar 16, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented Mar 16, 2017

Is possible to improve flycheck-rust with the introduction of the command cargo check on rust 1.16?

@ghost
Copy link
Author

ghost commented Mar 16, 2017

that would be awesome

@fmdkdd
Copy link
Member

fmdkdd commented Mar 17, 2017

Thanks for reminding me of this.

We already pass -Z no-trans to rustc in Flycheck to avoid compiling binaries and taking too much time. I suspect we won't see a significant improvement by using cargo check; the only benefit would be to support some advanced uses that -Z no-trans did not.

@fmdkdd
Copy link
Member

fmdkdd commented Mar 17, 2017

I just tested it, and cargo check cannot currently check code inside #[cfg(test], so that would be a regression in functionality. I think we better to stick to -Z no-trans until this is resolved at least.

@fmdkdd fmdkdd closed this as completed Mar 17, 2017
@ghost
Copy link
Author

ghost commented Mar 17, 2017

Thanks, then I think we will wait :)

@fmdkdd
Copy link
Member

fmdkdd commented May 16, 2017

Update: using -Z flags on stable may soon be an error, rather than a warning. Thus, we will then have to migrate to cargo check.

However, at the moment cargo check still does not check unit tests, but there is an ongoing PR.

@thejefflarson
Copy link

Hi, it is now an error in the rust version released today.

I'll hold off on using 1.19 for now, as it looks like the upstream PR is still not merged rust-lang/rust#41751 but it looks like a tricky one to fix without that. Thanks for flycheck-rust it is great!

@fmdkdd
Copy link
Member

fmdkdd commented Jul 20, 2017

Argh! Thanks for the heads-up. Looks like we'll have to use cargo check without unit tests then. I'll try to make a PR tomorrow.

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

2 participants