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/libcore | |
| 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/libcore')
| -rw-r--r-- | src/libcore/slice.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 5368cb44502..e53f354a97e 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -1062,11 +1062,11 @@ pub trait MutableCloneableSlice<T> { /// let mut dst = [0i, 0, 0]; /// let src = [1i, 2]; /// - /// assert!(dst.copy_from(src) == 2); + /// assert!(dst.clone_from_slice(src) == 2); /// assert!(dst == [1, 2, 0]); /// /// let src2 = [3i, 4, 5, 6]; - /// assert!(dst.copy_from(src2) == 3); + /// assert!(dst.clone_from_slice(src2) == 3); /// assert!(dst == [3i, 4, 5]); /// ``` fn clone_from_slice(self, &[T]) -> uint; |
