diff options
Diffstat (limited to 'src/libstd/sys/common')
| -rw-r--r-- | src/libstd/sys/common/poison.rs | 3 | ||||
| -rw-r--r-- | src/libstd/sys/common/unwind/mod.rs | 6 | ||||
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/libstd/sys/common/poison.rs b/src/libstd/sys/common/poison.rs index c6917d8fca5..446a4445b2d 100644 --- a/src/libstd/sys/common/poison.rs +++ b/src/libstd/sys/common/poison.rs @@ -110,6 +110,7 @@ impl<T> fmt::Display for PoisonError<T> { } } +#[stable(feature = "rust1", since = "1.0.0")] impl<T: Send + Reflect> Error for PoisonError<T> { fn description(&self) -> &str { "poisoned lock: another task failed inside" @@ -139,6 +140,7 @@ impl<T> PoisonError<T> { pub fn get_mut(&mut self) -> &mut T { &mut self.guard } } +#[stable(feature = "rust1", since = "1.0.0")] impl<T> From<PoisonError<T>> for TryLockError<T> { fn from(err: PoisonError<T>) -> TryLockError<T> { TryLockError::Poisoned(err) @@ -162,6 +164,7 @@ impl<T: Send + Reflect> fmt::Display for TryLockError<T> { } } +#[stable(feature = "rust1", since = "1.0.0")] impl<T: Send + Reflect> Error for TryLockError<T> { fn description(&self) -> &str { match *self { diff --git a/src/libstd/sys/common/unwind/mod.rs b/src/libstd/sys/common/unwind/mod.rs index e455d163ed9..aea5acc9071 100644 --- a/src/libstd/sys/common/unwind/mod.rs +++ b/src/libstd/sys/common/unwind/mod.rs @@ -203,6 +203,9 @@ pub extern fn rust_begin_unwind(msg: fmt::Arguments, /// site as much as possible (so that `panic!()` has as low an impact /// on (e.g.) the inlining of other functions as possible), by moving /// the actual formatting into this shared place. +#[unstable(feature = "libstd_sys_internals", + reason = "used by the panic! macro", + issue = "0")] #[inline(never)] #[cold] pub fn begin_unwind_fmt(msg: fmt::Arguments, file_line: &(&'static str, u32)) -> ! { use fmt::Write; @@ -218,6 +221,9 @@ pub fn begin_unwind_fmt(msg: fmt::Arguments, file_line: &(&'static str, u32)) -> } /// This is the entry point of unwinding for panic!() and assert!(). +#[unstable(feature = "libstd_sys_internals", + reason = "used by the panic! macro", + issue = "0")] #[inline(never)] #[cold] // avoid code bloat at the call sites as much as possible pub fn begin_unwind<M: Any + Send>(msg: M, file_line: &(&'static str, u32)) -> ! { // Note that this should be the only allocation performed in this code path. diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index 271aba680a2..702a34633dc 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -715,6 +715,7 @@ impl<'a> Iterator for Wtf8CodePoints<'a> { } } +#[stable(feature = "rust1", since = "1.0.0")] #[derive(Clone)] pub struct EncodeWide<'a> { code_points: Wtf8CodePoints<'a>, @@ -722,6 +723,7 @@ pub struct EncodeWide<'a> { } // Copied from libunicode/u_str.rs +#[stable(feature = "rust1", since = "1.0.0")] impl<'a> Iterator for EncodeWide<'a> { type Item = u16; |
