-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix usage with rustc-dep-of-std
#4158
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
Merged
Merged
Conversation
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
Collaborator
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use |
2bc429b to
eaf8c21
Compare
Contributor
Author
|
I'm going to wait for #4161 and then do the remaining fixes on top of that. |
eee0977 to
b1a7f91
Compare
Contributor
|
☔ The latest upstream changes (presumably #4161) made this pull request unmergeable. Please resolve the merge conflicts. |
214a5f0 to
233684f
Compare
6087fbc to
cfa7ce0
Compare
cfa7ce0 to
f3b5b4c
Compare
Since [1] we use derive macros rather than manually implementing `Clone` and `Copy`. However, this caused the build in `std` to start failing since the `core` prelude is not available. This provides the derive macros as well as `derive` itself. Resolve this by using complete paths. Additionally allow `internal_features` to suppress the warning using `link_cfg`, and change to using global paths for all uses of `core`. Link: rust-lang#4038 [1]
Add a test that the crate builds correctly with the configuration that is used in `std`.
1d7caa7 to
9839a9a
Compare
tgross35
added a commit
to tgross35/rust-libc
that referenced
this pull request
Nov 28, 2024
Since [1] we use derive macros rather than manually implementing `Clone` and `Copy`. However, this caused the build in `std` to start failing since the `core` prelude is not available. This provides the derive macros as well as `derive` itself. Resolve this by using complete paths. Additionally allow `internal_features` to suppress the warning using `link_cfg`, and change to using global paths for all uses of `core`. Link: rust-lang#4038 [1] (backport <rust-lang#4158>) (cherry picked from commit d69ad56)
tgross35
added a commit
to tgross35/rust-libc
that referenced
this pull request
Nov 28, 2024
Add a test that the crate builds correctly with the configuration that is used in `std`. (backport <rust-lang#4158>) (cherry picked from commit 9839a9a)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
O-android
O-arm
O-bsd
O-dragonfly
O-gnu
O-illumos
O-linux
O-linux-like
O-macos
O-mips
O-musl
O-newlib
O-redox
O-riscv
O-solarish
O-sparc
O-unix
O-wasi
O-windows
O-x86
S-waiting-on-review
stable-applied
This PR has been cherry-picked to libc's stable release branch
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.
Since #4038 we use derive macros rather than manually implementing
Cloneand
Copy. However, this caused the build instdto start failing since thecoreprelude is not available. This provides the derive macros as well asderiveitself.Resolve this by using complete paths. Additionally allow
internal_featuresto suppress the warning usinglink_cfg.Includes a test that verifies build with
rustc-dep-of-stdenabled.