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

Use newtypes to get deprecation warnings for compatibility re-exports in 0.6 #507

Merged
merged 4 commits into from
Jun 13, 2018

Conversation

pitdicker
Copy link
Contributor

Rebased #502 for 0.6.

I want to make another PR to make the changes to JitterRng we discussed before. But this is just a basic fix to not get warnings, with no change in functionality (except using a clearly wrong timer in timer_stats). Still not sure why it suddenly started generating some warnings though.

use std::io::Read;

#[derive(Clone, Debug)]
#[deprecated(since="0.5.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The since bit is now wrong, sorry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someday I'll learn that doing things quickly always causes mistakes...

@dhardy dhardy merged commit fc9d82e into rust-random:master Jun 13, 2018
@pitdicker pitdicker deleted the deprecation_warnings_0.6 branch June 13, 2018 15:52
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