Require issue = "none" over issue = "0" in unstable attributes
This commit is contained in:
parent
9ff30a7810
commit
f7256d28d1
111 changed files with 381 additions and 373 deletions
|
@ -476,7 +476,7 @@ impl<T: ?Sized> Box<T> {
|
||||||
Box::into_unique(b).into()
|
Box::into_unique(b).into()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0", reason = "use into_raw_non_null instead")]
|
#[unstable(feature = "ptr_internals", issue = "none", reason = "use into_raw_non_null instead")]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn into_unique(b: Box<T>) -> Unique<T> {
|
pub fn into_unique(b: Box<T>) -> Unique<T> {
|
||||||
|
@ -830,7 +830,7 @@ impl From<Box<str>> for Box<[u8]> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "boxed_slice_try_from", issue = "0")]
|
#[unstable(feature = "boxed_slice_try_from", issue = "none")]
|
||||||
impl<T, const N: usize> TryFrom<Box<[T]>> for Box<[T; N]>
|
impl<T, const N: usize> TryFrom<Box<[T]>> for Box<[T; N]>
|
||||||
where
|
where
|
||||||
[T; N]: LengthAtMost32,
|
[T; N]: LengthAtMost32,
|
||||||
|
@ -946,7 +946,7 @@ impl<T: ?Sized> DerefMut for Box<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "receiver_trait", issue = "0")]
|
#[unstable(feature = "receiver_trait", issue = "none")]
|
||||||
impl<T: ?Sized> Receiver for Box<T> {}
|
impl<T: ?Sized> Receiver for Box<T> {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -1040,7 +1040,7 @@ impl<A, F: Fn<A> + ?Sized> Fn<A> for Box<F> {
|
||||||
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}
|
||||||
|
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U>> for Box<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U>> for Box<T> {}
|
||||||
|
|
||||||
#[stable(feature = "boxed_slice_from_iter", since = "1.32.0")]
|
#[stable(feature = "boxed_slice_from_iter", since = "1.32.0")]
|
||||||
|
|
|
@ -57,7 +57,7 @@ pub enum TryReserveError {
|
||||||
layout: Layout,
|
layout: Layout,
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[unstable(feature = "container_error_extra", issue = "0", reason = "\
|
#[unstable(feature = "container_error_extra", issue = "none", reason = "\
|
||||||
Enable exposing the allocator’s custom error value \
|
Enable exposing the allocator’s custom error value \
|
||||||
if an associated type is added in the future: \
|
if an associated type is added in the future: \
|
||||||
https://github.com/rust-lang/wg-allocators/issues/23")]
|
https://github.com/rust-lang/wg-allocators/issues/23")]
|
||||||
|
|
|
@ -514,7 +514,7 @@
|
||||||
|
|
||||||
#![stable(feature = "rust1", since = "1.0.0")]
|
#![stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
||||||
#[unstable(feature = "fmt_internals", issue = "0")]
|
#[unstable(feature = "fmt_internals", issue = "none")]
|
||||||
pub use core::fmt::rt;
|
pub use core::fmt::rt;
|
||||||
#[stable(feature = "fmt_flags_align", since = "1.28.0")]
|
#[stable(feature = "fmt_flags_align", since = "1.28.0")]
|
||||||
pub use core::fmt::Alignment;
|
pub use core::fmt::Alignment;
|
||||||
|
|
|
@ -171,7 +171,7 @@ mod std {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[unstable(feature = "liballoc_internals", issue = "0", reason = "implementation detail")]
|
#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
|
||||||
pub mod __export {
|
pub mod __export {
|
||||||
pub use core::format_args;
|
pub use core::format_args;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(feature = "raw_vec_internals", reason = "implementation detail", issue = "0")]
|
#![unstable(feature = "raw_vec_internals", reason = "implementation detail", issue = "none")]
|
||||||
#![doc(hidden)]
|
#![doc(hidden)]
|
||||||
|
|
||||||
use core::cmp;
|
use core::cmp;
|
||||||
|
|
|
@ -291,7 +291,7 @@ impl<T: ?Sized> !marker::Sync for Rc<T> {}
|
||||||
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Rc<U>> for Rc<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Rc<U>> for Rc<T> {}
|
||||||
|
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Rc<U>> for Rc<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Rc<U>> for Rc<T> {}
|
||||||
|
|
||||||
impl<T: ?Sized> Rc<T> {
|
impl<T: ?Sized> Rc<T> {
|
||||||
|
@ -1090,7 +1090,7 @@ impl<T: ?Sized> Deref for Rc<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "receiver_trait", issue = "0")]
|
#[unstable(feature = "receiver_trait", issue = "none")]
|
||||||
impl<T: ?Sized> Receiver for Rc<T> {}
|
impl<T: ?Sized> Receiver for Rc<T> {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -1471,7 +1471,7 @@ impl<T> From<Vec<T>> for Rc<[T]> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "boxed_slice_try_from", issue = "0")]
|
#[unstable(feature = "boxed_slice_try_from", issue = "none")]
|
||||||
impl<T, const N: usize> TryFrom<Rc<[T]>> for Rc<[T; N]>
|
impl<T, const N: usize> TryFrom<Rc<[T]>> for Rc<[T; N]>
|
||||||
where
|
where
|
||||||
[T; N]: LengthAtMost32,
|
[T; N]: LengthAtMost32,
|
||||||
|
@ -1621,7 +1621,7 @@ impl<T: ?Sized> !marker::Sync for Weak<T> {}
|
||||||
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
|
||||||
|
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {}
|
||||||
|
|
||||||
impl<T> Weak<T> {
|
impl<T> Weak<T> {
|
||||||
|
|
|
@ -206,7 +206,7 @@ unsafe impl<T: ?Sized + Sync + Send> Sync for Arc<T> {}
|
||||||
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Arc<U>> for Arc<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Arc<U>> for Arc<T> {}
|
||||||
|
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Arc<U>> for Arc<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Arc<U>> for Arc<T> {}
|
||||||
|
|
||||||
impl<T: ?Sized> Arc<T> {
|
impl<T: ?Sized> Arc<T> {
|
||||||
|
@ -263,7 +263,7 @@ unsafe impl<T: ?Sized + Sync + Send> Sync for Weak<T> {}
|
||||||
|
|
||||||
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {}
|
||||||
|
|
||||||
#[stable(feature = "arc_weak", since = "1.4.0")]
|
#[stable(feature = "arc_weak", since = "1.4.0")]
|
||||||
|
@ -993,7 +993,7 @@ impl<T: ?Sized> Deref for Arc<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "receiver_trait", issue = "0")]
|
#[unstable(feature = "receiver_trait", issue = "none")]
|
||||||
impl<T: ?Sized> Receiver for Arc<T> {}
|
impl<T: ?Sized> Receiver for Arc<T> {}
|
||||||
|
|
||||||
impl<T: Clone> Arc<T> {
|
impl<T: Clone> Arc<T> {
|
||||||
|
@ -2032,7 +2032,7 @@ impl<T> From<Vec<T>> for Arc<[T]> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "boxed_slice_try_from", issue = "0")]
|
#[unstable(feature = "boxed_slice_try_from", issue = "none")]
|
||||||
impl<T, const N: usize> TryFrom<Arc<[T]>> for Arc<[T; N]>
|
impl<T, const N: usize> TryFrom<Arc<[T]>> for Arc<[T; N]>
|
||||||
where
|
where
|
||||||
[T; N]: LengthAtMost32,
|
[T; N]: LengthAtMost32,
|
||||||
|
|
|
@ -74,7 +74,7 @@ impl TryFromSliceError {
|
||||||
#[unstable(feature = "array_error_internals",
|
#[unstable(feature = "array_error_internals",
|
||||||
reason = "available through Error trait and this method should not \
|
reason = "available through Error trait and this method should not \
|
||||||
be exposed publicly",
|
be exposed publicly",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn __description(&self) -> &str {
|
pub fn __description(&self) -> &str {
|
||||||
|
@ -388,14 +388,14 @@ where
|
||||||
#[rustc_on_unimplemented(
|
#[rustc_on_unimplemented(
|
||||||
message="arrays only have std trait implementations for lengths 0..=32",
|
message="arrays only have std trait implementations for lengths 0..=32",
|
||||||
)]
|
)]
|
||||||
#[unstable(feature = "const_generic_impls_guard", issue = "0",
|
#[unstable(feature = "const_generic_impls_guard", issue = "none",
|
||||||
reason = "will never be stable, just a temporary step until const generics are stable")]
|
reason = "will never be stable, just a temporary step until const generics are stable")]
|
||||||
pub trait LengthAtMost32 {}
|
pub trait LengthAtMost32 {}
|
||||||
|
|
||||||
macro_rules! array_impls {
|
macro_rules! array_impls {
|
||||||
($($N:literal)+) => {
|
($($N:literal)+) => {
|
||||||
$(
|
$(
|
||||||
#[unstable(feature = "const_generic_impls_guard", issue = "0")]
|
#[unstable(feature = "const_generic_impls_guard", issue = "none")]
|
||||||
impl<T> LengthAtMost32 for [T; $N] {}
|
impl<T> LengthAtMost32 for [T; $N] {}
|
||||||
)+
|
)+
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,7 @@ impl ParseCharError {
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "char_error_internals",
|
feature = "char_error_internals",
|
||||||
reason = "this method should not be available publicly",
|
reason = "this method should not be available publicly",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn __description(&self) -> &str {
|
pub fn __description(&self) -> &str {
|
||||||
|
|
|
@ -150,7 +150,7 @@ pub macro Clone($item:item) {
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "derive_clone_copy",
|
feature = "derive_clone_copy",
|
||||||
reason = "deriving hack, should not be public",
|
reason = "deriving hack, should not be public",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
pub struct AssertParamIsClone<T: Clone + ?Sized> {
|
pub struct AssertParamIsClone<T: Clone + ?Sized> {
|
||||||
_field: crate::marker::PhantomData<T>,
|
_field: crate::marker::PhantomData<T>,
|
||||||
|
@ -160,7 +160,7 @@ pub struct AssertParamIsClone<T: Clone + ?Sized> {
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "derive_clone_copy",
|
feature = "derive_clone_copy",
|
||||||
reason = "deriving hack, should not be public",
|
reason = "deriving hack, should not be public",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
pub struct AssertParamIsCopy<T: Copy + ?Sized> {
|
pub struct AssertParamIsCopy<T: Copy + ?Sized> {
|
||||||
_field: crate::marker::PhantomData<T>,
|
_field: crate::marker::PhantomData<T>,
|
||||||
|
|
|
@ -288,7 +288,7 @@ pub macro Eq($item:item) { /* compiler built-in */ }
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
#[unstable(feature = "derive_eq",
|
#[unstable(feature = "derive_eq",
|
||||||
reason = "deriving hack, should not be public",
|
reason = "deriving hack, should not be public",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
pub struct AssertParamIsEq<T: Eq + ?Sized> { _field: crate::marker::PhantomData<T> }
|
pub struct AssertParamIsEq<T: Eq + ?Sized> { _field: crate::marker::PhantomData<T> }
|
||||||
|
|
||||||
/// An `Ordering` is the result of a comparison between two values.
|
/// An `Ordering` is the result of a comparison between two values.
|
||||||
|
|
|
@ -38,14 +38,14 @@ pub enum c_void {
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "c_void_variant",
|
feature = "c_void_variant",
|
||||||
reason = "temporary implementation detail",
|
reason = "temporary implementation detail",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
__variant1,
|
__variant1,
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "c_void_variant",
|
feature = "c_void_variant",
|
||||||
reason = "temporary implementation detail",
|
reason = "temporary implementation detail",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
__variant2,
|
__variant2,
|
||||||
|
|
|
@ -35,7 +35,7 @@ pub enum Alignment {
|
||||||
#[stable(feature = "debug_builders", since = "1.2.0")]
|
#[stable(feature = "debug_builders", since = "1.2.0")]
|
||||||
pub use self::builders::{DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple};
|
pub use self::builders::{DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple};
|
||||||
|
|
||||||
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "0")]
|
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub mod rt {
|
pub mod rt {
|
||||||
pub mod v1;
|
pub mod v1;
|
||||||
|
@ -259,7 +259,7 @@ struct Void {
|
||||||
/// types, and then this struct is used to canonicalize arguments to one type.
|
/// types, and then this struct is used to canonicalize arguments to one type.
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "0")]
|
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub struct ArgumentV1<'a> {
|
pub struct ArgumentV1<'a> {
|
||||||
value: &'a Void,
|
value: &'a Void,
|
||||||
|
@ -273,13 +273,13 @@ impl<'a> ArgumentV1<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "0")]
|
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "none")]
|
||||||
pub fn new<'b, T>(x: &'b T, f: fn(&T, &mut Formatter<'_>) -> Result) -> ArgumentV1<'b> {
|
pub fn new<'b, T>(x: &'b T, f: fn(&T, &mut Formatter<'_>) -> Result) -> ArgumentV1<'b> {
|
||||||
unsafe { ArgumentV1 { formatter: mem::transmute(f), value: mem::transmute(x) } }
|
unsafe { ArgumentV1 { formatter: mem::transmute(f), value: mem::transmute(x) } }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "0")]
|
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "none")]
|
||||||
pub fn from_usize(x: &usize) -> ArgumentV1<'_> {
|
pub fn from_usize(x: &usize) -> ArgumentV1<'_> {
|
||||||
ArgumentV1::new(x, ArgumentV1::show_usize)
|
ArgumentV1::new(x, ArgumentV1::show_usize)
|
||||||
}
|
}
|
||||||
|
@ -309,7 +309,7 @@ impl<'a> Arguments<'a> {
|
||||||
/// Arguments structure.
|
/// Arguments structure.
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "0")]
|
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "none")]
|
||||||
pub fn new_v1(pieces: &'a [&'a str], args: &'a [ArgumentV1<'a>]) -> Arguments<'a> {
|
pub fn new_v1(pieces: &'a [&'a str], args: &'a [ArgumentV1<'a>]) -> Arguments<'a> {
|
||||||
Arguments { pieces, fmt: None, args }
|
Arguments { pieces, fmt: None, args }
|
||||||
}
|
}
|
||||||
|
@ -322,7 +322,7 @@ impl<'a> Arguments<'a> {
|
||||||
/// unsafety, but will ignore invalid .
|
/// unsafety, but will ignore invalid .
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "0")]
|
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "none")]
|
||||||
pub fn new_v1_formatted(
|
pub fn new_v1_formatted(
|
||||||
pieces: &'a [&'a str],
|
pieces: &'a [&'a str],
|
||||||
args: &'a [ArgumentV1<'a>],
|
args: &'a [ArgumentV1<'a>],
|
||||||
|
@ -337,7 +337,7 @@ impl<'a> Arguments<'a> {
|
||||||
/// when using `format!`. Note: this is neither the lower nor upper bound.
|
/// when using `format!`. Note: this is neither the lower nor upper bound.
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "0")]
|
#[unstable(feature = "fmt_internals", reason = "internal to format_args!", issue = "none")]
|
||||||
pub fn estimated_capacity(&self) -> usize {
|
pub fn estimated_capacity(&self) -> usize {
|
||||||
let pieces_length: usize = self.pieces.iter().map(|x| x.len()).sum();
|
let pieces_length: usize = self.pieces.iter().map(|x| x.len()).sum();
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ use crate::marker;
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
pub use self::sip::SipHasher;
|
pub use self::sip::SipHasher;
|
||||||
|
|
||||||
#[unstable(feature = "hashmap_internals", issue = "0")]
|
#[unstable(feature = "hashmap_internals", issue = "none")]
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub use self::sip::SipHasher13;
|
pub use self::sip::SipHasher13;
|
||||||
|
|
|
@ -15,7 +15,7 @@ use crate::ptr;
|
||||||
/// (e.g., `collections::HashMap` uses it by default).
|
/// (e.g., `collections::HashMap` uses it by default).
|
||||||
///
|
///
|
||||||
/// See: <https://131002.net/siphash>
|
/// See: <https://131002.net/siphash>
|
||||||
#[unstable(feature = "hashmap_internals", issue = "0")]
|
#[unstable(feature = "hashmap_internals", issue = "none")]
|
||||||
#[rustc_deprecated(
|
#[rustc_deprecated(
|
||||||
since = "1.13.0",
|
since = "1.13.0",
|
||||||
reason = "use `std::collections::hash_map::DefaultHasher` instead"
|
reason = "use `std::collections::hash_map::DefaultHasher` instead"
|
||||||
|
@ -29,7 +29,7 @@ pub struct SipHasher13 {
|
||||||
/// An implementation of SipHash 2-4.
|
/// An implementation of SipHash 2-4.
|
||||||
///
|
///
|
||||||
/// See: <https://131002.net/siphash/>
|
/// See: <https://131002.net/siphash/>
|
||||||
#[unstable(feature = "hashmap_internals", issue = "0")]
|
#[unstable(feature = "hashmap_internals", issue = "none")]
|
||||||
#[rustc_deprecated(
|
#[rustc_deprecated(
|
||||||
since = "1.13.0",
|
since = "1.13.0",
|
||||||
reason = "use `std::collections::hash_map::DefaultHasher` instead"
|
reason = "use `std::collections::hash_map::DefaultHasher` instead"
|
||||||
|
@ -172,7 +172,7 @@ impl SipHasher {
|
||||||
impl SipHasher13 {
|
impl SipHasher13 {
|
||||||
/// Creates a new `SipHasher13` with the two initial keys set to 0.
|
/// Creates a new `SipHasher13` with the two initial keys set to 0.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "hashmap_internals", issue = "0")]
|
#[unstable(feature = "hashmap_internals", issue = "none")]
|
||||||
#[rustc_deprecated(
|
#[rustc_deprecated(
|
||||||
since = "1.13.0",
|
since = "1.13.0",
|
||||||
reason = "use `std::collections::hash_map::DefaultHasher` instead"
|
reason = "use `std::collections::hash_map::DefaultHasher` instead"
|
||||||
|
@ -183,7 +183,7 @@ impl SipHasher13 {
|
||||||
|
|
||||||
/// Creates a `SipHasher13` that is keyed off the provided keys.
|
/// Creates a `SipHasher13` that is keyed off the provided keys.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "hashmap_internals", issue = "0")]
|
#[unstable(feature = "hashmap_internals", issue = "none")]
|
||||||
#[rustc_deprecated(
|
#[rustc_deprecated(
|
||||||
since = "1.13.0",
|
since = "1.13.0",
|
||||||
reason = "use `std::collections::hash_map::DefaultHasher` instead"
|
reason = "use `std::collections::hash_map::DefaultHasher` instead"
|
||||||
|
@ -264,7 +264,7 @@ impl super::Hasher for SipHasher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "hashmap_internals", issue = "0")]
|
#[unstable(feature = "hashmap_internals", issue = "none")]
|
||||||
impl super::Hasher for SipHasher13 {
|
impl super::Hasher for SipHasher13 {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn write(&mut self, msg: &[u8]) {
|
fn write(&mut self, msg: &[u8]) {
|
||||||
|
|
|
@ -77,7 +77,7 @@ macro_rules! forward_ref_op_assign {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a zero-size type similar to a closure type, but named.
|
/// Create a zero-size type similar to a closure type, but named.
|
||||||
#[unstable(feature = "std_internals", issue = "0")]
|
#[unstable(feature = "std_internals", issue = "none")]
|
||||||
macro_rules! impl_fn_for_zst {
|
macro_rules! impl_fn_for_zst {
|
||||||
($(
|
($(
|
||||||
$( #[$attr: meta] )*
|
$( #[$attr: meta] )*
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
reason = "intrinsics are unlikely to ever be stabilized, instead \
|
reason = "intrinsics are unlikely to ever be stabilized, instead \
|
||||||
they should be used through stabilized interfaces \
|
they should be used through stabilized interfaces \
|
||||||
in the rest of the standard library",
|
in the rest of the standard library",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#![allow(missing_docs)]
|
#![allow(missing_docs)]
|
||||||
|
|
||||||
use crate::mem;
|
use crate::mem;
|
||||||
|
@ -709,7 +709,7 @@ extern "rust-intrinsic" {
|
||||||
reason = "intrinsics are unlikely to ever be stabilized, instead \
|
reason = "intrinsics are unlikely to ever be stabilized, instead \
|
||||||
they should be used through stabilized interfaces \
|
they should be used through stabilized interfaces \
|
||||||
in the rest of the standard library",
|
in the rest of the standard library",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[rustc_deprecated(reason = "superseded by MaybeUninit, removal planned",
|
#[rustc_deprecated(reason = "superseded by MaybeUninit, removal planned",
|
||||||
since = "1.38.0")]
|
since = "1.38.0")]
|
||||||
pub fn init<T>() -> T;
|
pub fn init<T>() -> T;
|
||||||
|
@ -725,7 +725,7 @@ extern "rust-intrinsic" {
|
||||||
reason = "intrinsics are unlikely to ever be stabilized, instead \
|
reason = "intrinsics are unlikely to ever be stabilized, instead \
|
||||||
they should be used through stabilized interfaces \
|
they should be used through stabilized interfaces \
|
||||||
in the rest of the standard library",
|
in the rest of the standard library",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[rustc_deprecated(reason = "superseded by MaybeUninit, removal planned",
|
#[rustc_deprecated(reason = "superseded by MaybeUninit, removal planned",
|
||||||
since = "1.38.0")]
|
since = "1.38.0")]
|
||||||
pub fn uninit<T>() -> T;
|
pub fn uninit<T>() -> T;
|
||||||
|
|
|
@ -799,7 +799,7 @@ pub(crate) mod builtin {
|
||||||
/// Same as `format_args`, but adds a newline in the end.
|
/// Same as `format_args`, but adds a newline in the end.
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "format_args_nl",
|
feature = "format_args_nl",
|
||||||
issue = "0",
|
issue = "none",
|
||||||
reason = "`format_args_nl` is only for internal \
|
reason = "`format_args_nl` is only for internal \
|
||||||
language use and is subject to change"
|
language use and is subject to change"
|
||||||
)]
|
)]
|
||||||
|
|
|
@ -301,7 +301,7 @@ impl<T> MaybeUninit<T> {
|
||||||
/// let mut buf: [MaybeUninit<u8>; 32] = MaybeUninit::uninit_array();
|
/// let mut buf: [MaybeUninit<u8>; 32] = MaybeUninit::uninit_array();
|
||||||
/// let data = read(&mut buf);
|
/// let data = read(&mut buf);
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "maybe_uninit_uninit_array", issue = "0")]
|
#[unstable(feature = "maybe_uninit_uninit_array", issue = "none")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn uninit_array<const LEN: usize>() -> [Self; LEN] {
|
pub fn uninit_array<const LEN: usize>() -> [Self; LEN] {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -310,7 +310,7 @@ impl<T> MaybeUninit<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A promotable constant, equivalent to `uninit()`.
|
/// A promotable constant, equivalent to `uninit()`.
|
||||||
#[unstable(feature = "internal_uninit_const", issue = "0",
|
#[unstable(feature = "internal_uninit_const", issue = "none",
|
||||||
reason = "hack to work around promotability")]
|
reason = "hack to work around promotability")]
|
||||||
pub const UNINIT: Self = Self::uninit();
|
pub const UNINIT: Self = Self::uninit();
|
||||||
|
|
||||||
|
@ -749,7 +749,7 @@ impl<T> MaybeUninit<T> {
|
||||||
/// It is up to the caller to guarantee that the `MaybeUninit<T>` elements
|
/// It is up to the caller to guarantee that the `MaybeUninit<T>` elements
|
||||||
/// really are in an initialized state.
|
/// really are in an initialized state.
|
||||||
/// Calling this when the content is not yet fully initialized causes undefined behavior.
|
/// Calling this when the content is not yet fully initialized causes undefined behavior.
|
||||||
#[unstable(feature = "maybe_uninit_slice_assume_init", issue = "0")]
|
#[unstable(feature = "maybe_uninit_slice_assume_init", issue = "none")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub unsafe fn slice_get_ref(slice: &[Self]) -> &[T] {
|
pub unsafe fn slice_get_ref(slice: &[Self]) -> &[T] {
|
||||||
&*(slice as *const [Self] as *const [T])
|
&*(slice as *const [Self] as *const [T])
|
||||||
|
@ -762,7 +762,7 @@ impl<T> MaybeUninit<T> {
|
||||||
/// It is up to the caller to guarantee that the `MaybeUninit<T>` elements
|
/// It is up to the caller to guarantee that the `MaybeUninit<T>` elements
|
||||||
/// really are in an initialized state.
|
/// really are in an initialized state.
|
||||||
/// Calling this when the content is not yet fully initialized causes undefined behavior.
|
/// Calling this when the content is not yet fully initialized causes undefined behavior.
|
||||||
#[unstable(feature = "maybe_uninit_slice_assume_init", issue = "0")]
|
#[unstable(feature = "maybe_uninit_slice_assume_init", issue = "none")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub unsafe fn slice_get_mut(slice: &mut [Self]) -> &mut [T] {
|
pub unsafe fn slice_get_mut(slice: &mut [Self]) -> &mut [T] {
|
||||||
&mut *(slice as *mut [Self] as *mut [T])
|
&mut *(slice as *mut [Self] as *mut [T])
|
||||||
|
|
|
@ -121,7 +121,7 @@ pub fn forget<T>(t: T) {
|
||||||
///
|
///
|
||||||
/// [`forget`]: fn.forget.html
|
/// [`forget`]: fn.forget.html
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "forget_unsized", issue = "0")]
|
#[unstable(feature = "forget_unsized", issue = "none")]
|
||||||
pub fn forget_unsized<T: ?Sized>(t: T) {
|
pub fn forget_unsized<T: ?Sized>(t: T) {
|
||||||
// SAFETY: the forget intrinsic could be safe, but there's no point in making it safe since
|
// SAFETY: the forget intrinsic could be safe, but there's no point in making it safe since
|
||||||
// we'll be implementing this function soon via `ManuallyDrop`
|
// we'll be implementing this function soon via `ManuallyDrop`
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#![unstable(
|
#![unstable(
|
||||||
feature = "core_private_bignum",
|
feature = "core_private_bignum",
|
||||||
reason = "internal routines only exposed for testing",
|
reason = "internal routines only exposed for testing",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
#![macro_use]
|
#![macro_use]
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
#![unstable(
|
#![unstable(
|
||||||
feature = "dec2flt",
|
feature = "dec2flt",
|
||||||
reason = "internal routines only exposed for testing",
|
reason = "internal routines only exposed for testing",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
use crate::fmt;
|
use crate::fmt;
|
||||||
|
@ -187,7 +187,7 @@ impl ParseFloatError {
|
||||||
feature = "int_error_internals",
|
feature = "int_error_internals",
|
||||||
reason = "available through Error trait and this method should \
|
reason = "available through Error trait and this method should \
|
||||||
not be exposed publicly",
|
not be exposed publicly",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn __description(&self) -> &str {
|
pub fn __description(&self) -> &str {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#![unstable(
|
#![unstable(
|
||||||
feature = "core_private_diy_float",
|
feature = "core_private_diy_float",
|
||||||
reason = "internal routines only exposed for testing",
|
reason = "internal routines only exposed for testing",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
/// A custom 64-bit floating point type, representing `f * 2^e`.
|
/// A custom 64-bit floating point type, representing `f * 2^e`.
|
||||||
|
|
|
@ -119,7 +119,7 @@ functions.
|
||||||
#![unstable(
|
#![unstable(
|
||||||
feature = "flt2dec",
|
feature = "flt2dec",
|
||||||
reason = "internal routines only exposed for testing",
|
reason = "internal routines only exposed for testing",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
pub use self::decoder::{decode, DecodableFloat, Decoded, FullDecoded};
|
pub use self::decoder::{decode, DecodableFloat, Decoded, FullDecoded};
|
||||||
|
|
|
@ -4769,7 +4769,7 @@ impl TryFromIntError {
|
||||||
feature = "int_error_internals",
|
feature = "int_error_internals",
|
||||||
reason = "available through Error trait and this method should \
|
reason = "available through Error trait and this method should \
|
||||||
not be exposed publicly",
|
not be exposed publicly",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn __description(&self) -> &str {
|
pub fn __description(&self) -> &str {
|
||||||
|
@ -4968,7 +4968,7 @@ impl ParseIntError {
|
||||||
feature = "int_error_internals",
|
feature = "int_error_internals",
|
||||||
reason = "available through Error trait and this method should \
|
reason = "available through Error trait and this method should \
|
||||||
not be exposed publicly",
|
not be exposed publicly",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn __description(&self) -> &str {
|
pub fn __description(&self) -> &str {
|
||||||
|
|
|
@ -178,14 +178,14 @@ impl<T: ?Sized> DerefMut for &mut T {
|
||||||
/// `arbitrary_self_types` feature. This is implemented by stdlib pointer types like `Box<T>`,
|
/// `arbitrary_self_types` feature. This is implemented by stdlib pointer types like `Box<T>`,
|
||||||
/// `Rc<T>`, `&T`, and `Pin<P>`.
|
/// `Rc<T>`, `&T`, and `Pin<P>`.
|
||||||
#[lang = "receiver"]
|
#[lang = "receiver"]
|
||||||
#[unstable(feature = "receiver_trait", issue = "0")]
|
#[unstable(feature = "receiver_trait", issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub trait Receiver {
|
pub trait Receiver {
|
||||||
// Empty.
|
// Empty.
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "receiver_trait", issue = "0")]
|
#[unstable(feature = "receiver_trait", issue = "none")]
|
||||||
impl<T: ?Sized> Receiver for &T {}
|
impl<T: ?Sized> Receiver for &T {}
|
||||||
|
|
||||||
#[unstable(feature = "receiver_trait", issue = "0")]
|
#[unstable(feature = "receiver_trait", issue = "none")]
|
||||||
impl<T: ?Sized> Receiver for &mut T {}
|
impl<T: ?Sized> Receiver for &mut T {}
|
||||||
|
|
|
@ -168,7 +168,7 @@ pub use self::bit::{BitAndAssign, BitOrAssign, BitXorAssign, ShlAssign, ShrAssig
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub use self::deref::{Deref, DerefMut};
|
pub use self::deref::{Deref, DerefMut};
|
||||||
|
|
||||||
#[unstable(feature = "receiver_trait", issue = "0")]
|
#[unstable(feature = "receiver_trait", issue = "none")]
|
||||||
pub use self::deref::Receiver;
|
pub use self::deref::Receiver;
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -195,5 +195,5 @@ pub use self::generator::{Generator, GeneratorState};
|
||||||
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
||||||
pub use self::unsize::CoerceUnsized;
|
pub use self::unsize::CoerceUnsized;
|
||||||
|
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
pub use self::unsize::DispatchFromDyn;
|
pub use self::unsize::DispatchFromDyn;
|
||||||
|
|
|
@ -81,21 +81,21 @@ impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
|
||||||
/// T: Unsize<U>,
|
/// T: Unsize<U>,
|
||||||
/// {}
|
/// {}
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
#[lang = "dispatch_from_dyn"]
|
#[lang = "dispatch_from_dyn"]
|
||||||
pub trait DispatchFromDyn<T> {
|
pub trait DispatchFromDyn<T> {
|
||||||
// Empty.
|
// Empty.
|
||||||
}
|
}
|
||||||
|
|
||||||
// &T -> &U
|
// &T -> &U
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<&'a U> for &'a T {}
|
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<&'a U> for &'a T {}
|
||||||
// &mut T -> &mut U
|
// &mut T -> &mut U
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<&'a mut U> for &'a mut T {}
|
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<&'a mut U> for &'a mut T {}
|
||||||
// *const T -> *const U
|
// *const T -> *const U
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<*const U> for *const T {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<*const U> for *const T {}
|
||||||
// *mut T -> *mut U
|
// *mut T -> *mut U
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {}
|
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<*mut U> for *mut T {}
|
||||||
|
|
|
@ -40,7 +40,7 @@ impl<'a> PanicInfo<'a> {
|
||||||
#[unstable(feature = "panic_internals",
|
#[unstable(feature = "panic_internals",
|
||||||
reason = "internal details of the implementation of the `panic!` \
|
reason = "internal details of the implementation of the `panic!` \
|
||||||
and related macros",
|
and related macros",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn internal_constructor(
|
pub fn internal_constructor(
|
||||||
|
@ -58,7 +58,7 @@ impl<'a> PanicInfo<'a> {
|
||||||
#[unstable(feature = "panic_internals",
|
#[unstable(feature = "panic_internals",
|
||||||
reason = "internal details of the implementation of the `panic!` \
|
reason = "internal details of the implementation of the `panic!` \
|
||||||
and related macros",
|
and related macros",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_payload(&mut self, info: &'a (dyn Any + Send)) {
|
pub fn set_payload(&mut self, info: &'a (dyn Any + Send)) {
|
||||||
|
@ -235,7 +235,7 @@ impl<'a> Location<'a> {
|
||||||
#![unstable(feature = "panic_internals",
|
#![unstable(feature = "panic_internals",
|
||||||
reason = "internal details of the implementation of the `panic!` \
|
reason = "internal details of the implementation of the `panic!` \
|
||||||
and related macros",
|
and related macros",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub const fn internal_constructor(file: &'a str, line: u32, col: u32) -> Self {
|
pub const fn internal_constructor(file: &'a str, line: u32, col: u32) -> Self {
|
||||||
Location { file, line, col }
|
Location { file, line, col }
|
||||||
|
@ -318,7 +318,7 @@ impl fmt::Display for Location<'_> {
|
||||||
/// An internal trait used by libstd to pass data from libstd to `panic_unwind`
|
/// An internal trait used by libstd to pass data from libstd to `panic_unwind`
|
||||||
/// and other panic runtimes. Not intended to be stabilized any time soon, do
|
/// and other panic runtimes. Not intended to be stabilized any time soon, do
|
||||||
/// not use.
|
/// not use.
|
||||||
#[unstable(feature = "std_internals", issue = "0")]
|
#[unstable(feature = "std_internals", issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub unsafe trait BoxMeUp {
|
pub unsafe trait BoxMeUp {
|
||||||
/// Take full ownership of the contents.
|
/// Take full ownership of the contents.
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
feature = "core_panic",
|
feature = "core_panic",
|
||||||
reason = "internal details of the implementation of the `panic!` \
|
reason = "internal details of the implementation of the `panic!` \
|
||||||
and related macros",
|
and related macros",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
use crate::fmt;
|
use crate::fmt;
|
||||||
|
|
|
@ -786,7 +786,7 @@ impl<P: DerefMut<Target: Unpin>> DerefMut for Pin<P> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "receiver_trait", issue = "0")]
|
#[unstable(feature = "receiver_trait", issue = "none")]
|
||||||
impl<P: Receiver> Receiver for Pin<P> {}
|
impl<P: Receiver> Receiver for Pin<P> {}
|
||||||
|
|
||||||
#[stable(feature = "pin", since = "1.33.0")]
|
#[stable(feature = "pin", since = "1.33.0")]
|
||||||
|
|
|
@ -89,7 +89,7 @@ mod non_null;
|
||||||
pub use non_null::NonNull;
|
pub use non_null::NonNull;
|
||||||
|
|
||||||
mod unique;
|
mod unique;
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
pub use unique::Unique;
|
pub use unique::Unique;
|
||||||
|
|
||||||
mod const_ptr;
|
mod const_ptr;
|
||||||
|
|
|
@ -149,7 +149,7 @@ impl<T: ?Sized> Copy for NonNull<T> {}
|
||||||
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
||||||
impl<T: ?Sized, U: ?Sized> CoerceUnsized<NonNull<U>> for NonNull<T> where T: Unsize<U> {}
|
impl<T: ?Sized, U: ?Sized> CoerceUnsized<NonNull<U>> for NonNull<T> where T: Unsize<U> {}
|
||||||
|
|
||||||
#[unstable(feature = "dispatch_from_dyn", issue = "0")]
|
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
|
||||||
impl<T: ?Sized, U: ?Sized> DispatchFromDyn<NonNull<U>> for NonNull<T> where T: Unsize<U> {}
|
impl<T: ?Sized, U: ?Sized> DispatchFromDyn<NonNull<U>> for NonNull<T> where T: Unsize<U> {}
|
||||||
|
|
||||||
#[stable(feature = "nonnull", since = "1.25.0")]
|
#[stable(feature = "nonnull", since = "1.25.0")]
|
||||||
|
@ -201,7 +201,7 @@ impl<T: ?Sized> hash::Hash for NonNull<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> From<Unique<T>> for NonNull<T> {
|
impl<T: ?Sized> From<Unique<T>> for NonNull<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from(unique: Unique<T>) -> Self {
|
fn from(unique: Unique<T>) -> Self {
|
||||||
|
|
|
@ -29,7 +29,7 @@ use crate::ptr::NonNull;
|
||||||
/// for any type which upholds Unique's aliasing requirements.
|
/// for any type which upholds Unique's aliasing requirements.
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "ptr_internals",
|
feature = "ptr_internals",
|
||||||
issue = "0",
|
issue = "none",
|
||||||
reason = "use `NonNull` instead and consider `PhantomData<T>` \
|
reason = "use `NonNull` instead and consider `PhantomData<T>` \
|
||||||
(if you also use `#[may_dangle]`), `Send`, and/or `Sync`"
|
(if you also use `#[may_dangle]`), `Send`, and/or `Sync`"
|
||||||
)]
|
)]
|
||||||
|
@ -50,17 +50,17 @@ pub struct Unique<T: ?Sized> {
|
||||||
/// reference is unaliased. Note that this aliasing invariant is
|
/// reference is unaliased. Note that this aliasing invariant is
|
||||||
/// unenforced by the type system; the abstraction using the
|
/// unenforced by the type system; the abstraction using the
|
||||||
/// `Unique` must enforce it.
|
/// `Unique` must enforce it.
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
unsafe impl<T: Send + ?Sized> Send for Unique<T> {}
|
unsafe impl<T: Send + ?Sized> Send for Unique<T> {}
|
||||||
|
|
||||||
/// `Unique` pointers are `Sync` if `T` is `Sync` because the data they
|
/// `Unique` pointers are `Sync` if `T` is `Sync` because the data they
|
||||||
/// reference is unaliased. Note that this aliasing invariant is
|
/// reference is unaliased. Note that this aliasing invariant is
|
||||||
/// unenforced by the type system; the abstraction using the
|
/// unenforced by the type system; the abstraction using the
|
||||||
/// `Unique` must enforce it.
|
/// `Unique` must enforce it.
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
unsafe impl<T: Sync + ?Sized> Sync for Unique<T> {}
|
unsafe impl<T: Sync + ?Sized> Sync for Unique<T> {}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: Sized> Unique<T> {
|
impl<T: Sized> Unique<T> {
|
||||||
/// Creates a new `Unique` that is dangling, but well-aligned.
|
/// Creates a new `Unique` that is dangling, but well-aligned.
|
||||||
///
|
///
|
||||||
|
@ -78,7 +78,7 @@ impl<T: Sized> Unique<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> Unique<T> {
|
impl<T: ?Sized> Unique<T> {
|
||||||
/// Creates a new `Unique`.
|
/// Creates a new `Unique`.
|
||||||
///
|
///
|
||||||
|
@ -133,7 +133,7 @@ impl<T: ?Sized> Unique<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> Clone for Unique<T> {
|
impl<T: ?Sized> Clone for Unique<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
|
@ -141,30 +141,30 @@ impl<T: ?Sized> Clone for Unique<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> Copy for Unique<T> {}
|
impl<T: ?Sized> Copy for Unique<T> {}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsize<U> {}
|
impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsize<U> {}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {}
|
impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> fmt::Debug for Unique<T> {
|
impl<T: ?Sized> fmt::Debug for Unique<T> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
fmt::Pointer::fmt(&self.as_ptr(), f)
|
fmt::Pointer::fmt(&self.as_ptr(), f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> fmt::Pointer for Unique<T> {
|
impl<T: ?Sized> fmt::Pointer for Unique<T> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
fmt::Pointer::fmt(&self.as_ptr(), f)
|
fmt::Pointer::fmt(&self.as_ptr(), f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> From<&mut T> for Unique<T> {
|
impl<T: ?Sized> From<&mut T> for Unique<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from(reference: &mut T) -> Self {
|
fn from(reference: &mut T) -> Self {
|
||||||
|
@ -172,7 +172,7 @@ impl<T: ?Sized> From<&mut T> for Unique<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> From<&T> for Unique<T> {
|
impl<T: ?Sized> From<&T> for Unique<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from(reference: &T) -> Self {
|
fn from(reference: &T) -> Self {
|
||||||
|
@ -180,7 +180,7 @@ impl<T: ?Sized> From<&T> for Unique<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: ?Sized> From<NonNull<T>> for Unique<T> {
|
impl<T: ?Sized> From<NonNull<T>> for Unique<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from(p: NonNull<T>) -> Self {
|
fn from(p: NonNull<T>) -> Self {
|
||||||
|
|
|
@ -38,7 +38,7 @@ use crate::ptr;
|
||||||
use crate::mem;
|
use crate::mem;
|
||||||
use crate::marker::{Copy, Send, Sync, Sized, self};
|
use crate::marker::{Copy, Send, Sync, Sized, self};
|
||||||
|
|
||||||
#[unstable(feature = "slice_internals", issue = "0",
|
#[unstable(feature = "slice_internals", issue = "none",
|
||||||
reason = "exposed from core to be reused in std; use the memchr crate")]
|
reason = "exposed from core to be reused in std; use the memchr crate")]
|
||||||
/// Pure rust memchr implementation, taken from rust-memchr
|
/// Pure rust memchr implementation, taken from rust-memchr
|
||||||
pub mod memchr;
|
pub mod memchr;
|
||||||
|
@ -2723,12 +2723,12 @@ pub trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
|
||||||
|
|
||||||
/// Returns a shared reference to the output at this location, if in
|
/// Returns a shared reference to the output at this location, if in
|
||||||
/// bounds.
|
/// bounds.
|
||||||
#[unstable(feature = "slice_index_methods", issue = "0")]
|
#[unstable(feature = "slice_index_methods", issue = "none")]
|
||||||
fn get(self, slice: &T) -> Option<&Self::Output>;
|
fn get(self, slice: &T) -> Option<&Self::Output>;
|
||||||
|
|
||||||
/// Returns a mutable reference to the output at this location, if in
|
/// Returns a mutable reference to the output at this location, if in
|
||||||
/// bounds.
|
/// bounds.
|
||||||
#[unstable(feature = "slice_index_methods", issue = "0")]
|
#[unstable(feature = "slice_index_methods", issue = "none")]
|
||||||
fn get_mut(self, slice: &mut T) -> Option<&mut Self::Output>;
|
fn get_mut(self, slice: &mut T) -> Option<&mut Self::Output>;
|
||||||
|
|
||||||
/// Returns a shared reference to the output at this location, without
|
/// Returns a shared reference to the output at this location, without
|
||||||
|
@ -2736,7 +2736,7 @@ pub trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
|
||||||
/// Calling this method with an out-of-bounds index is *[undefined behavior]*
|
/// Calling this method with an out-of-bounds index is *[undefined behavior]*
|
||||||
/// even if the resulting reference is not used.
|
/// even if the resulting reference is not used.
|
||||||
/// [undefined behavior]: ../../reference/behavior-considered-undefined.html
|
/// [undefined behavior]: ../../reference/behavior-considered-undefined.html
|
||||||
#[unstable(feature = "slice_index_methods", issue = "0")]
|
#[unstable(feature = "slice_index_methods", issue = "none")]
|
||||||
unsafe fn get_unchecked(self, slice: &T) -> &Self::Output;
|
unsafe fn get_unchecked(self, slice: &T) -> &Self::Output;
|
||||||
|
|
||||||
/// Returns a mutable reference to the output at this location, without
|
/// Returns a mutable reference to the output at this location, without
|
||||||
|
@ -2744,17 +2744,17 @@ pub trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
|
||||||
/// Calling this method with an out-of-bounds index is *[undefined behavior]*
|
/// Calling this method with an out-of-bounds index is *[undefined behavior]*
|
||||||
/// even if the resulting reference is not used.
|
/// even if the resulting reference is not used.
|
||||||
/// [undefined behavior]: ../../reference/behavior-considered-undefined.html
|
/// [undefined behavior]: ../../reference/behavior-considered-undefined.html
|
||||||
#[unstable(feature = "slice_index_methods", issue = "0")]
|
#[unstable(feature = "slice_index_methods", issue = "none")]
|
||||||
unsafe fn get_unchecked_mut(self, slice: &mut T) -> &mut Self::Output;
|
unsafe fn get_unchecked_mut(self, slice: &mut T) -> &mut Self::Output;
|
||||||
|
|
||||||
/// Returns a shared reference to the output at this location, panicking
|
/// Returns a shared reference to the output at this location, panicking
|
||||||
/// if out of bounds.
|
/// if out of bounds.
|
||||||
#[unstable(feature = "slice_index_methods", issue = "0")]
|
#[unstable(feature = "slice_index_methods", issue = "none")]
|
||||||
fn index(self, slice: &T) -> &Self::Output;
|
fn index(self, slice: &T) -> &Self::Output;
|
||||||
|
|
||||||
/// Returns a mutable reference to the output at this location, panicking
|
/// Returns a mutable reference to the output at this location, panicking
|
||||||
/// if out of bounds.
|
/// if out of bounds.
|
||||||
#[unstable(feature = "slice_index_methods", issue = "0")]
|
#[unstable(feature = "slice_index_methods", issue = "none")]
|
||||||
fn index_mut(self, slice: &mut T) -> &mut Self::Output;
|
fn index_mut(self, slice: &mut T) -> &mut Self::Output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5382,7 +5382,7 @@ pub fn from_mut<T>(s: &mut T) -> &mut [T] {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function is public only because there is no other way to unit test heapsort.
|
// This function is public only because there is no other way to unit test heapsort.
|
||||||
#[unstable(feature = "sort_internals", reason = "internal to sort module", issue = "0")]
|
#[unstable(feature = "sort_internals", reason = "internal to sort module", issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn heapsort<T, F>(v: &mut [T], mut is_less: F)
|
pub fn heapsort<T, F>(v: &mut [T], mut is_less: F)
|
||||||
where F: FnMut(&T, &T) -> bool
|
where F: FnMut(&T, &T) -> bool
|
||||||
|
|
|
@ -6,7 +6,7 @@ use crate::mem;
|
||||||
// ignore-tidy-undocumented-unsafe
|
// ignore-tidy-undocumented-unsafe
|
||||||
|
|
||||||
/// Lossy UTF-8 string.
|
/// Lossy UTF-8 string.
|
||||||
#[unstable(feature = "str_internals", issue = "0")]
|
#[unstable(feature = "str_internals", issue = "none")]
|
||||||
pub struct Utf8Lossy {
|
pub struct Utf8Lossy {
|
||||||
bytes: [u8]
|
bytes: [u8]
|
||||||
}
|
}
|
||||||
|
@ -27,13 +27,13 @@ impl Utf8Lossy {
|
||||||
|
|
||||||
|
|
||||||
/// Iterator over lossy UTF-8 string
|
/// Iterator over lossy UTF-8 string
|
||||||
#[unstable(feature = "str_internals", issue = "0")]
|
#[unstable(feature = "str_internals", issue = "none")]
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
pub struct Utf8LossyChunksIter<'a> {
|
pub struct Utf8LossyChunksIter<'a> {
|
||||||
source: &'a [u8],
|
source: &'a [u8],
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "str_internals", issue = "0")]
|
#[unstable(feature = "str_internals", issue = "none")]
|
||||||
#[derive(PartialEq, Eq, Debug)]
|
#[derive(PartialEq, Eq, Debug)]
|
||||||
pub struct Utf8LossyChunk<'a> {
|
pub struct Utf8LossyChunk<'a> {
|
||||||
/// Sequence of valid chars.
|
/// Sequence of valid chars.
|
||||||
|
|
|
@ -21,7 +21,7 @@ use crate::option;
|
||||||
|
|
||||||
pub mod pattern;
|
pub mod pattern;
|
||||||
|
|
||||||
#[unstable(feature = "str_internals", issue = "0")]
|
#[unstable(feature = "str_internals", issue = "none")]
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
pub mod lossy;
|
pub mod lossy;
|
||||||
|
|
||||||
|
@ -496,7 +496,7 @@ fn unwrap_or_0(opt: Option<&u8>) -> u8 {
|
||||||
|
|
||||||
/// Reads the next code point out of a byte iterator (assuming a
|
/// Reads the next code point out of a byte iterator (assuming a
|
||||||
/// UTF-8-like encoding).
|
/// UTF-8-like encoding).
|
||||||
#[unstable(feature = "str_internals", issue = "0")]
|
#[unstable(feature = "str_internals", issue = "none")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn next_code_point<'a, I: Iterator<Item = &'a u8>>(bytes: &mut I) -> Option<u32> {
|
pub fn next_code_point<'a, I: Iterator<Item = &'a u8>>(bytes: &mut I) -> Option<u32> {
|
||||||
// Decode UTF-8
|
// Decode UTF-8
|
||||||
|
@ -1583,7 +1583,7 @@ static UTF8_CHAR_WIDTH: [u8; 256] = [
|
||||||
];
|
];
|
||||||
|
|
||||||
/// Given a first byte, determines how many bytes are in this UTF-8 character.
|
/// Given a first byte, determines how many bytes are in this UTF-8 character.
|
||||||
#[unstable(feature = "str_internals", issue = "0")]
|
#[unstable(feature = "str_internals", issue = "none")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn utf8_char_width(b: u8) -> usize {
|
pub fn utf8_char_width(b: u8) -> usize {
|
||||||
UTF8_CHAR_WIDTH[b as usize] as usize
|
UTF8_CHAR_WIDTH[b as usize] as usize
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(feature = "unicode_internals", issue = "0")]
|
#![unstable(feature = "unicode_internals", issue = "none")]
|
||||||
#![allow(missing_docs)]
|
#![allow(missing_docs)]
|
||||||
|
|
||||||
mod bool_trie;
|
mod bool_trie;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#![profiler_runtime]
|
#![profiler_runtime]
|
||||||
#![unstable(feature = "profiler_runtime_lib",
|
#![unstable(feature = "profiler_runtime_lib",
|
||||||
reason = "internal implementation detail of rustc right now",
|
reason = "internal implementation detail of rustc right now",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#![allow(unused_features)]
|
#![allow(unused_features)]
|
||||||
#![feature(nll)]
|
#![feature(nll)]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![unstable(feature = "sanitizer_runtime_lib",
|
#![unstable(feature = "sanitizer_runtime_lib",
|
||||||
reason = "internal implementation detail of sanitizers",
|
reason = "internal implementation detail of sanitizers",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
|
@ -5,7 +5,7 @@ Erroneous code examples:
|
||||||
```compile_fail,E0734
|
```compile_fail,E0734
|
||||||
#[rustc_deprecated(since = "b", reason = "text")] // invalid
|
#[rustc_deprecated(since = "b", reason = "text")] // invalid
|
||||||
#[stable(feature = "a", since = "b")] // invalid
|
#[stable(feature = "a", since = "b")] // invalid
|
||||||
#[unstable(feature = "b", issue = "0")] // invalid
|
#[unstable(feature = "b", issue = "none")] // invalid
|
||||||
fn foo(){}
|
fn foo(){}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![unstable(feature = "sanitizer_runtime_lib",
|
#![unstable(feature = "sanitizer_runtime_lib",
|
||||||
reason = "internal implementation detail of sanitizers",
|
reason = "internal implementation detail of sanitizers",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![unstable(feature = "sanitizer_runtime_lib",
|
#![unstable(feature = "sanitizer_runtime_lib",
|
||||||
reason = "internal implementation detail of sanitizers",
|
reason = "internal implementation detail of sanitizers",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![unstable(feature = "sanitizer_runtime_lib",
|
#![unstable(feature = "sanitizer_runtime_lib",
|
||||||
reason = "internal implementation detail of sanitizers",
|
reason = "internal implementation detail of sanitizers",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
|
@ -205,7 +205,7 @@ fn default_alloc_error_hook(layout: Layout) {
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[alloc_error_handler]
|
#[alloc_error_handler]
|
||||||
#[unstable(feature = "alloc_internals", issue = "0")]
|
#[unstable(feature = "alloc_internals", issue = "none")]
|
||||||
pub fn rust_oom(layout: Layout) -> ! {
|
pub fn rust_oom(layout: Layout) -> ! {
|
||||||
let hook = HOOK.load(Ordering::SeqCst);
|
let hook = HOOK.load(Ordering::SeqCst);
|
||||||
let hook: fn(Layout) = if hook.is_null() {
|
let hook: fn(Layout) = if hook.is_null() {
|
||||||
|
@ -220,7 +220,7 @@ pub fn rust_oom(layout: Layout) -> ! {
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[allow(unused_attributes)]
|
#[allow(unused_attributes)]
|
||||||
#[unstable(feature = "alloc_internals", issue = "0")]
|
#[unstable(feature = "alloc_internals", issue = "none")]
|
||||||
pub mod __default_lib_allocator {
|
pub mod __default_lib_allocator {
|
||||||
use super::{System, Layout, GlobalAlloc};
|
use super::{System, Layout, GlobalAlloc};
|
||||||
// These magic symbol names are used as a fallback for implementing the
|
// These magic symbol names are used as a fallback for implementing the
|
||||||
|
|
|
@ -1065,7 +1065,7 @@ impl CStr {
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "cstr_from_bytes", since = "1.10.0")]
|
#[stable(feature = "cstr_from_bytes", since = "1.10.0")]
|
||||||
#[rustc_const_unstable(feature = "const_cstr_unchecked", issue = "0")]
|
#[rustc_const_unstable(feature = "const_cstr_unchecked", issue = "none")]
|
||||||
pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr {
|
pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr {
|
||||||
&*(bytes as *const [u8] as *const CStr)
|
&*(bytes as *const [u8] as *const CStr)
|
||||||
}
|
}
|
||||||
|
|
|
@ -280,7 +280,7 @@ pub use self::error::{Error, ErrorKind, Result};
|
||||||
pub use self::stdio::{stderr, stdin, stdout, Stderr, Stdin, Stdout};
|
pub use self::stdio::{stderr, stdin, stdout, Stderr, Stdin, Stdout};
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub use self::stdio::{StderrLock, StdinLock, StdoutLock};
|
pub use self::stdio::{StderrLock, StdinLock, StdoutLock};
|
||||||
#[unstable(feature = "print_internals", issue = "0")]
|
#[unstable(feature = "print_internals", issue = "none")]
|
||||||
pub use self::stdio::{_eprint, _print};
|
pub use self::stdio::{_eprint, _print};
|
||||||
#[unstable(feature = "libstd_io_internals", issue = "42788")]
|
#[unstable(feature = "libstd_io_internals", issue = "42788")]
|
||||||
#[doc(no_inline, hidden)]
|
#[doc(no_inline, hidden)]
|
||||||
|
|
|
@ -723,7 +723,7 @@ impl fmt::Debug for StderrLock<'_> {
|
||||||
#[unstable(feature = "set_stdio",
|
#[unstable(feature = "set_stdio",
|
||||||
reason = "this function may disappear completely or be replaced \
|
reason = "this function may disappear completely or be replaced \
|
||||||
with a more general mechanism",
|
with a more general mechanism",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn set_panic(sink: Option<Box<dyn Write + Send>>) -> Option<Box<dyn Write + Send>> {
|
pub fn set_panic(sink: Option<Box<dyn Write + Send>>) -> Option<Box<dyn Write + Send>> {
|
||||||
use crate::mem;
|
use crate::mem;
|
||||||
|
@ -746,7 +746,7 @@ pub fn set_panic(sink: Option<Box<dyn Write + Send>>) -> Option<Box<dyn Write +
|
||||||
#[unstable(feature = "set_stdio",
|
#[unstable(feature = "set_stdio",
|
||||||
reason = "this function may disappear completely or be replaced \
|
reason = "this function may disappear completely or be replaced \
|
||||||
with a more general mechanism",
|
with a more general mechanism",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn set_print(sink: Option<Box<dyn Write + Send>>) -> Option<Box<dyn Write + Send>> {
|
pub fn set_print(sink: Option<Box<dyn Write + Send>>) -> Option<Box<dyn Write + Send>> {
|
||||||
use crate::mem;
|
use crate::mem;
|
||||||
|
@ -795,7 +795,7 @@ where
|
||||||
|
|
||||||
#[unstable(feature = "print_internals",
|
#[unstable(feature = "print_internals",
|
||||||
reason = "implementation detail which may disappear or be replaced at any time",
|
reason = "implementation detail which may disappear or be replaced at any time",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
pub fn _print(args: fmt::Arguments<'_>) {
|
pub fn _print(args: fmt::Arguments<'_>) {
|
||||||
|
@ -804,7 +804,7 @@ pub fn _print(args: fmt::Arguments<'_>) {
|
||||||
|
|
||||||
#[unstable(feature = "print_internals",
|
#[unstable(feature = "print_internals",
|
||||||
reason = "implementation detail which may disappear or be replaced at any time",
|
reason = "implementation detail which may disappear or be replaced at any time",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
pub fn _eprint(args: fmt::Arguments<'_>) {
|
pub fn _eprint(args: fmt::Arguments<'_>) {
|
||||||
|
|
|
@ -205,7 +205,7 @@ impl<T: RefUnwindSafe + ?Sized> UnwindSafe for &T {}
|
||||||
impl<T: RefUnwindSafe + ?Sized> UnwindSafe for *const T {}
|
impl<T: RefUnwindSafe + ?Sized> UnwindSafe for *const T {}
|
||||||
#[stable(feature = "catch_unwind", since = "1.9.0")]
|
#[stable(feature = "catch_unwind", since = "1.9.0")]
|
||||||
impl<T: RefUnwindSafe + ?Sized> UnwindSafe for *mut T {}
|
impl<T: RefUnwindSafe + ?Sized> UnwindSafe for *mut T {}
|
||||||
#[unstable(feature = "ptr_internals", issue = "0")]
|
#[unstable(feature = "ptr_internals", issue = "none")]
|
||||||
impl<T: UnwindSafe + ?Sized> UnwindSafe for Unique<T> {}
|
impl<T: UnwindSafe + ?Sized> UnwindSafe for Unique<T> {}
|
||||||
#[stable(feature = "nonnull", since = "1.25.0")]
|
#[stable(feature = "nonnull", since = "1.25.0")]
|
||||||
impl<T: RefUnwindSafe + ?Sized> UnwindSafe for NonNull<T> {}
|
impl<T: RefUnwindSafe + ?Sized> UnwindSafe for NonNull<T> {}
|
||||||
|
|
|
@ -214,7 +214,7 @@ fn default_hook(info: &PanicInfo<'_>) {
|
||||||
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[unstable(feature = "update_panic_count", issue = "0")]
|
#[unstable(feature = "update_panic_count", issue = "none")]
|
||||||
pub fn update_panic_count(amt: isize) -> usize {
|
pub fn update_panic_count(amt: isize) -> usize {
|
||||||
use crate::cell::Cell;
|
use crate::cell::Cell;
|
||||||
thread_local! { static PANIC_COUNT: Cell<usize> = Cell::new(0) }
|
thread_local! { static PANIC_COUNT: Cell<usize> = Cell::new(0) }
|
||||||
|
@ -307,7 +307,7 @@ pub fn panicking() -> bool {
|
||||||
/// the actual formatting into this shared place.
|
/// the actual formatting into this shared place.
|
||||||
#[unstable(feature = "libstd_sys_internals",
|
#[unstable(feature = "libstd_sys_internals",
|
||||||
reason = "used by the panic! macro",
|
reason = "used by the panic! macro",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[cold]
|
#[cold]
|
||||||
// If panic_immediate_abort, inline the abort call,
|
// If panic_immediate_abort, inline the abort call,
|
||||||
// otherwise avoid inlining because of it is cold path.
|
// otherwise avoid inlining because of it is cold path.
|
||||||
|
@ -383,7 +383,7 @@ pub fn begin_panic_handler(info: &PanicInfo<'_>) -> ! {
|
||||||
/// arbitrary payloads, not just format strings.
|
/// arbitrary payloads, not just format strings.
|
||||||
#[unstable(feature = "libstd_sys_internals",
|
#[unstable(feature = "libstd_sys_internals",
|
||||||
reason = "used by the panic! macro",
|
reason = "used by the panic! macro",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
#[cfg_attr(not(test), lang = "begin_panic")] // lang item for CTFE panic support
|
#[cfg_attr(not(test), lang = "begin_panic")] // lang item for CTFE panic support
|
||||||
// never inline unless panic_immediate_abort to avoid code
|
// never inline unless panic_immediate_abort to avoid code
|
||||||
// bloat at the call sites as much as possible
|
// bloat at the call sites as much as possible
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
feature = "rt",
|
feature = "rt",
|
||||||
reason = "this public module should not exist and is highly likely \
|
reason = "this public module should not exist and is highly likely \
|
||||||
to disappear",
|
to disappear",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
#![doc(hidden)]
|
#![doc(hidden)]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![cfg(target_thread_local)]
|
#![cfg(target_thread_local)]
|
||||||
#![unstable(feature = "thread_local_internals", issue = "0")]
|
#![unstable(feature = "thread_local_internals", issue = "none")]
|
||||||
|
|
||||||
pub use crate::sys_common::thread_local::register_dtor_fallback as register_dtor;
|
pub use crate::sys_common::thread_local::register_dtor_fallback as register_dtor;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(reason = "not public", issue = "0", feature = "fd")]
|
#![unstable(reason = "not public", issue = "none", feature = "fd")]
|
||||||
|
|
||||||
use crate::io::{self, ErrorKind, Read};
|
use crate::io::{self, ErrorKind, Read};
|
||||||
use crate::mem;
|
use crate::mem;
|
||||||
|
|
|
@ -69,7 +69,7 @@ cfg_if::cfg_if! {
|
||||||
// On CloudABI and wasm right now the module below doesn't compile
|
// On CloudABI and wasm right now the module below doesn't compile
|
||||||
// (missing things in `libc` which is empty) so just omit everything
|
// (missing things in `libc` which is empty) so just omit everything
|
||||||
// with an empty module
|
// with an empty module
|
||||||
#[unstable(issue = "0", feature = "std_internals")]
|
#[unstable(issue = "none", feature = "std_internals")]
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
pub mod unix_ext {}
|
pub mod unix_ext {}
|
||||||
} else {
|
} else {
|
||||||
|
@ -92,7 +92,7 @@ cfg_if::cfg_if! {
|
||||||
all(target_vendor = "fortanix", target_env = "sgx")))] {
|
all(target_vendor = "fortanix", target_env = "sgx")))] {
|
||||||
// On CloudABI and wasm right now the shim below doesn't compile, so
|
// On CloudABI and wasm right now the shim below doesn't compile, so
|
||||||
// just omit it
|
// just omit it
|
||||||
#[unstable(issue = "0", feature = "std_internals")]
|
#[unstable(issue = "none", feature = "std_internals")]
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
pub mod windows_ext {}
|
pub mod windows_ext {}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#![cfg(target_thread_local)]
|
#![cfg(target_thread_local)]
|
||||||
#![unstable(feature = "thread_local_internals", issue = "0")]
|
#![unstable(feature = "thread_local_internals", issue = "none")]
|
||||||
|
|
||||||
// Since what appears to be glibc 2.18 this symbol has been shipped which
|
// Since what appears to be glibc 2.18 this symbol has been shipped which
|
||||||
// GCC and clang both use to invoke destructors in thread_local globals, so
|
// GCC and clang both use to invoke destructors in thread_local globals, so
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(reason = "not public", issue = "0", feature = "fd")]
|
#![unstable(reason = "not public", issue = "none", feature = "fd")]
|
||||||
|
|
||||||
use crate::cmp;
|
use crate::cmp;
|
||||||
use crate::io::{self, Initializer, IoSlice, IoSliceMut, Read};
|
use crate::io::{self, Initializer, IoSlice, IoSliceMut, Read};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#![cfg(target_thread_local)]
|
#![cfg(target_thread_local)]
|
||||||
#![unstable(feature = "thread_local_internals", issue = "0")]
|
#![unstable(feature = "thread_local_internals", issue = "none")]
|
||||||
|
|
||||||
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
|
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
|
||||||
use crate::sys_common::thread_local::register_dtor_fallback;
|
use crate::sys_common::thread_local::register_dtor_fallback;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(reason = "not public", issue = "0", feature = "fd")]
|
#![unstable(reason = "not public", issue = "none", feature = "fd")]
|
||||||
|
|
||||||
use crate::cmp;
|
use crate::cmp;
|
||||||
use crate::io::{self, Initializer, IoSlice, IoSliceMut, Read};
|
use crate::io::{self, Initializer, IoSlice, IoSliceMut, Read};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! WASI-specific extensions to primitives in the `std::fs` module.
|
//! WASI-specific extensions to primitives in the `std::fs` module.
|
||||||
|
|
||||||
#![unstable(feature = "wasi_ext", issue = "0")]
|
#![unstable(feature = "wasi_ext", issue = "none")]
|
||||||
|
|
||||||
use crate::fs::{self, File, Metadata, OpenOptions};
|
use crate::fs::{self, File, Metadata, OpenOptions};
|
||||||
use crate::io::{self, IoSlice, IoSliceMut};
|
use crate::io::{self, IoSlice, IoSliceMut};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! WASI-specific extensions to general I/O primitives
|
//! WASI-specific extensions to general I/O primitives
|
||||||
|
|
||||||
#![unstable(feature = "wasi_ext", issue = "0")]
|
#![unstable(feature = "wasi_ext", issue = "none")]
|
||||||
|
|
||||||
use crate::fs;
|
use crate::fs;
|
||||||
use crate::io;
|
use crate::io;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(feature = "thread_local_internals", issue = "0")]
|
#![unstable(feature = "thread_local_internals", issue = "none")]
|
||||||
|
|
||||||
pub unsafe fn register_dtor(_t: *mut u8, _dtor: unsafe extern fn(*mut u8)) {
|
pub unsafe fn register_dtor(_t: *mut u8, _dtor: unsafe extern fn(*mut u8)) {
|
||||||
// FIXME: right now there is no concept of "thread exit", but this is likely
|
// FIXME: right now there is no concept of "thread exit", but this is likely
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#![allow(nonstandard_style)]
|
#![allow(nonstandard_style)]
|
||||||
#![cfg_attr(test, allow(dead_code))]
|
#![cfg_attr(test, allow(dead_code))]
|
||||||
#![unstable(issue = "0", feature = "windows_c")]
|
#![unstable(issue = "none", feature = "windows_c")]
|
||||||
|
|
||||||
use crate::os::raw::{c_int, c_uint, c_ulong, c_long, c_longlong, c_ushort, c_char};
|
use crate::os::raw::{c_int, c_uint, c_ulong, c_long, c_longlong, c_ushort, c_char};
|
||||||
use crate::ptr;
|
use crate::ptr;
|
||||||
|
|
|
@ -504,17 +504,17 @@ impl MetadataExt for Metadata {
|
||||||
/// On Windows, a symbolic link knows whether it is a file or directory.
|
/// On Windows, a symbolic link knows whether it is a file or directory.
|
||||||
///
|
///
|
||||||
/// [`FileType`]: ../../../../std/fs/struct.FileType.html
|
/// [`FileType`]: ../../../../std/fs/struct.FileType.html
|
||||||
#[unstable(feature = "windows_file_type_ext", issue = "0")]
|
#[unstable(feature = "windows_file_type_ext", issue = "none")]
|
||||||
pub trait FileTypeExt {
|
pub trait FileTypeExt {
|
||||||
/// Returns `true` if this file type is a symbolic link that is also a directory.
|
/// Returns `true` if this file type is a symbolic link that is also a directory.
|
||||||
#[unstable(feature = "windows_file_type_ext", issue = "0")]
|
#[unstable(feature = "windows_file_type_ext", issue = "none")]
|
||||||
fn is_symlink_dir(&self) -> bool;
|
fn is_symlink_dir(&self) -> bool;
|
||||||
/// Returns `true` if this file type is a symbolic link that is also a file.
|
/// Returns `true` if this file type is a symbolic link that is also a file.
|
||||||
#[unstable(feature = "windows_file_type_ext", issue = "0")]
|
#[unstable(feature = "windows_file_type_ext", issue = "none")]
|
||||||
fn is_symlink_file(&self) -> bool;
|
fn is_symlink_file(&self) -> bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "windows_file_type_ext", issue = "0")]
|
#[unstable(feature = "windows_file_type_ext", issue = "none")]
|
||||||
impl FileTypeExt for fs::FileType {
|
impl FileTypeExt for fs::FileType {
|
||||||
fn is_symlink_dir(&self) -> bool {
|
fn is_symlink_dir(&self) -> bool {
|
||||||
self.as_inner().is_symlink_dir()
|
self.as_inner().is_symlink_dir()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(feature = "thread_local_internals", issue = "0")]
|
#![unstable(feature = "thread_local_internals", issue = "none")]
|
||||||
#![cfg(target_thread_local)]
|
#![cfg(target_thread_local)]
|
||||||
|
|
||||||
pub use crate::sys_common::thread_local::register_dtor_fallback as register_dtor;
|
pub use crate::sys_common::thread_local::register_dtor_fallback as register_dtor;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(issue = "0", feature = "windows_handle")]
|
#![unstable(issue = "none", feature = "windows_handle")]
|
||||||
|
|
||||||
use crate::cmp;
|
use crate::cmp;
|
||||||
use crate::io::{self, ErrorKind, IoSlice, IoSliceMut, Read};
|
use crate::io::{self, ErrorKind, IoSlice, IoSliceMut, Read};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(issue = "0", feature = "windows_net")]
|
#![unstable(issue = "none", feature = "windows_net")]
|
||||||
|
|
||||||
use crate::cmp;
|
use crate::cmp;
|
||||||
use crate::io::{self, Read, IoSlice, IoSliceMut};
|
use crate::io::{self, Read, IoSlice, IoSliceMut};
|
||||||
|
@ -395,7 +395,7 @@ impl Socket {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(reason = "not public", issue = "0", feature = "fd_read")]
|
#[unstable(reason = "not public", issue = "none", feature = "fd_read")]
|
||||||
impl<'a> Read for &'a Socket {
|
impl<'a> Read for &'a Socket {
|
||||||
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
|
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
|
||||||
(**self).read(buf)
|
(**self).read(buf)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(feature = "process_internals", issue = "0")]
|
#![unstable(feature = "process_internals", issue = "none")]
|
||||||
|
|
||||||
use crate::collections::BTreeMap;
|
use crate::collections::BTreeMap;
|
||||||
use crate::env::split_paths;
|
use crate::env::split_paths;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(issue = "0", feature = "windows_stdio")]
|
#![unstable(issue = "none", feature = "windows_stdio")]
|
||||||
|
|
||||||
use crate::char::decode_utf16;
|
use crate::char::decode_utf16;
|
||||||
use crate::cmp;
|
use crate::cmp;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![unstable(issue = "0", feature = "windows_stdio")]
|
#![unstable(issue = "none", feature = "windows_stdio")]
|
||||||
|
|
||||||
use crate::io;
|
use crate::io;
|
||||||
use crate::mem::ManuallyDrop;
|
use crate::mem::ManuallyDrop;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
#![unstable(feature = "process_internals", issue = "0")]
|
#![unstable(feature = "process_internals", issue = "none")]
|
||||||
|
|
||||||
use crate::collections::BTreeMap;
|
use crate::collections::BTreeMap;
|
||||||
use crate::env;
|
use crate::env;
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
#![unstable(feature = "thread_local_internals", issue = "0")]
|
#![unstable(feature = "thread_local_internals", issue = "none")]
|
||||||
#![allow(dead_code)] // sys isn't exported yet
|
#![allow(dead_code)] // sys isn't exported yet
|
||||||
|
|
||||||
use crate::ptr;
|
use crate::ptr;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! Thread local storage
|
//! Thread local storage
|
||||||
|
|
||||||
#![unstable(feature = "thread_local_internals", issue = "0")]
|
#![unstable(feature = "thread_local_internals", issue = "none")]
|
||||||
|
|
||||||
use crate::error::Error;
|
use crate::error::Error;
|
||||||
use crate::fmt;
|
use crate::fmt;
|
||||||
|
@ -142,7 +142,7 @@ macro_rules! thread_local {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[unstable(feature = "thread_local_internals", reason = "should not be necessary", issue = "0")]
|
#[unstable(feature = "thread_local_internals", reason = "should not be necessary", issue = "none")]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[allow_internal_unstable(thread_local_internals, cfg_target_thread_local, thread_local)]
|
#[allow_internal_unstable(thread_local_internals, cfg_target_thread_local, thread_local)]
|
||||||
#[allow_internal_unsafe]
|
#[allow_internal_unsafe]
|
||||||
|
@ -215,7 +215,7 @@ impl<T: 'static> LocalKey<T> {
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "thread_local_internals",
|
feature = "thread_local_internals",
|
||||||
reason = "recently added to create a key",
|
reason = "recently added to create a key",
|
||||||
issue = "0"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
pub const unsafe fn new(inner: unsafe fn() -> Option<&'static T>) -> LocalKey<T> {
|
pub const unsafe fn new(inner: unsafe fn() -> Option<&'static T>) -> LocalKey<T> {
|
||||||
LocalKey { inner }
|
LocalKey { inner }
|
||||||
|
|
|
@ -194,13 +194,13 @@ pub use self::local::{LocalKey, AccessError};
|
||||||
// where fast TLS was not available; end-user code is compiled with fast TLS
|
// where fast TLS was not available; end-user code is compiled with fast TLS
|
||||||
// where available, but both are needed.
|
// where available, but both are needed.
|
||||||
|
|
||||||
#[unstable(feature = "libstd_thread_internals", issue = "0")]
|
#[unstable(feature = "libstd_thread_internals", issue = "none")]
|
||||||
#[cfg(all(target_arch = "wasm32", not(target_feature = "atomics")))]
|
#[cfg(all(target_arch = "wasm32", not(target_feature = "atomics")))]
|
||||||
#[doc(hidden)] pub use self::local::statik::Key as __StaticLocalKeyInner;
|
#[doc(hidden)] pub use self::local::statik::Key as __StaticLocalKeyInner;
|
||||||
#[unstable(feature = "libstd_thread_internals", issue = "0")]
|
#[unstable(feature = "libstd_thread_internals", issue = "none")]
|
||||||
#[cfg(target_thread_local)]
|
#[cfg(target_thread_local)]
|
||||||
#[doc(hidden)] pub use self::local::fast::Key as __FastLocalKeyInner;
|
#[doc(hidden)] pub use self::local::fast::Key as __FastLocalKeyInner;
|
||||||
#[unstable(feature = "libstd_thread_internals", issue = "0")]
|
#[unstable(feature = "libstd_thread_internals", issue = "none")]
|
||||||
#[doc(hidden)] pub use self::local::os::Key as __OsLocalKeyInner;
|
#[doc(hidden)] pub use self::local::os::Key as __OsLocalKeyInner;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -376,11 +376,11 @@ fn find_stability_generic<'a, I>(sess: &ParseSess,
|
||||||
match (feature, reason, issue) {
|
match (feature, reason, issue) {
|
||||||
(Some(feature), reason, Some(issue)) => {
|
(Some(feature), reason, Some(issue)) => {
|
||||||
let issue = match &*issue.as_str() {
|
let issue = match &*issue.as_str() {
|
||||||
// FIXME(rossmacarthur): remove "0" because "none" should be used
|
"none" => None,
|
||||||
// See #41260
|
|
||||||
"none" | "0" => None,
|
|
||||||
issue => {
|
issue => {
|
||||||
if let Ok(num) = issue.parse() {
|
if let Ok(num) = issue.parse() {
|
||||||
|
// FIXME(rossmacarthur): disallow 0
|
||||||
|
// Disallowing this requires updates to some submodules
|
||||||
NonZeroU32::new(num)
|
NonZeroU32::new(num)
|
||||||
} else {
|
} else {
|
||||||
span_err!(
|
span_err!(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
#![unstable(feature = "unstable_test_feature", issue = "0")]
|
#![unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
|
|
||||||
pub fn baz() {}
|
pub fn baz() {}
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
#![unstable(feature = "humans",
|
#![unstable(feature = "humans",
|
||||||
reason = "who ever let humans program computers, we're apparently really bad at it",
|
reason = "who ever let humans program computers, we're apparently really bad at it",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
||||||
#![feature(foo, foo2)]
|
#![feature(foo, foo2)]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
||||||
// @has 'foo/fn.foo.html' '//pre' 'pub unsafe fn foo() -> u32'
|
// @has 'foo/fn.foo.html' '//pre' 'pub unsafe fn foo() -> u32'
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_unstable(feature="foo", issue = "0")]
|
#[rustc_const_unstable(feature="foo", issue = "none")]
|
||||||
pub const unsafe fn foo() -> u32 { 42 }
|
pub const unsafe fn foo() -> u32 { 42 }
|
||||||
|
|
||||||
// @has 'foo/fn.foo2.html' '//pre' 'pub fn foo2() -> u32'
|
// @has 'foo/fn.foo2.html' '//pre' 'pub fn foo2() -> u32'
|
||||||
#[unstable(feature = "humans", issue="0")]
|
#[unstable(feature = "humans", issue = "none")]
|
||||||
pub const fn foo2() -> u32 { 42 }
|
pub const fn foo2() -> u32 { 42 }
|
||||||
|
|
||||||
// @has 'foo/fn.bar2.html' '//pre' 'pub const fn bar2() -> u32'
|
// @has 'foo/fn.bar2.html' '//pre' 'pub const fn bar2() -> u32'
|
||||||
|
@ -22,7 +22,7 @@ pub const fn foo2() -> u32 { 42 }
|
||||||
pub const fn bar2() -> u32 { 42 }
|
pub const fn bar2() -> u32 { 42 }
|
||||||
|
|
||||||
// @has 'foo/fn.foo2_gated.html' '//pre' 'pub unsafe fn foo2_gated() -> u32'
|
// @has 'foo/fn.foo2_gated.html' '//pre' 'pub unsafe fn foo2_gated() -> u32'
|
||||||
#[unstable(feature = "foo2", issue="0")]
|
#[unstable(feature = "foo2", issue = "none")]
|
||||||
pub const unsafe fn foo2_gated() -> u32 { 42 }
|
pub const unsafe fn foo2_gated() -> u32 { 42 }
|
||||||
|
|
||||||
// @has 'foo/fn.bar2_gated.html' '//pre' 'pub const unsafe fn bar2_gated() -> u32'
|
// @has 'foo/fn.bar2_gated.html' '//pre' 'pub const unsafe fn bar2_gated() -> u32'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#![stable(feature = "rust1", since = "1.0.0")]
|
#![stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
||||||
/// docs for my_macro
|
/// docs for my_macro
|
||||||
#[unstable(feature = "macro_test", issue = "0")]
|
#[unstable(feature = "macro_test", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.2.3", reason = "text")]
|
#[rustc_deprecated(since = "1.2.3", reason = "text")]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! my_macro {
|
macro_rules! my_macro {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
||||||
#![unstable(feature = "test", issue = "0")]
|
#![unstable(feature = "test", issue = "none")]
|
||||||
|
|
||||||
pub struct Unstable {
|
pub struct Unstable {
|
||||||
// @has stability/struct.Unstable.html \
|
// @has stability/struct.Unstable.html \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags:--cfg foo
|
// compile-flags:--cfg foo
|
||||||
|
|
||||||
#![cfg_attr(foo, unstable(feature = "unstable_test_feature", issue = "0"))]
|
#![cfg_attr(foo, unstable(feature = "unstable_test_feature", issue = "none"))]
|
||||||
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
|
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_unstable(feature="foo", issue = "0")]
|
#[rustc_const_unstable(feature="foo", issue = "none")]
|
||||||
pub const fn foo() -> u32 { 42 }
|
pub const fn foo() -> u32 { 42 }
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#![unstable(feature = "humans",
|
#![unstable(feature = "humans",
|
||||||
reason = "who ever let humans program computers,
|
reason = "who ever let humans program computers,
|
||||||
we're apparently really bad at it",
|
we're apparently really bad at it",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
||||||
#![feature(const_fn)]
|
#![feature(const_fn)]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_unstable(feature="foo", issue = "0")]
|
#[rustc_const_unstable(feature="foo", issue = "none")]
|
||||||
const fn foo() -> u32 { 42 }
|
const fn foo() -> u32 { 42 }
|
||||||
|
|
||||||
fn meh() -> u32 { 42 }
|
fn meh() -> u32 { 42 }
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#![unstable(feature = "humans",
|
#![unstable(feature = "humans",
|
||||||
reason = "who ever let humans program computers,
|
reason = "who ever let humans program computers,
|
||||||
we're apparently really bad at it",
|
we're apparently really bad at it",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
||||||
#![feature(const_fn, foo, foo2)]
|
#![feature(const_fn, foo, foo2)]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_unstable(feature="foo", issue = "0")]
|
#[rustc_const_unstable(feature="foo", issue = "none")]
|
||||||
const fn foo() -> u32 { 42 }
|
const fn foo() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -15,7 +15,7 @@ const fn foo() -> u32 { 42 }
|
||||||
// can't call non-min_const_fn
|
// can't call non-min_const_fn
|
||||||
const fn bar() -> u32 { foo() } //~ ERROR can only call other `const fn`
|
const fn bar() -> u32 { foo() } //~ ERROR can only call other `const fn`
|
||||||
|
|
||||||
#[unstable(feature = "rust1", issue="0")]
|
#[unstable(feature = "rust1", issue = "none")]
|
||||||
const fn foo2() -> u32 { 42 }
|
const fn foo2() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -29,7 +29,7 @@ const fn bar2() -> u32 { foo2() } //~ ERROR can only call other `const fn`
|
||||||
const fn bar3() -> u32 { (5f32 + 6f32) as u32 } //~ ERROR only int, `bool` and `char` operations
|
const fn bar3() -> u32 { (5f32 + 6f32) as u32 } //~ ERROR only int, `bool` and `char` operations
|
||||||
|
|
||||||
// check whether this function cannot be called even with the feature gate active
|
// check whether this function cannot be called even with the feature gate active
|
||||||
#[unstable(feature = "foo2", issue="0")]
|
#[unstable(feature = "foo2", issue = "none")]
|
||||||
const fn foo2_gated() -> u32 { 42 }
|
const fn foo2_gated() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#![unstable(feature = "humans",
|
#![unstable(feature = "humans",
|
||||||
reason = "who ever let humans program computers,
|
reason = "who ever let humans program computers,
|
||||||
we're apparently really bad at it",
|
we're apparently really bad at it",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
||||||
#![feature(const_fn, foo, foo2)]
|
#![feature(const_fn, foo, foo2)]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_unstable(feature="foo", issue = "0")]
|
#[rustc_const_unstable(feature="foo", issue = "none")]
|
||||||
const unsafe fn foo() -> u32 { 42 }
|
const unsafe fn foo() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -15,7 +15,7 @@ const unsafe fn foo() -> u32 { 42 }
|
||||||
// can't call non-min_const_fn
|
// can't call non-min_const_fn
|
||||||
const unsafe fn bar() -> u32 { unsafe { foo() } } //~ ERROR can only call other `const fn`
|
const unsafe fn bar() -> u32 { unsafe { foo() } } //~ ERROR can only call other `const fn`
|
||||||
|
|
||||||
#[unstable(feature = "rust1", issue="0")]
|
#[unstable(feature = "rust1", issue = "none")]
|
||||||
const unsafe fn foo2() -> u32 { 42 }
|
const unsafe fn foo2() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -29,7 +29,7 @@ const unsafe fn bar2() -> u32 { unsafe { foo2() } } //~ ERROR can only call othe
|
||||||
const unsafe fn bar3() -> u32 { (5f32 + 6f32) as u32 } //~ ERROR only int, `bool` and `char` op
|
const unsafe fn bar3() -> u32 { (5f32 + 6f32) as u32 } //~ ERROR only int, `bool` and `char` op
|
||||||
|
|
||||||
// check whether this function cannot be called even with the feature gate active
|
// check whether this function cannot be called even with the feature gate active
|
||||||
#[unstable(feature = "foo2", issue="0")]
|
#[unstable(feature = "foo2", issue = "none")]
|
||||||
const unsafe fn foo2_gated() -> u32 { 42 }
|
const unsafe fn foo2_gated() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#![unstable(feature = "humans",
|
#![unstable(feature = "humans",
|
||||||
reason = "who ever let humans program computers,
|
reason = "who ever let humans program computers,
|
||||||
we're apparently really bad at it",
|
we're apparently really bad at it",
|
||||||
issue = "0")]
|
issue = "none")]
|
||||||
|
|
||||||
#![feature(const_fn, foo, foo2)]
|
#![feature(const_fn, foo, foo2)]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_unstable(feature="foo", issue = "0")]
|
#[rustc_const_unstable(feature="foo", issue = "none")]
|
||||||
const fn foo() -> u32 { 42 }
|
const fn foo() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -15,7 +15,7 @@ const fn foo() -> u32 { 42 }
|
||||||
// can't call non-min_const_fn
|
// can't call non-min_const_fn
|
||||||
const unsafe fn bar() -> u32 { foo() } //~ ERROR can only call other `const fn`
|
const unsafe fn bar() -> u32 { foo() } //~ ERROR can only call other `const fn`
|
||||||
|
|
||||||
#[unstable(feature = "rust1", issue="0")]
|
#[unstable(feature = "rust1", issue = "none")]
|
||||||
const fn foo2() -> u32 { 42 }
|
const fn foo2() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -24,7 +24,7 @@ const fn foo2() -> u32 { 42 }
|
||||||
const unsafe fn bar2() -> u32 { foo2() } //~ ERROR can only call other `const fn`
|
const unsafe fn bar2() -> u32 { foo2() } //~ ERROR can only call other `const fn`
|
||||||
|
|
||||||
// check whether this function cannot be called even with the feature gate active
|
// check whether this function cannot be called even with the feature gate active
|
||||||
#[unstable(feature = "foo2", issue="0")]
|
#[unstable(feature = "foo2", issue = "none")]
|
||||||
const fn foo2_gated() -> u32 { 42 }
|
const fn foo2_gated() -> u32 { 42 }
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
|
@ -14,7 +14,7 @@ enum Opt<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Opt<T> {
|
impl<T> Opt<T> {
|
||||||
#[rustc_const_unstable(feature = "foo", issue = "0")]
|
#[rustc_const_unstable(feature = "foo", issue = "none")]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
|
const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
|
||||||
//~^ ERROR destructors cannot be evaluated at compile-time
|
//~^ ERROR destructors cannot be evaluated at compile-time
|
||||||
|
|
|
@ -9,7 +9,7 @@ fn foo_stable_1_0_0() {}
|
||||||
//~^ ERROR feature `foo` is declared stable since 1.29.0
|
//~^ ERROR feature `foo` is declared stable since 1.29.0
|
||||||
fn foo_stable_1_29_0() {}
|
fn foo_stable_1_29_0() {}
|
||||||
|
|
||||||
#[unstable(feature = "foo", issue = "0")]
|
#[unstable(feature = "foo", issue = "none")]
|
||||||
//~^ ERROR feature `foo` is declared unstable
|
//~^ ERROR feature `foo` is declared unstable
|
||||||
fn foo_unstable() {}
|
fn foo_unstable() {}
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ LL | #[stable(feature = "foo", since = "1.29.0")]
|
||||||
error[E0711]: feature `foo` is declared unstable, but was previously declared stable
|
error[E0711]: feature `foo` is declared unstable, but was previously declared stable
|
||||||
--> $DIR/stability-attribute-consistency.rs:12:1
|
--> $DIR/stability-attribute-consistency.rs:12:1
|
||||||
|
|
|
|
||||||
LL | #[unstable(feature = "foo", issue = "0")]
|
LL | #[unstable(feature = "foo", issue = "none")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Check that an issue value can be explicitly set to "none" instead of "0"
|
// Check that an issue value can be explicitly set to "0" instead of "none"
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
#![stable(feature = "stable_test_feature", since = "1.0.0")]
|
#![stable(feature = "stable_test_feature", since = "1.0.0")]
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0545]: incorrect 'issue'
|
error[E0545]: incorrect 'issue'
|
||||||
--> $DIR/unstable-attribute-allow-issue-none.rs:12:1
|
--> $DIR/unstable-attribute-allow-issue-0.rs:12:1
|
||||||
|
|
|
|
||||||
LL | #[unstable(feature = "unstable_test_feature", issue = "something")]
|
LL | #[unstable(feature = "unstable_test_feature", issue = "something")]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
@ -1,24 +1,24 @@
|
||||||
#![feature(staged_api, allow_internal_unstable)]
|
#![feature(staged_api, allow_internal_unstable)]
|
||||||
#![stable(feature = "stable", since = "1.0.0")]
|
#![stable(feature = "stable", since = "1.0.0")]
|
||||||
|
|
||||||
#[unstable(feature = "function", issue = "0")]
|
#[unstable(feature = "function", issue = "none")]
|
||||||
pub fn unstable() {}
|
pub fn unstable() {}
|
||||||
|
|
||||||
|
|
||||||
#[stable(feature = "stable", since = "1.0.0")]
|
#[stable(feature = "stable", since = "1.0.0")]
|
||||||
pub struct Foo {
|
pub struct Foo {
|
||||||
#[unstable(feature = "struct_field", issue = "0")]
|
#[unstable(feature = "struct_field", issue = "none")]
|
||||||
pub x: u8
|
pub x: u8
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Foo {
|
impl Foo {
|
||||||
#[unstable(feature = "method", issue = "0")]
|
#[unstable(feature = "method", issue = "none")]
|
||||||
pub fn method(&self) {}
|
pub fn method(&self) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "stable", since = "1.0.0")]
|
#[stable(feature = "stable", since = "1.0.0")]
|
||||||
pub struct Bar {
|
pub struct Bar {
|
||||||
#[unstable(feature = "struct2_field", issue = "0")]
|
#[unstable(feature = "struct2_field", issue = "none")]
|
||||||
pub x: u8
|
pub x: u8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![unstable(feature = "issue_52489_unstable", issue = "0")]
|
#![unstable(feature = "issue_52489_unstable", issue = "none")]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
|
@ -15,16 +15,16 @@ pub fn deprecated_text() {}
|
||||||
#[rustc_deprecated(since = "99.99.99", reason = "text")]
|
#[rustc_deprecated(since = "99.99.99", reason = "text")]
|
||||||
pub fn deprecated_future() {}
|
pub fn deprecated_future() {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn deprecated_unstable() {}
|
pub fn deprecated_unstable() {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn deprecated_unstable_text() {}
|
pub fn deprecated_unstable_text() {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn unstable() {}
|
pub fn unstable() {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
pub fn unstable_text() {}
|
pub fn unstable_text() {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -43,16 +43,16 @@ impl MethodTester {
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn method_deprecated_text(&self) {}
|
pub fn method_deprecated_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn method_deprecated_unstable(&self) {}
|
pub fn method_deprecated_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn method_deprecated_unstable_text(&self) {}
|
pub fn method_deprecated_unstable_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn method_unstable(&self) {}
|
pub fn method_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
pub fn method_unstable_text(&self) {}
|
pub fn method_unstable_text(&self) {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -70,16 +70,16 @@ pub trait Trait {
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn trait_deprecated_text(&self) {}
|
fn trait_deprecated_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn trait_deprecated_unstable(&self) {}
|
fn trait_deprecated_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn trait_deprecated_unstable_text(&self) {}
|
fn trait_deprecated_unstable_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
fn trait_unstable(&self) {}
|
fn trait_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
fn trait_unstable_text(&self) {}
|
fn trait_unstable_text(&self) {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -90,7 +90,7 @@ pub trait Trait {
|
||||||
|
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
pub trait TraitWithAssociatedTypes {
|
pub trait TraitWithAssociatedTypes {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
type TypeUnstable = u8;
|
type TypeUnstable = u8;
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
|
@ -100,7 +100,7 @@ pub trait TraitWithAssociatedTypes {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
impl Trait for MethodTester {}
|
impl Trait for MethodTester {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub trait UnstableTrait { fn dummy(&self) { } }
|
pub trait UnstableTrait { fn dummy(&self) { } }
|
||||||
|
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
|
@ -114,12 +114,12 @@ pub trait DeprecatedTrait {
|
||||||
pub struct DeprecatedStruct {
|
pub struct DeprecatedStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||||
}
|
}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnstableStruct {
|
pub struct DeprecatedUnstableStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||||
}
|
}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableStruct {
|
pub struct UnstableStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,7 @@ pub struct UnstableStruct {
|
||||||
pub struct StableStruct {
|
pub struct StableStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||||
}
|
}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub enum UnstableEnum {}
|
pub enum UnstableEnum {}
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub enum StableEnum {}
|
pub enum StableEnum {}
|
||||||
|
@ -135,10 +135,10 @@ pub enum StableEnum {}
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnitStruct;
|
pub struct DeprecatedUnitStruct;
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnstableUnitStruct;
|
pub struct DeprecatedUnstableUnitStruct;
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableUnitStruct;
|
pub struct UnstableUnitStruct;
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct StableUnitStruct;
|
pub struct StableUnitStruct;
|
||||||
|
@ -148,10 +148,10 @@ pub enum Enum {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
DeprecatedVariant,
|
DeprecatedVariant,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
DeprecatedUnstableVariant,
|
DeprecatedUnstableVariant,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
UnstableVariant,
|
UnstableVariant,
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -161,10 +161,10 @@ pub enum Enum {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
pub struct DeprecatedTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
pub struct DeprecatedUnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
pub struct UnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct StableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
pub struct StableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
#![deny(deprecated)]
|
#![deny(deprecated)]
|
||||||
|
|
||||||
#![unstable(feature = "unstable_test_feature", issue = "0")]
|
#![unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
|
|
||||||
struct Foo;
|
struct Foo;
|
||||||
|
|
||||||
impl Foo {
|
impl Foo {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn foo(self) {}
|
fn foo(self) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#![crate_name="inherited_stability"]
|
#![crate_name="inherited_stability"]
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![unstable(feature = "unstable_test_feature", issue = "0")]
|
#![unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
||||||
pub fn unstable() {}
|
pub fn unstable() {}
|
||||||
|
@ -10,14 +10,14 @@ pub fn stable() {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub mod stable_mod {
|
pub mod stable_mod {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn unstable() {}
|
pub fn unstable() {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub fn stable() {}
|
pub fn stable() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub mod unstable_mod {
|
pub mod unstable_mod {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
|
@ -28,7 +28,7 @@ pub mod unstable_mod {
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub trait Stable {
|
pub trait Stable {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
fn unstable(&self);
|
fn unstable(&self);
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#![crate_name="lint_output_format"]
|
#![crate_name="lint_output_format"]
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
#![unstable(feature = "unstable_test_feature", issue = "0")]
|
#![unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
|
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
|
@ -9,12 +9,12 @@ pub fn foo() -> usize {
|
||||||
20
|
20
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn bar() -> usize {
|
pub fn bar() -> usize {
|
||||||
40
|
40
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn baz() -> usize {
|
pub fn baz() -> usize {
|
||||||
30
|
30
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,16 +15,16 @@ pub fn deprecated_text() {}
|
||||||
#[rustc_deprecated(since = "99.99.99", reason = "text")]
|
#[rustc_deprecated(since = "99.99.99", reason = "text")]
|
||||||
pub fn deprecated_future() {}
|
pub fn deprecated_future() {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn deprecated_unstable() {}
|
pub fn deprecated_unstable() {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn deprecated_unstable_text() {}
|
pub fn deprecated_unstable_text() {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn unstable() {}
|
pub fn unstable() {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
pub fn unstable_text() {}
|
pub fn unstable_text() {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -43,16 +43,16 @@ impl MethodTester {
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn method_deprecated_text(&self) {}
|
pub fn method_deprecated_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn method_deprecated_unstable(&self) {}
|
pub fn method_deprecated_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn method_deprecated_unstable_text(&self) {}
|
pub fn method_deprecated_unstable_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn method_unstable(&self) {}
|
pub fn method_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
pub fn method_unstable_text(&self) {}
|
pub fn method_unstable_text(&self) {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -70,16 +70,16 @@ pub trait Trait {
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn trait_deprecated_text(&self) {}
|
fn trait_deprecated_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn trait_deprecated_unstable(&self) {}
|
fn trait_deprecated_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn trait_deprecated_unstable_text(&self) {}
|
fn trait_deprecated_unstable_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
fn trait_unstable(&self) {}
|
fn trait_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
fn trait_unstable_text(&self) {}
|
fn trait_unstable_text(&self) {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -90,7 +90,7 @@ pub trait Trait {
|
||||||
|
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
pub trait TraitWithAssociatedTypes {
|
pub trait TraitWithAssociatedTypes {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
type TypeUnstable = u8;
|
type TypeUnstable = u8;
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
|
@ -100,7 +100,7 @@ pub trait TraitWithAssociatedTypes {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
impl Trait for MethodTester {}
|
impl Trait for MethodTester {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub trait UnstableTrait { fn dummy(&self) { } }
|
pub trait UnstableTrait { fn dummy(&self) { } }
|
||||||
|
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
|
@ -114,12 +114,12 @@ pub trait DeprecatedTrait {
|
||||||
pub struct DeprecatedStruct {
|
pub struct DeprecatedStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||||
}
|
}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnstableStruct {
|
pub struct DeprecatedUnstableStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||||
}
|
}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableStruct {
|
pub struct UnstableStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,7 @@ pub struct UnstableStruct {
|
||||||
pub struct StableStruct {
|
pub struct StableStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] pub i: isize
|
||||||
}
|
}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub enum UnstableEnum {}
|
pub enum UnstableEnum {}
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub enum StableEnum {}
|
pub enum StableEnum {}
|
||||||
|
@ -135,10 +135,10 @@ pub enum StableEnum {}
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnitStruct;
|
pub struct DeprecatedUnitStruct;
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnstableUnitStruct;
|
pub struct DeprecatedUnstableUnitStruct;
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableUnitStruct;
|
pub struct UnstableUnitStruct;
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct StableUnitStruct;
|
pub struct StableUnitStruct;
|
||||||
|
@ -148,10 +148,10 @@ pub enum Enum {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
DeprecatedVariant,
|
DeprecatedVariant,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
DeprecatedUnstableVariant,
|
DeprecatedUnstableVariant,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
UnstableVariant,
|
UnstableVariant,
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -161,10 +161,10 @@ pub enum Enum {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
pub struct DeprecatedTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
pub struct DeprecatedUnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
pub struct UnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct StableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
pub struct StableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize);
|
||||||
|
|
|
@ -5,47 +5,47 @@
|
||||||
pub struct Stable {
|
pub struct Stable {
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub inherit: u8, // it's a lie (stable doesn't inherit)
|
pub inherit: u8, // it's a lie (stable doesn't inherit)
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub override1: u8,
|
pub override1: u8,
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub override2: u8,
|
pub override2: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct Stable2(#[stable(feature = "rust1", since = "1.0.0")] pub u8,
|
pub struct Stable2(#[stable(feature = "rust1", since = "1.0.0")] pub u8,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")] pub u8,
|
#[unstable(feature = "unstable_test_feature", issue = "none")] pub u8,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")] pub u8);
|
#[rustc_deprecated(since = "1.0.0", reason = "text")] pub u8);
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct Unstable {
|
pub struct Unstable {
|
||||||
pub inherit: u8,
|
pub inherit: u8,
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub override1: u8,
|
pub override1: u8,
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub override2: u8,
|
pub override2: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct Unstable2(pub u8,
|
pub struct Unstable2(pub u8,
|
||||||
#[stable(feature = "rust1", since = "1.0.0")] pub u8,
|
#[stable(feature = "rust1", since = "1.0.0")] pub u8,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")] pub u8);
|
#[rustc_deprecated(since = "1.0.0", reason = "text")] pub u8);
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct Deprecated {
|
pub struct Deprecated {
|
||||||
pub inherit: u8,
|
pub inherit: u8,
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub override1: u8,
|
pub override1: u8,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub override2: u8,
|
pub override2: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct Deprecated2(pub u8,
|
pub struct Deprecated2(pub u8,
|
||||||
#[stable(feature = "rust1", since = "1.0.0")] pub u8,
|
#[stable(feature = "rust1", since = "1.0.0")] pub u8,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")] pub u8);
|
#[unstable(feature = "unstable_test_feature", issue = "none")] pub u8);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags:--cfg foo
|
// compile-flags:--cfg foo
|
||||||
|
|
||||||
#![cfg_attr(foo, unstable(feature = "unstable_test_feature", issue = "0"))]
|
#![cfg_attr(foo, unstable(feature = "unstable_test_feature", issue = "none"))]
|
||||||
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
|
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags:--cfg foo
|
// compile-flags:--cfg foo
|
||||||
|
|
||||||
#![cfg_attr(foo, unstable(feature = "unstable_test_feature", issue = "0"))]
|
#![cfg_attr(foo, unstable(feature = "unstable_test_feature", issue = "none"))]
|
||||||
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
|
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
|
|
|
@ -168,16 +168,16 @@ mod cross_crate {
|
||||||
}
|
}
|
||||||
|
|
||||||
mod this_crate {
|
mod this_crate {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn deprecated() {}
|
pub fn deprecated() {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn deprecated_text() {}
|
pub fn deprecated_text() {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn unstable() {}
|
pub fn unstable() {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
pub fn unstable_text() {}
|
pub fn unstable_text() {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -189,16 +189,16 @@ mod this_crate {
|
||||||
pub struct MethodTester;
|
pub struct MethodTester;
|
||||||
|
|
||||||
impl MethodTester {
|
impl MethodTester {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn method_deprecated(&self) {}
|
pub fn method_deprecated(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub fn method_deprecated_text(&self) {}
|
pub fn method_deprecated_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub fn method_unstable(&self) {}
|
pub fn method_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
pub fn method_unstable_text(&self) {}
|
pub fn method_unstable_text(&self) {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -208,16 +208,16 @@ mod this_crate {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Trait {
|
pub trait Trait {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn trait_deprecated(&self) {}
|
fn trait_deprecated(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn trait_deprecated_text(&self) {}
|
fn trait_deprecated_text(&self) {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
fn trait_unstable(&self) {}
|
fn trait_unstable(&self) {}
|
||||||
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", reason = "text", issue = "none")]
|
||||||
fn trait_unstable_text(&self) {}
|
fn trait_unstable_text(&self) {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -228,12 +228,12 @@ mod this_crate {
|
||||||
|
|
||||||
impl Trait for MethodTester {}
|
impl Trait for MethodTester {}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedStruct {
|
pub struct DeprecatedStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] i: isize
|
||||||
}
|
}
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableStruct {
|
pub struct UnstableStruct {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] i: isize
|
||||||
}
|
}
|
||||||
|
@ -242,29 +242,29 @@ mod this_crate {
|
||||||
#[stable(feature = "stable_test_feature", since = "1.0.0")] i: isize
|
#[stable(feature = "stable_test_feature", since = "1.0.0")] i: isize
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedUnitStruct;
|
pub struct DeprecatedUnitStruct;
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableUnitStruct;
|
pub struct UnstableUnitStruct;
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct StableUnitStruct;
|
pub struct StableUnitStruct;
|
||||||
|
|
||||||
pub enum Enum {
|
pub enum Enum {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
DeprecatedVariant,
|
DeprecatedVariant,
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
UnstableVariant,
|
UnstableVariant,
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
StableVariant,
|
StableVariant,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub struct DeprecatedTupleStruct(isize);
|
pub struct DeprecatedTupleStruct(isize);
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
pub struct UnstableTupleStruct(isize);
|
pub struct UnstableTupleStruct(isize);
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub struct StableTupleStruct(isize);
|
pub struct StableTupleStruct(isize);
|
||||||
|
@ -381,7 +381,7 @@ mod this_crate {
|
||||||
foo.trait_stable();
|
foo.trait_stable();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn test_fn_body() {
|
fn test_fn_body() {
|
||||||
fn fn_in_body() {}
|
fn fn_in_body() {}
|
||||||
|
@ -389,7 +389,7 @@ mod this_crate {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MethodTester {
|
impl MethodTester {
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
fn test_method_body(&self) {
|
fn test_method_body(&self) {
|
||||||
fn fn_in_body() {}
|
fn fn_in_body() {}
|
||||||
|
@ -397,7 +397,7 @@ mod this_crate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "unstable_test_feature", issue = "0")]
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
||||||
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
#[rustc_deprecated(since = "1.0.0", reason = "text")]
|
||||||
pub trait DeprecatedTrait {
|
pub trait DeprecatedTrait {
|
||||||
fn dummy(&self) { }
|
fn dummy(&self) { }
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue