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

Deprecate in-tree rand, std::rand and #[derive(Rand)]. #21892

Merged
merged 1 commit into from
Feb 4, 2015

Conversation

huonw
Copy link
Member

@huonw huonw commented Feb 3, 2015

Use rand and derive_rand from crates.io.

[breaking-change]

As described in the RFC: rust-lang/rfcs#722 (comment)

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -24,6 +24,9 @@ pub fn expand_deriving_rand<F>(cx: &mut ExtCtxt,
push: F) where
F: FnOnce(P<Item>),
{
cx.span_warn(span,
"`derive(Rand)` is deprecated in favour of `derive_rand` on crates.io");
Copy link
Member

Choose a reason for hiding this comment

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

Has this crate not been pushed to rust-lang/rand just yet? I see it on crates.io but not in git

Copy link
Member Author

Choose a reason for hiding this comment

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

Whoops, pushed now.

Copy link
Member Author

Choose a reason for hiding this comment

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

(I'm wondering if rand_macros may be a better name...)

Copy link
Member

Choose a reason for hiding this comment

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

Hm yeah, I might go with rand_macros instead, but it's not super critical.

@alexcrichton
Copy link
Member

@bors: r+ 7cd3494

bors added a commit that referenced this pull request Feb 3, 2015
@bors
Copy link
Contributor

bors commented Feb 3, 2015

⌛ Testing commit 7cd3494 with merge 77ce758...

@bors
Copy link
Contributor

bors commented Feb 3, 2015

💔 Test failed - auto-win-64-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

Use the crates.io crate `rand` (version 0.1 should be a drop in
replacement for `std::rand`) and `rand_macros` (`#[derive_Rand]` should
be a drop-in replacement).

[breaking-change]
@huonw
Copy link
Member Author

huonw commented Feb 4, 2015

@bors r=alexcrichton df1a

bors added a commit that referenced this pull request Feb 4, 2015
@bors
Copy link
Contributor

bors commented Feb 4, 2015

⌛ Testing commit df1ac7a with merge c3e1f77...

@bors bors merged commit df1ac7a into rust-lang:master Feb 4, 2015
@aturon aturon mentioned this pull request Feb 4, 2015
38 tasks
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.

5 participants