Prevent mixing deprecated check-cfg syntax with new one#117612
Closed
Urgau wants to merge 3 commits intorust-lang:masterfrom
Closed
Prevent mixing deprecated check-cfg syntax with new one#117612Urgau wants to merge 3 commits intorust-lang:masterfrom
Urgau wants to merge 3 commits intorust-lang:masterfrom
Conversation
Collaborator
|
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
660ffa0 to
0383ca3
Compare
This comment has been minimized.
This comment has been minimized.
This is required by the libc crate since it uses the new syntax as soon as it detects rustc version 1.75 or above, which is the case when building with stage 1 and above.
0383ca3 to
12a3873
Compare
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Member
Author
Merged
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Nov 5, 2023
…lacrum Bump libc dependency This bumps the `libc` crate to version 0.2.150 which includes rust-lang/libc#3410 which will help remove the old and deprecated check-cfg syntax. Extracted from rust-lang#117612
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Nov 7, 2023
…lacrum Bump libc dependency This bumps the `libc` crate to version 0.2.150 which includes rust-lang/libc#3410 which will help remove the old and deprecated check-cfg syntax. Extracted from rust-lang#117612
Member
Author
|
I don't think this is is gonna work out before the next Cargo bump, at which point we will remove the old syntax, rendering this PR useless. Closing for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR puts an hard error when trying to mix the deprecated check-cfg syntax with new one, doing that required updating the
libccrate crate to version 0.2.150 (this also means making use of the new syntax when building stage 2 and above aslibcisn't granular enough).This was previously attempted in #117025 but had to be striped out due to the
libccrate not being compliant.While preventing the mixing isn't necessary per se, it will help make sure that we are going to be ready when removing the deprecated syntax.
r? @petrochenkov