-
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
derive Debug on structures? #302
Comments
In #159 (comment), @alexcrichton said
I expect this will apply to |
Interesting. A couple of data points:
|
Oh this was actually something I forgot to implement. The intention of the original RFC was:
That optional feature just hasn't been implemented yet. Shouldn't be too hard to do though! |
Giving this a shot. Two issues so far:
|
tests: Disable test_sigwait on apple platforms After rust-lang#292 was merged, this flakiness remained. I observe it only on Darwin, hence the targetted disabling until there's been more investigation.
I just ran into this again today with both So in the 1.5 years since this issue was opened a lot has changed. With compile times actively seeing work over every release cycle and also the Rust API Guidelines specifying that many derives should be added for structs, I'd like to revisit this. I'll write up an RFC this week and we'll see where we get! |
I've now filed a PR for this RFC: rust-lang/rfcs#2235 |
The RFC was partially implemented, closing this in favor of the tracking issue: rust-lang/rust#57715 |
It's my understanding that implementing
Debug
on structures is generally a Good Thing. Types provided by this library do not implementDebug
. Is this by policy, or by omission?(I tried some quick messing around with the
s!
macro and failed to persuade it to#[derive(Debug)]
. But I suppose that this ought to be possible, if it is indeed desirable).The text was updated successfully, but these errors were encountered: