-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Compiler warning on 1.16 with CARGO_INCREMENTAL #3835
Comments
CARGO_INCREMENTAL is currently a nightly-only feature, so this is expected. |
Oops, sorry |
I think this is a bug, because I have expected |
Does Cargo know if it's using a nightly version of Rust? |
Currently, no. It knows the version of rustc (as a string) but it doesn't attempt to parse the string |
Yeah, this is quite disturbing when you have some projects using nightly, and some that are stable/beta. I have |
@jonhoo the intention here was that |
Hmm, I don't know of anyone who explicitly types out |
I do! I don't like it though... In any case, for anyone curious to change this (and that could be you @jonhoo!) some helpful pointers might be:
|
@alexcrichton sure, I'll take a look. Do you think it'd be better to only allow |
PR filed in #4000. |
Only pass -Zincremental to nightly rustc. `-Z` can only be used on nightly builds; other builds complain loudly. Since incremental builds only work on nightly anyway, we should silently ignore `CARGO_INCREMENTAL` on anything but nightly. This allows users to always have `CARGO_INCREMENTAL` set without getting unexpected errors on stable/beta builds. Fixes #3835.
Steps:
CARGO_INCREMENTAL=1 cargo build
with rust 1.16Seems to be because of
-Zincremental=<path>
.The text was updated successfully, but these errors were encountered: