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 | |
| parent | 2228bacd62ca8970a7a59401e78d0c5a34fc0f87 (diff) | |
| download | rust-a613059e3fcfb751f7664f67a4a6c99faf436483.tar.gz rust-a613059e3fcfb751f7664f67a4a6c99faf436483.zip | |
Rename #[deprecated] to #[rustc_deprecated]
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter.rs | 10 | ||||
| -rw-r--r-- | src/libcore/lib.rs | 3 | ||||
| -rw-r--r-- | src/libcore/mem.rs | 4 | ||||
| -rw-r--r-- | src/libcore/option.rs | 4 | ||||
| -rw-r--r-- | src/libcore/result.rs | 4 | ||||
| -rw-r--r-- | src/libcore/simd.rs | 2 | ||||
| -rw-r--r-- | src/libcore/slice.rs | 4 | ||||
| -rw-r--r-- | src/libcore/str/mod.rs | 2 |
8 files changed, 17 insertions, 16 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 80774fc2acf..98359b70ca1 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -4303,7 +4303,7 @@ impl<A> Iterator for StepBy<A, RangeFrom<A>> where #[unstable(feature = "range_inclusive", reason = "likely to be replaced by range notation and adapters", issue = "27777")] -#[deprecated(since = "1.5.0", reason = "replaced with ... syntax")] +#[rustc_deprecated(since = "1.5.0", reason = "replaced with ... syntax")] #[allow(deprecated)] pub struct RangeInclusive<A> { range: ops::Range<A>, @@ -4315,7 +4315,7 @@ pub struct RangeInclusive<A> { #[unstable(feature = "range_inclusive", reason = "likely to be replaced by range notation and adapters", issue = "27777")] -#[deprecated(since = "1.5.0", reason = "replaced with ... syntax")] +#[rustc_deprecated(since = "1.5.0", reason = "replaced with ... syntax")] #[allow(deprecated)] pub fn range_inclusive<A>(start: A, stop: A) -> RangeInclusive<A> where A: Step + One + Clone @@ -4329,7 +4329,7 @@ pub fn range_inclusive<A>(start: A, stop: A) -> RangeInclusive<A> #[unstable(feature = "range_inclusive", reason = "likely to be replaced by range notation and adapters", issue = "27777")] -#[deprecated(since = "1.5.0", reason = "replaced with ... syntax")] +#[rustc_deprecated(since = "1.5.0", reason = "replaced with ... syntax")] #[allow(deprecated)] impl<A> Iterator for RangeInclusive<A> where A: PartialEq + Step + One + Clone, @@ -4365,7 +4365,7 @@ impl<A> Iterator for RangeInclusive<A> where #[unstable(feature = "range_inclusive", reason = "likely to be replaced by range notation and adapters", issue = "27777")] -#[deprecated(since = "1.5.0", reason = "replaced with ... syntax")] +#[rustc_deprecated(since = "1.5.0", reason = "replaced with ... syntax")] #[allow(deprecated)] impl<A> DoubleEndedIterator for RangeInclusive<A> where A: PartialEq + Step + One + Clone, @@ -4743,7 +4743,7 @@ pub fn once<T>(value: T) -> Once<T> { /// /// If two sequences are equal up until the point where one ends, /// the shorter sequence compares less. -#[deprecated(since = "1.4.0", reason = "use the equivalent methods on `Iterator` instead")] +#[rustc_deprecated(since = "1.4.0", reason = "use the equivalent methods on `Iterator` instead")] #[unstable(feature = "iter_order_deprecated", reason = "needs review and revision", issue = "27737")] pub mod order { diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index c97f8e529a2..3ebf9d6be63 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -68,6 +68,8 @@ #![no_core] #![deny(missing_docs)] +#![cfg_attr(stage0, feature(rustc_attrs))] +#![cfg_attr(stage0, allow(unused_attributes))] #![feature(allow_internal_unstable)] #![feature(associated_type_defaults)] #![feature(concat_idents)] @@ -80,7 +82,6 @@ #![feature(on_unimplemented)] #![feature(optin_builtin_traits)] #![feature(reflect)] -#![feature(rustc_attrs)] #![feature(unwind_attributes)] #![cfg_attr(stage0, feature(simd))] #![cfg_attr(not(stage0), feature(repr_simd, platform_intrinsics))] diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 2f01ea38340..ee6e708ea32 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -159,7 +159,7 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] -#[deprecated(reason = "use `align_of` instead", since = "1.2.0")] +#[rustc_deprecated(reason = "use `align_of` instead", since = "1.2.0")] pub fn min_align_of<T>() -> usize { unsafe { intrinsics::min_align_of::<T>() } } @@ -176,7 +176,7 @@ pub fn min_align_of<T>() -> usize { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] -#[deprecated(reason = "use `align_of_val` instead", since = "1.2.0")] +#[rustc_deprecated(reason = "use `align_of_val` instead", since = "1.2.0")] pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize { unsafe { intrinsics::min_align_of_val(val) } } diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 7a3b83f68d0..209cebeaf1b 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -290,7 +290,7 @@ impl<T> Option<T> { #[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 { @@ -695,7 +695,7 @@ impl<T> Option<T> { #[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 { 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 { diff --git a/src/libcore/simd.rs b/src/libcore/simd.rs index fb39b3accc3..697f96ddefb 100644 --- a/src/libcore/simd.rs +++ b/src/libcore/simd.rs @@ -24,7 +24,7 @@ #![unstable(feature = "core_simd", reason = "needs an RFC to flesh out the design", issue = "27731")] -#![deprecated(since = "1.3.0", +#![rustc_deprecated(since = "1.3.0", reason = "use the external `simd` crate instead")] #![allow(non_camel_case_types)] diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index efb782fece8..4c532aaaf4f 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -1423,7 +1423,7 @@ impl<'a, T> ExactSizeIterator for ChunksMut<'a, T> {} /// Converts a reference to A into a slice of length 1 (without copying). #[unstable(feature = "ref_slice", issue = "27774")] -#[deprecated(since = "1.5.0", reason = "unclear whether belongs in libstd")] +#[rustc_deprecated(since = "1.5.0", reason = "unclear whether belongs in libstd")] pub fn ref_slice<A>(s: &A) -> &[A] { unsafe { from_raw_parts(s, 1) @@ -1432,7 +1432,7 @@ pub fn ref_slice<A>(s: &A) -> &[A] { /// Converts a reference to A into a slice of length 1 (without copying). #[unstable(feature = "ref_slice", issue = "27774")] -#[deprecated(since = "1.5.0", reason = "unclear whether belongs in libstd")] +#[rustc_deprecated(since = "1.5.0", reason = "unclear whether belongs in libstd")] pub fn mut_ref_slice<A>(s: &mut A) -> &mut [A] { unsafe { from_raw_parts_mut(s, 1) diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index f82b9d79d5c..c27059a9c3c 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -955,7 +955,7 @@ impl<'a> DoubleEndedIterator for Lines<'a> { /// Created with the method `.lines_any()`. #[stable(feature = "rust1", since = "1.0.0")] -#[deprecated(since = "1.4.0", reason = "use lines()/Lines instead now")] +#[rustc_deprecated(since = "1.4.0", reason = "use lines()/Lines instead now")] #[derive(Clone)] #[allow(deprecated)] pub struct LinesAny<'a>(Lines<'a>); |
