diff options
| author | bors <bors@rust-lang.org> | 2015-02-04 08:47:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-04 08:47:27 +0000 |
| commit | c3e1f77291803d26b2897c0953dce5cf7e70ab65 (patch) | |
| tree | 83eb70740cacdf3d395976e85fed0b19c35dcc6e /src/libsyntax | |
| parent | d6c15d9b2daecdbe32eca894bda40c424798f5a0 (diff) | |
| parent | df1ac7aa63ea89a067c57663eab035f7b83f6933 (diff) | |
| download | rust-c3e1f77291803d26b2897c0953dce5cf7e70ab65.tar.gz rust-c3e1f77291803d26b2897c0953dce5cf7e70ab65.zip | |
Auto merge of #21892 - huonw:deprecate-rand, r=alexcrichton
Use [`rand`](https://crates.io/crates/rand) and [`derive_rand`](https://crates.io/crates/derive_rand) from crates.io. [breaking-change]
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/deriving/rand.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/ext/deriving/rand.rs b/src/libsyntax/ext/deriving/rand.rs index 739c73a70b0..0b57e7e7c8e 100644 --- a/src/libsyntax/ext/deriving/rand.rs +++ b/src/libsyntax/ext/deriving/rand.rs @@ -24,6 +24,10 @@ 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]` from \ + `rand_macros` on crates.io"); + let trait_def = TraitDef { span: span, attributes: Vec::new(), |
