Skip to content
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

Debug impls for non-distribution public types #135

Merged
merged 1 commit into from
Jan 17, 2017

Conversation

jacwah
Copy link
Contributor

@jacwah jacwah commented Jan 15, 2017

Solution for #130.

Changes:

  • #[derive(Debug)] for public types where possible.
  • Opaque Type {} debug for remaining public types (OsRng, IsaacRng and Isaac64Rng).
  • #![deny(missing_debug_implementations)] on crate.

There are no implementations for the distributions module as there is already a PR for that. I added a temporary #![allow(missing_debug_implementations)] until it is merged.

I figured most types will just need a derive. For those that don't, this can be a good discussion starter. Personally, I'm not sure what to do with the types where derive isn't possible. I don't see any point in exposing 512+ ints for ISAAC, so perhaps IsaacRng {} is the best we can do.

@jacwah
Copy link
Contributor Author

jacwah commented Jan 17, 2017

There seems to be a problem with the AppVeyor build. It first said "In queue" and has now apparently been "cancelled by user." Maybe @alexcrichton can help?

@alexcrichton
Copy link
Contributor

Yes that's ok, it's just spurious. Thanks!

@alexcrichton alexcrichton merged commit b2db217 into rust-random:master Jan 17, 2017
pitdicker pushed a commit to pitdicker/rand that referenced this pull request Apr 4, 2018
Debug impls for non-distribution public types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants