diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-20 16:11:20 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-20 16:11:20 +0300 |
| commit | a613059e3fcfb751f7664f67a4a6c99faf436483 (patch) | |
| tree | bf18260a765345837e95ddeb80f0e91f04a4a131 /src/libcore/result.rs | |
| parent | 2228bacd62ca8970a7a59401e78d0c5a34fc0f87 (diff) | |
Rename #[deprecated] to #[rustc_deprecated]
Diffstat (limited to 'src/libcore/result.rs')
| -rw-r--r-- | src/libcore/result.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs index d6b6a79d6a8..37c40f96b0f 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -410,7 +410,7 @@ impl<T, E> Result<T, E> { #[inline] #[unstable(feature = "as_slice", reason = "unsure of the utility here", issue = "27776")] - #[deprecated(since = "1.4.0", reason = "niche API, unclear of usefulness")] + #[rustc_deprecated(since = "1.4.0", reason = "niche API, unclear of usefulness")] #[allow(deprecated)] pub fn as_slice(&self) -> &[T] { match *self { @@ -445,7 +445,7 @@ impl<T, E> Result<T, E> { #[unstable(feature = "as_slice", reason = "waiting for mut conventions", issue = "27776")] - #[deprecated(since = "1.4.0", reason = "niche API, unclear of usefulness")] + #[rustc_deprecated(since = "1.4.0", reason = "niche API, unclear of usefulness")] #[allow(deprecated)] pub fn as_mut_slice(&mut self) -> &mut [T] { match *self { |
