Skip to content

Commit 060661d

Browse files
committed
Add some missing stability attributes on struct fields.
1 parent eafdc71 commit 060661d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/libcore/str/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,7 @@ impl<'a, P: Pattern<'a>> Iterator for SplitStr<'a, P> {
939939
type Item = &'a str;
940940

941941
#[inline]
942+
#[allow(deprecated)]
942943
fn next(&mut self) -> Option<&'a str> {
943944
Iterator::next(&mut self.0)
944945
}

src/libstd/sync/mpsc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ impl<T> !Sync for SyncSender<T> {}
384384
/// contains the data being sent as a payload so it can be recovered.
385385
#[stable(feature = "rust1", since = "1.0.0")]
386386
#[derive(PartialEq, Eq, Clone, Copy)]
387-
pub struct SendError<T>(pub T);
387+
pub struct SendError<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
388388

389389
/// An error returned from the `recv` function on a `Receiver`.
390390
///

src/libstd/thread_local/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ pub struct Key<T> {
105105
// This is trivially devirtualizable by LLVM because we never store anything
106106
// to this field and rustc can declare the `static` as constant as well.
107107
#[doc(hidden)]
108+
#[unstable(feature = "thread_local_internals")]
108109
pub inner: fn() -> &'static __impl::KeyInner<UnsafeCell<Option<T>>>,
109110

110111
// initialization routine to invoke to create a value
111112
#[doc(hidden)]
113+
#[unstable(feature = "thread_local_internals")]
112114
pub init: fn() -> T,
113115
}
114116

0 commit comments

Comments
 (0)