Add some missing stability attributes on struct fields.
This commit is contained in:
parent
eafdc7135b
commit
060661d2b4
3 changed files with 4 additions and 1 deletions
|
@ -939,6 +939,7 @@ impl<'a, P: Pattern<'a>> Iterator for SplitStr<'a, P> {
|
|||
type Item = &'a str;
|
||||
|
||||
#[inline]
|
||||
#[allow(deprecated)]
|
||||
fn next(&mut self) -> Option<&'a str> {
|
||||
Iterator::next(&mut self.0)
|
||||
}
|
||||
|
|
|
@ -384,7 +384,7 @@ impl<T> !Sync for SyncSender<T> {}
|
|||
/// contains the data being sent as a payload so it can be recovered.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[derive(PartialEq, Eq, Clone, Copy)]
|
||||
pub struct SendError<T>(pub T);
|
||||
pub struct SendError<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
|
||||
|
||||
/// An error returned from the `recv` function on a `Receiver`.
|
||||
///
|
||||
|
|
|
@ -105,10 +105,12 @@ pub struct Key<T> {
|
|||
// This is trivially devirtualizable by LLVM because we never store anything
|
||||
// to this field and rustc can declare the `static` as constant as well.
|
||||
#[doc(hidden)]
|
||||
#[unstable(feature = "thread_local_internals")]
|
||||
pub inner: fn() -> &'static __impl::KeyInner<UnsafeCell<Option<T>>>,
|
||||
|
||||
// initialization routine to invoke to create a value
|
||||
#[doc(hidden)]
|
||||
#[unstable(feature = "thread_local_internals")]
|
||||
pub init: fn() -> T,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue