-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Conversation
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"); |
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.
Has this crate not been pushed to rust-lang/rand
just yet? I see it on crates.io but not in git
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.
Whoops, pushed now.
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'm wondering if rand_macros
may be a better name...)
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.
Hm yeah, I might go with rand_macros
instead, but it's not super critical.
Use [`rand`](https://crates.io/crates/rand) and [`derive_rand`](https://crates.io/crates/derive_rand) from crates.io. [breaking-change]
💔 Test failed - auto-win-64-nopt-t |
@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]
@bors r=alexcrichton df1a |
Use [`rand`](https://crates.io/crates/rand) and [`derive_rand`](https://crates.io/crates/derive_rand) from crates.io. [breaking-change]
Use
rand
andderive_rand
from crates.io.[breaking-change]
As described in the RFC: rust-lang/rfcs#722 (comment)