diff options
| author | bors <bors@rust-lang.org> | 2014-09-22 23:50:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-22 23:50:30 +0000 |
| commit | 43fd619819b334b8548dca98797bd4c8078636cb (patch) | |
| tree | 5d0942d04d12717768a4bab5a2b608a53bf25e69 /src/liballoc | |
| parent | 4b5f4563bff67e2727befdb235314726849331a7 (diff) | |
| parent | d845857fd915a2044f74711db3b7e71146b35200 (diff) | |
| download | rust-43fd619819b334b8548dca98797bd4c8078636cb.tar.gz rust-43fd619819b334b8548dca98797bd4c8078636cb.zip | |
auto merge of #17286 : vberger/rust/deprecated_in_macros, r=aturon
Closes #17185. The stability lint will now check code generated by macro expansion. It will allow to detect : - arguments passed to macros using deprecated (and others) items - macro expansion generating code using deprecated items due to its arguments (hence the second commit, fixing such issue found in libcollections) Checking is still done at expansion, but it will also detect a macro explicitly using a deprecated item in its definition.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 0d9e4f0a1c2..39524ed547d 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -311,13 +311,13 @@ mod tests { task::spawn(proc() { let arc_v: Arc<Vec<int>> = rx.recv(); - assert_eq!(*arc_v.get(3), 4); + assert_eq!((*arc_v)[3], 4); }); tx.send(arc_v.clone()); - assert_eq!(*arc_v.get(2), 3); - assert_eq!(*arc_v.get(4), 5); + assert_eq!((*arc_v)[2], 3); + assert_eq!((*arc_v)[4], 5); info!("{:?}", arc_v); } |
