-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove extra traits #3692
base: main
Are you sure you want to change the base?
Remove extra traits #3692
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
@@ -140,9 +139,6 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) { | |||
} else if line.starts_with("type ") && !in_impl { | |||
State::Typedefs | |||
} else if line.starts_with("s! {") { | |||
s_macros += 1; |
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.
I had to allow multiple s!
macros in one module because the s_no_extra_traits!
macro no longer exists.
☔ The latest upstream changes (presumably #3617) made this pull request unmergeable. Please resolve the merge conflicts. |
Hi, I am the one who is working on the project to modernize the libc crate (Related: OSPP Idea OSPP Zulip). |
Hi, would you like to show me what these trait impl would look like in libc 1.0, this is not covered in the tracking issue and that OSPP page. Nix, as a big consumer of the libc crate, uses them a lot: nix-rust/nix#2468 |
As an alternative to getting rid of |
According to the "Trait implementations" section, I think |
This PR removes the
extra_traits
feature and all implementations ofEq
,Hash
, andDebug
as mentioned in #3248.The decision to remove
Debug
impls was left as an open question, but I've gone ahead and removed them here in the interest of maintainability and consistency.Closes #2700, #2064, #2816