-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
chore: emit rustc-check-cfg for nightly #9850
Conversation
@@ -211,7 +211,9 @@ fn copy_frameworks(dest_dir: &Path, frameworks: &[String]) -> Result<()> { | |||
// creates a cfg alias if `has_feature` is true. | |||
// `alias` must be a snake case string. | |||
fn cfg_alias(alias: &str, has_feature: bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we pretty much have this function on all crates, can you also update those? just search for cargo:rustc-cfg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure thing
is it okay to bump MSRV to 1.77? seems too soon even for beta |
Its not bumping the MSRV, since the old syntax style instructions will still be emitted as well |
ah my bad, didn't look carefully and thought we are replacing old syntax. You even wrote that in the PR description 🤦♂️ |
We must use |
The old
cargo:
instruction syntax has been deprecated with version 1.77 and newer features (such as thecheck-cfg
feature introduced in 1.79) require the new double coloncargo::
syntax.This change keeps the old syntax around since it is ignored on newer versions and still necessary for our MSRV policy.